| От | Tom Lane |
|---|---|
| Тема | Re: SPI example does not work for 7.1beta4 |
| Дата | |
| Msg-id | 15307.985310676@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | SPI example does not work for 7.1beta4 (Limin Liu <limin@pumpkinnet.com>) |
| Список | pgsql-hackers |
Limin Liu <limin@pumpkinnet.com> writes:
> I am learning and using SPI. In PostgreSQL documentation chapter "Server
> Programming Interface," there is a small example name "execq(text,
> int)".
> This example works as the document says on 7.0.3 and earlier version,
> but this example DOES NOT work on my 7.1 beta4.
Hm. textout() can't be called that way anymore --- as indeed your compiler
should have told you, if it's any good at all. I get
execq.c: In function `execq':
execq.c:13: warning: passing arg 1 of `textout' from incompatible pointer type
execq.c:13: warning: passing arg 1 of `SPI_exec' makes pointer from integer without a cast
Looks like the example is in need of update. Thanks for the report.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера