Do a CHECK_FOR_INTERRUPTS immediately before terminating a fastpath
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jun 2006 01:24:14 +0000 (01:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jun 2006 01:24:14 +0000 (01:24 +0000)
commit067e40cc6d1c9254c68e7ad29e7a07f14daa7eaa
treebde422a40d6a03fe152a6b39e4074336e7de0bf2
parentaa30e0e555a980a186ce50ab77d222cab75c13e9
Do a CHECK_FOR_INTERRUPTS immediately before terminating a fastpath
function call.  Previously, there may have been no CHECK_FOR_INTERRUPTS
at all in the fastpath code path, making it impossible to cancel an
operation such as \lo_import externally.  This addition doesn't ensure
you can cancel, since your SIGINT may arrive while the backend is idle
waiting for the client, but it gives the largest window we can easily
provide.  Noted while experimenting with new control-C code for psql.
src/backend/tcop/fastpath.c