]> granicus.if.org Git - postgresql/commit
Do not return from PQrequestCancel until postmaster has finished
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Oct 2003 19:52:44 +0000 (19:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Oct 2003 19:52:44 +0000 (19:52 +0000)
commitb4966453f6213f65777ab289c996b319a63bbc70
treed17a3bbc4857fbc8e44f42e8b85d43fcef8a4906
parentbf2f5d9463082d92835655aafa02f403763ebf40
Do not return from PQrequestCancel until postmaster has finished
processing the request; this ensures that the request won't be taken
to cancel a subsequently-issued query.  Race condition originally
noted by Oliver Jowett in the context of JDBC, but libpq has it too.
src/interfaces/libpq/fe-connect.c