Re: URL Managment - C Function help - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: URL Managment - C Function help
Date
Msg-id 4ADF41F5.5030507@dunslane.net
Whole thread Raw
In response to Re: URL Managment - C Function help  (Samuel ROZE <samuel.roze@gmail.com>)
List pgsql-hackers

Samuel ROZE wrote:
> Le mercredi 21 octobre 2009 à 12:59 -0400, Andrew Dunstan a écrit :
>   
>> On 8.3 you might need to put a #define for it directly in your C file.
>>     
>
> I can't: cstring_to_text isn't defined.
>
> I'll develop on 8.4.
>   

or try:

#define CStringGetTextP(c) DatumGetTextP(DirectFunctionCall1(textin, 
CStringGetDatum(c)))


cheers

andrew


pgsql-hackers by date:

Previous
From: Samuel ROZE
Date:
Subject: Re: URL Managment - C Function help
Next
From: Tom Lane
Date:
Subject: Prelim specs for parser hooks for plpgsql