diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-08 22:23:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-08 22:23:25 +0000 |
commit | 18e47a572c59ac5843b8b7031ce13bd03aae6e29 (patch) | |
tree | 3b6e5cf39399ee8f707d84207178517b602d67a5 /src/include | |
parent | 2f2c67f574a38936dfa98dd65e689ec6485861f5 (diff) | |
download | postgresql-18e47a572c59ac5843b8b7031ce13bd03aae6e29.tar.gz postgresql-18e47a572c59ac5843b8b7031ce13bd03aae6e29.zip |
Remove the pgstat_drop_relation() call from smgr_internal_unlink(), because
we don't know at that point which relation OID to tell pgstat to forget.
The code was passing the relfilenode, which is incorrect, and could possibly
cause some other relation's stats to be zeroed out. While we could try to
clean this up, it seems much simpler and more reliable to let the next
invocation of pgstat_vacuum_tabstat() fix things; which indeed is how it
worked before I introduced the buggy code into 8.1.3 and later :-(.
Problem noticed by Itagaki Takahiro, fix is per subsequent discussion.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/pgstat.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 8f5db770795..65145d5944f 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -5,7 +5,7 @@ * * Copyright (c) 2001-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.50 2006/10/04 00:30:06 momjian Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.50.2.1 2007/07/08 22:23:25 tgl Exp $ * ---------- */ #ifndef PGSTAT_H @@ -377,7 +377,6 @@ extern void pgstat_ping(void); extern void pgstat_report_tabstat(void); extern void pgstat_vacuum_tabstat(void); -extern void pgstat_drop_relation(Oid relid); extern void pgstat_reset_counters(void); |