Re: pg_autovacuum crashes when query fails for temp tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_autovacuum crashes when query fails for temp tables
Date
Msg-id 26127.1082522332@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_autovacuum crashes when query fails for temp tables  ("Matthew T. O'Connor" <matthew@zeut.net>)
List pgsql-hackers
"Matthew T. O'Connor" <matthew@zeut.net> writes:
> System Tables:  pg_autovacuum treats non-shared system tables just like 
> any other table.  It monitors the activity and vacuums when it deems it 
> appropriate.  As for shared system tables: In user databases they are 
> only analyzed by pg_autovacuum, while connected to template1, 
> pg_autovacuum will treat the shared tables as normal tables and vacuum 
> when appropriate.

As long as you hit template1 reasonably often, this will work.  But I'm
a bit concerned about the possibility that some maverick will decide he
doesn't need template1.  (It's at least theoretically possible to run
without it.)

Plan B would be to ignore the sharedness issue and vacuum/analyze shared
catalogs the same as anything else.  While this would certainly result
in more vacuums than really necessary, these tables are probably small
enough that it'd hardly matter ...

Comments?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_autovacuum crashes when query fails for temp
Next
From: mike g
Date:
Subject: Duplicate variable declared?