Re: URL Managment - C Function help

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Samuel ROZE <samuel(dot)roze(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: URL Managment - C Function help
Date: 2009-10-21 17:16:37
Message-ID: 4ADF41F5.5030507@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-10-21 17:52:55 Prelim specs for parser hooks for plpgsql
Previous Message Samuel ROZE 2009-10-21 17:04:41 Re: URL Managment - C Function help