From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shuzo Kubo <gardenweasel@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: REINDEXing user table in non stand-alone?
Date: Thu, 08 Nov 2001 09:27:11 -0500
Message-ID: <16722.1005229631@sss.pgh.pa.us> (raw)
In-Reply-To: <9sddo6$1922$1@news.tht.net>
References: <9sddo6$1922$1@news.tht.net>
"Shuzo Kubo" <gardenweasel@hotmail.com> writes:
> Does one need to go into stand-alone mode to
> reindex an user table?
No. The docs need some improvement in this area. The pushups mentioned
in the docs are really only necessary if you have a broken system index
that's sufficiently critical that the backend crashes before you can
execute REINDEX. (For instance, the indexes on pg_class are likely to
cause such problems.) The basic idea of the pushups is to start the
backend in a mode such that it doesn't use the indexes to access the
system catalogs.
> Is it safe to REINDEX an user table while in
> non stand-alone mode when other users are
> accessing it?
Not sure about that --- I believe it's safe in 7.2, but IIRC, REINDEX
didn't bother to acquire a LOCK on the table in earlier releases.
Best to shut down any other clients that might be trying to access the
damaged table. Or forget REINDEX and recover via DROP/CREATE INDEX.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, gardenweasel@hotmail.com
Subject: Re: REINDEXing user table in non stand-alone?
In-Reply-To: <16722.1005229631@sss.pgh.pa.us>
References: <9sddo6$1922$1@news.tht.net> <16722.1005229631@sss.pgh.pa.us>
* 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