pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedREINDEXing user table in non stand-alone?
2+ messages / 2 participants
[nested] [flat]
* REINDEXing user table in non stand-alone?
@ 2001-11-08 08:10 Shuzo Kubo <gardenweasel@hotmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Shuzo Kubo @ 2001-11-08 08:10 UTC (permalink / raw)
To: pgsql-admin
Hi,
I read the manual for the REINDEX command.
The REINDEX command is described as
"Recover corrupted system indexes under
stand-alone Postgres "
I am currently trying to reindex an user table.
Does one need to go into stand-alone mode to
reindex an user table?
I have actually REINDEXed an user table when
the database is not in stand-alone mode. It
seems fine but the test environment does not
have much users accessing it, the live site that
I eventually want to REINDEX does.
Is it safe to REINDEX an user table while in
non stand-alone mode when other users are
accessing it?
Thank you in advance.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: REINDEXing user table in non stand-alone?
@ 2001-11-08 14:27 Tom Lane <tgl@sss.pgh.pa.us>
parent: Shuzo Kubo <gardenweasel@hotmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-11-08 14:27 UTC (permalink / raw)
To: Shuzo Kubo <gardenweasel@hotmail.com>; +Cc: pgsql-admin
"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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-11-08 14:27 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-08 08:10 REINDEXing user table in non stand-alone? Shuzo Kubo <gardenweasel@hotmail.com>
2001-11-08 14:27 ` Tom Lane <tgl@sss.pgh.pa.us>
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