| От | Tom Lane |
|---|---|
| Тема | Re: postgresql 7.1.1 and textout and textin |
| Дата | |
| Msg-id | 18395.991145056@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | postgresql 7.1.1 and textout and textin (Jaume Teixi <teixi@6tems.com>) |
| Список | pgsql-admin |
Jaume Teixi <teixi@6tems.com> writes:
> trying to migrate production servers form 7.0.2 to 7.1.1 now I need to
> compile an function written in c and when compiling using following
> includes:
> c:82: warning: passing arg 1 of `textout' from incompatible pointer type
> line 82: src = textout( src_string );
textout (and all the other built-in SQL functions) now have to be called
via the "new style" calling convention. Which unfortunately is a pain
in the neck to code in bare C. A number of modules do something like
this:
#define _textout(str) DatumGetPointer(DirectFunctionCall1(textout, PointerGetDatum(str)))
The price of progress :-(. See the documentation for more info.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера