Thread: Help SPI

Help SPI

From
Anand Surelia
Date:
Hi,
I am using refint.c to implement foreign keys references. It works fine
for a few tables but when there are lots of tables and triggers fire in
cascade then it fails.
It will execute a few triggers and then say :
check_primary_key: SPI_prepare returned -6
or
PQExec(): backend closed channel.

I believe it is because of some memory leak while allocating  and saving
plans. Can anyone shed any light? Any help would be appreciated?
Thanks,
Anand.