diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-12-01 23:19:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-12-01 23:19:54 +0000 |
commit | e16c318590269c7243c5962241ba304f1931f499 (patch) | |
tree | 350517623b85a32f88551ea952b141891bf7f7ea /src | |
parent | 0bdc0a6d33c4eef8086cac077efdd66c13241fb6 (diff) |
I've run across a pretty serious problem with pg_autovacuum.
pg_autovacuum looses track of any table that's ever been truncated
(possibly other situations too). When i truncate a table it gets a
new relfilenode in pg_class. This is a problem because pg_autovacuum
assumes pg_class.relfilenode will join to pg_stats_all_tables.relid.
pg_stats_all_tables.relid is actallly the oid from pg_class, not the
relfilenode. These two values start out equal so pg_autovacuum works
initially, but it fails later on because of this incorrect assumption.
This patch fixes that problem. Applied to HEAD and 7.4.X.
Brian Hirt
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions