Re: VACUUM FULL versus system catalog cache invalidation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: VACUUM FULL versus system catalog cache invalidation
Date
Msg-id 19020.1313244701@sss.pgh.pa.us
Whole thread Raw
In response to Re: VACUUM FULL versus system catalog cache invalidation  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> With HOT, there is very little need to perform a VACUUM FULL on any
> shared catalog table. Look at the indexes...

This is not really a useful argument.  People do do VAC FULL on
catalogs, whether we think they should or not.  Also, it's not only
"shared" catalogs that are at stake.

We could avoid fixing the bug if we forbade both VAC FULL and CLUSTER
on all system catalogs, period, no exceptions.  That doesn't seem like
a workable answer though.  Some usage patterns do see bloat on the
catalogs, especially if you disable or dial down autovacuum.

> In the unlikely event we do actually have to VACUUM FULL a shared
> catalog table, nuke any cache entry for the whole shared catalog.

You're still not getting the point.  We *do* nuke all cache entries
after a VAC FULL.  That does not avoid this bug.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Inserting heap tuples in bulk in COPY
Next
From: Tom Lane
Date:
Subject: Re: Inserting heap tuples in bulk in COPY