From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | lockhart(at)fourpalms(dot)org |
Cc: | Jaume Teixi <teixi(at)6tems(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re: postgresql 7.1.1 and textout and textin |
Date: | 2001-06-27 15:04:39 |
Message-ID: | 8294.993654279@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thomas Lockhart <lockhart(at)fourpalms(dot)org> writes:
>> any points to convert textout and textin to 7.1 ?
> Look in src/backend/utils/adt/ for examples of functions called from
> within other functions. You will want to upgrade to the new calling
> convention for functions, and will need to use some macros and "direct
> call" wrappers to accomplish this.
There are also some useful examples in contrib/. Several contrib
modules have macros like
#define _textin(str) DirectFunctionCall1(textin, CStringGetDatum(str))
#define _textout(str) DatumGetPointer(DirectFunctionCall1(textout, PointerGetDatum(str)))
which work pretty much the same as the old textin() and textout()
functions did.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-06-27 15:04:49 | Re: Re: 7.2 items |
Previous Message | Tom Lane | 2001-06-27 14:59:34 | Re: Bug in createlang? |