Teach autovacuum how to determine whether a temp table belongs to a crashed
Tom Lane <tgl@sss.pgh.pa.us>
Teach autovacuum how to determine whether a temp table belongs to a crashed backend. If so, send a LOG message to the postmaster log, and if the table is beyond the vacuum-for-wraparound horizon, forcibly drop it. Per recent discussions. Perhaps we ought to back-patch this, but it probably needs to age a bit in HEAD first.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/namespace.c | modified | +27 −1 |
| src/backend/postmaster/autovacuum.c | modified | +77 −65 |
| src/backend/storage/ipc/sinvaladt.c | modified | +28 −1 |
| src/include/catalog/namespace.h | modified | +2 −1 |
| src/include/storage/sinvaladt.h | modified | +2 −1 |