> > ---
> >    SPI_connect();
> >    SPI_exec("create temp table tbl_tmp (n int);",0);
> >    SPI_exec("insert into tbl_tmp values (1);",0);
> >    SPI_finish();
> > ---
> > after InitPostgres and before setsigjmp().
>
> I doubt this will work correctly without a transaction around it ...

Thanks for the hint.  It works fine now between start/finish_xact_command.

--
LM Liu



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

Reply via email to