Re: [HACKERS] SPI example does not work for 7.1beta4 - Mailing list pgsql-general

From Limin Liu
Subject Re: [HACKERS] SPI example does not work for 7.1beta4
Date
Msg-id 3ABB9645.ADE21428@pumpkinnet.com
Whole thread Raw
In response to SPI example does not work for 7.1beta4  (Limin Liu <limin@pumpkinnet.com>)
List pgsql-general
> > ---
> >    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



pgsql-general by date:

Previous
From: "Vilson farias"
Date:
Subject: indexes not working very well
Next
From: "Dan Wilson"
Date:
Subject: Re: Alter column length