Re: [GENERAL] SPI_prepare's parameter

2012-10-29 Thread Albe Laurenz
高健 wrote: > I am new to PostgreSQL's SPI(Server Programming Interface). > > I can understand PostgreSQL's exampel of using SPI. But I am not sure about > SPI_prepare's parameter. > > void * SPI_prepare(const char * command, int nargs, Oid * argtypes) > > > Can somebody kindly give an example o

[GENERAL] SPI_prepare's parameter

2012-10-28 Thread 高健
I am new to PostgreSQL's SPI(Server Programming Interface). I can understand PostgreSQL's exampel of using SPI. But I am not sure about SPI_prepare's parameter. void * SPI_prepare(const char * command, int nargs, Oid * argtypes) Can somebody kindly give an example of using SPI_prepare ?