postgresql/src/backend/storage
Tom Lane 6f906905b1 Fix WaitOnLock() to ensure that the process's "waiting" flag is reset after
erroring out of a wait.  We can use a PG_TRY block for this, but add a comment
explaining why it'd be a bad idea to use it for any other state cleanup.

Back-patch to 8.2.  Prior releases had the same issue, but only with respect
to the process title, which is likely to get reset almost immediately anyway
after the transaction aborts, so it seems not worth changing them.  In 8.2
and HEAD, the pg_stat_activity "waiting" flag could remain set incorrectly
for a long time.

Per report from Gurjeet Singh.
2008-02-02 22:26:17 +00:00
..
buffer Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
file Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
freespace Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
ipc Fix CREATE INDEX CONCURRENTLY to not deadlock against an automatic or manual 2008-01-09 21:52:36 +00:00
large_object Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
lmgr Fix WaitOnLock() to ensure that the process's "waiting" flag is reset after 2008-02-02 22:26:17 +00:00
page Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
smgr Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
Makefile Replace useless uses of := by = in makefiles. 2007-02-09 15:56:00 +00:00