Perhaps someone can explain what's wrong with this.  Excuse the mess,
it was cut out of a much larger function but reliably creates the
error on my Postgres 7.1 beta 4 machine.

Compile C function, restart postgres (for the heck of it), create a
new db (I used 'stuff), import sql.  The insert it runs at the end
fails, and:

pqReadData() -- backend closed the channel unexpectedly.....

Quite confused, if I remove the SPI_Finish() it works fine, but
complains every time an SPI_Connect is issued after the first run of
the function.

As you can see, the closure is SPI_Finish as the notice before
appears, and the notice after doesn't.

--
Rod Taylor

There are always four sides to every story: your side, their side, the
truth, and what really happened.
BEGIN:VCARD
VERSION:2.1
N:Taylor;Rod;B
FN:Taylor, Rod B
ORG:BarChord Entertainment Inc.;System Operation and Development
TITLE:Chief Technical Officer
ADR;WORK:;;;Toronto;Ontario;;Canada
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Toronto, Ontario=0D=0ACanada
X-WAB-GENDER:2
URL:
URL:http://www.barchord.com
BDAY:19790401
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20010216T210809Z
END:VCARD

bad_function.sql

bad_function.c

Reply via email to