Do not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION()
Tom Lane <tgl@sss.pgh.pa.us>
Do not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION() macros, but only at explicit CHECK_FOR_INTERRUPTS() calls. Not clear whether overenthusiastic acceptance of interrupts accounts for any real bugs, but it definitely seems risky and unnecessary.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/postgres.c | modified | +2 −3 |
| src/include/miscadmin.h | modified | +3 −6 |