OSDN Git Service

Teach autovacuum how to determine whether a temp table belongs to a crashed
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2008 02:09:34 +0000 (02:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2008 02:09:34 +0000 (02:09 +0000)
commit5b965bf08bfb4aa8928bafaed20e42b89de02a5c
tree5e8098d46cda226eb35aa38229d97a2258674b24
parent92d1cc89738e70a01e7c095f2315e80b9c4ef900
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.
src/backend/catalog/namespace.c
src/backend/postmaster/autovacuum.c
src/backend/storage/ipc/sinvaladt.c
src/include/catalog/namespace.h
src/include/storage/sinvaladt.h