Hi,
Just in case you'd like to see what I was talking about, I am attachingmy patch to src/interfaces/libpq/fe-exec.c to prevent utility functionscalled from SPI from locking up the client.
Jerry