Search Postgresql Archives

Re: SPI_ERROR_UNCONNECTED in python callback function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Haywood <ihaywood@xxxxxxxxxxxx> writes:
> It seems as soon as execution leaves the main function access to SPI is lost. Is this correct or a bug?

What this probably means is that plpython is failing to use
SPI_push/SPI_pop properly --- these should be called around
any operation that might invoke an independent SPI-using function:
http://www.postgresql.org/docs/8.3/static/spi-spi-push.html

I'm not enough of a plpython user to be excited about trying to fix it,
but if you are then please send a patch.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux