| От | Tom Lane |
|---|---|
| Тема | Re: Re: postgresql 7.1.1 and textout and textin |
| Дата | |
| Msg-id | 8294.993654279@sss.pgh.pa.us обсуждение |
| Ответ на | Re: postgresql 7.1.1 and textout and textin (Thomas Lockhart <lockhart@fourpalms.org>) |
| Список | pgsql-hackers |
Thomas Lockhart <lockhart@fourpalms.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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера