]> granicus.if.org Git - postgresql/commit
Call pgstat_drop_database during DROP DATABASE, so that any stats file
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Feb 2007 16:12:19 +0000 (16:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Feb 2007 16:12:19 +0000 (16:12 +0000)
commitf44271176e857dd7b5adb4e70e10510e1638c9d1
treef07dfddaf76340bfcf0b4eb12d2ff0fa978823e8
parentc138b966d42e69446b52a3e65a596f0401c41a33
Call pgstat_drop_database during DROP DATABASE, so that any stats file
entries for the victim database go away sooner rather than later.  We already
did the equivalent thing at the per-relation level, not sure why it's not
been done for whole databases.  With this change, pgstat_vacuum_tabstat
should usually not find anything to do; though we still need it as a backstop
in case DROPDB or TABPURGE messages get lost under load.
src/backend/commands/dbcommands.c
src/backend/postmaster/pgstat.c
src/include/pgstat.h