| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Limin Liu <limin(at)pumpkinnet(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [HACKERS] SPI example does not work for 7.1beta4 |
| Date: | 2001-03-23 01:24:36 |
| Message-ID: | 15307.985310676@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
Limin Liu <limin(at)pumpkinnet(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vince Vielhaber | 2001-03-23 01:29:20 | Re: Call for platforms |
| Previous Message | will trillich | 2001-03-23 01:19:02 | Re: Re: Birthday comparisons |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vince Vielhaber | 2001-03-23 01:29:20 | Re: Call for platforms |
| Previous Message | Gunnar R|nning | 2001-03-23 01:17:03 | Re: Problem migrating dump to latest CVS snapshot. |