From libpq, is it possible to safely terminate a long runningquery? (without killing the application)
The only thing I could see that might do the trick was PQreset.
Jerry