Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA8ERGm01576 for ; Thu, 8 Nov 2001 09:27:16 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id fA8ERCc16725; Thu, 8 Nov 2001 09:27:12 -0500 (EST) To: "Shuzo Kubo" cc: pgsql-admin@postgresql.org Subject: Re: REINDEXing user table in non stand-alone? In-reply-to: <9sddo6$1922$1@news.tht.net> References: <9sddo6$1922$1@news.tht.net> Comments: In-reply-to "Shuzo Kubo" message dated "Thu, 08 Nov 2001 17:10:09 +0900" Date: Thu, 08 Nov 2001 09:27:11 -0500 Message-ID: <16722.1005229631@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200111/34 X-Sequence-Number: 2559 "Shuzo Kubo" 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