Code review for statement_timeout patch. Fix some race conditions
Tom Lane <tgl@sss.pgh.pa.us>
Code review for statement_timeout patch. Fix some race conditions between signal handler and enable/disable code, avoid accumulation of timing error due to trying to maintain remaining-time instead of absolute-end-time, disable timeout before commit not after.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lock.c | modified | +3 −3 |
| src/backend/storage/lmgr/proc.c | modified | +166 −134 |
| src/backend/storage/lmgr/README | modified | +3 −3 |
| src/backend/tcop/postgres.c | modified | +13 −15 |
| src/backend/utils/misc/guc.c | modified | +1 −2 |
| src/include/storage/proc.h | modified | +3 −3 |