Re: [PATCHES] pgstat_drop_relation bugfix

2007-07-13 Thread Tom Lane
ITAGAKI Takahiro <[EMAIL PROTECTED]> writes: > I'm worried that we leave garbage entries in the stats. As you suggested, > don't we need to remove unreferenced entries from stats periodically? VACUUM does that already. regards, tom lane ---(end of

Re: [PATCHES] pgstat_drop_relation bugfix

2007-07-13 Thread ITAGAKI Takahiro
Tom Lane <[EMAIL PROTECTED]> wrote: > > What I'm inclined to propose is that we just remove the > > pgstat_drop_relation() call from smgr_internal_unlink > On checking the CVS history, that in fact is how the code worked before > 8.1.3, when I introduced the bogus call in a fit of over-optimizati

Re: [PATCHES] pgstat_drop_relation bugfix

2007-07-08 Thread Tom Lane
I wrote: > What I'm inclined to propose is that we just remove the > pgstat_drop_relation() call from smgr_internal_unlink, and rely entirely > on VACUUM to clean out dead entries in the pgstats data. On checking the CVS history, that in fact is how the code worked before 8.1.3, when I introduced

Re: [PATCHES] pgstat_drop_relation bugfix

2007-07-03 Thread Tom Lane
ITAGAKI Takahiro <[EMAIL PROTECTED]> writes: > I wrote: >>> pgstat_drop_relation() is expecting relid (pg_class.oid) as the argument, >>> but we pass it relfilenode. > Here is a patch to fix undropped entries in the runtime statistics table. > Now smgr records the relation oids and uses them to dr

[PATCHES] pgstat_drop_relation bugfix

2007-06-26 Thread ITAGAKI Takahiro
I wrote: > > pgstat_drop_relation() is expecting relid (pg_class.oid) as the argument, > > but we pass it relfilenode. > I'm trying to fix the bug, because there is a possibility that some useless > statistics data continue to occupy some parts of the statistics table. Here is a patch to fix undro