From: Steve Crawford <scrawford@pinpointresearch.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Peter Kovacs <maxottovonstirlitz@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Do we need vacuuming when tables are regularly dropped?
Date: Mon, 29 Sep 2008 16:10:38 -0700
Message-ID: <48E1606E.7070702@pinpointresearch.com> (raw)
In-Reply-To: <25195.1222728353@sss.pgh.pa.us>
References: <b6e8f2e80809290237p7685dbcfm9d5c886ba225b956@mail.gmail.com>
<9815.1222690583@sss.pgh.pa.us>
<b6e8f2e80809290533g2a7e09b1i110bb085ad75092e@mail.gmail.com>
<48E10C95.2050207@pinpointresearch.com>
<dcc563d10809291026h6d01e20cv1afcffd8aec332c5@mail.gmail.com>
<25195.1222728353@sss.pgh.pa.us>
Tom Lane wrote:
> "Scott Marlowe" <scott.marlowe@gmail.com> writes:
>
>> Also, there was a time when you couldn't do vacuum full on system
>> tables do to locking issues, and had to take the db down to single
>> user mode to do so.
>>
>
> There was a short period when *concurrent* vacuum fulls on just the
> wrong combinations of system catalogs could deadlock (because they both
> needed to look up stuff in the other one). AFAIK we fixed that. It's
> never been the case that it didn't work at all.
>
> regards, tom lane
>
Never personally had trouble with vacuum full or reindex on system
tables. CLUSTER, however, is another story. While I've never run across
anything explicitly documenting that clustering system tables is
forbidden, I've also never used a version of PostgreSQL that allows it
(though I've never tried in single-user mode):
postgres@[local]=> CLUSTER pg_class USING pg_class_oid_index ;
ERROR: "pg_class" is a system catalog
Should the docs
(http://www.postgresql.org/docs/8.3/interactive/sql-cluster.html) be
updated to note this restriction?
Cheers,
Steve
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scrawford@pinpointresearch.com, tgl@sss.pgh.pa.us, scott.marlowe@gmail.com, maxottovonstirlitz@gmail.com
Subject: Re: Do we need vacuuming when tables are regularly dropped?
In-Reply-To: <48E1606E.7070702@pinpointresearch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox