On 9/22/07, Gregory Stark <[EMAIL PROTECTED]> wrote:
> The canonical way to do it is with
> DatumGetCString(DirectFunctionCall1(textout, t))

I just noticed a couple of macros defined in src/include/tsearch/ts_utils.h:

#define TextPGetCString(t)
DatumGetCString(DirectFunctionCall1(textout, PointerGetDatum(t)))
#define CStringGetTextP(c) DatumGetTextP(DirectFunctionCall1(textin,

Seems these would actually be convenient in quite a lot of places in
the backend.  Is there any downside to moving these two into

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?


Reply via email to