diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-09 16:12:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-09 16:12:19 +0000 |
commit | f44271176e857dd7b5adb4e70e10510e1638c9d1 (patch) | |
tree | f07dfddaf76340bfcf0b4eb12d2ff0fa978823e8 /src/include/pgstat.h | |
parent | c138b966d42e69446b52a3e65a596f0401c41a33 (diff) | |
download | postgresql-f44271176e857dd7b5adb4e70e10510e1638c9d1.tar.gz postgresql-f44271176e857dd7b5adb4e70e10510e1638c9d1.zip |
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.
Diffstat (limited to 'src/include/pgstat.h')
-rw-r--r-- | src/include/pgstat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 896cc5ad68c..e4cc6e9aec7 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -5,7 +5,7 @@ * * Copyright (c) 2001-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.53 2007/02/07 23:11:30 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.54 2007/02/09 16:12:19 tgl Exp $ * ---------- */ #ifndef PGSTAT_H @@ -378,6 +378,7 @@ extern void pgstat_ping(void); extern void pgstat_report_tabstat(void); extern void pgstat_vacuum_tabstat(void); +extern void pgstat_drop_database(Oid databaseid); extern void pgstat_drop_relation(Oid relid); extern void pgstat_clear_snapshot(void); |