Re: [HACKERS] SPI example does not work for 7.1beta4

From: Limin Liu <limin(at)pumpkinnet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] SPI example does not work for 7.1beta4
Date: 2001-03-23 18:30:29
Message-ID: 3ABB9645.ADE21428@pumpkinnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> > ---
> > 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vilson farias 2001-03-23 18:36:41 indexes not working very well
Previous Message Bruce Momjian 2001-03-23 18:11:05 Transcript of Internet Chat

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew 2001-03-23 18:38:38 RE: 7.0.3 _bt_restscan: my bits moved right off the end of the world!
Previous Message Mikheev, Vadim 2001-03-23 18:30:13 RE: 7.0.3 _bt_restscan: my bits moved right off the end of the world!