X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7D806D1CA05 for ; Tue, 29 Jul 2003 03:00:46 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 38297-02 for ; Mon, 28 Jul 2003 23:59:47 -0300 (ADT) Received: from web21106.mail.yahoo.com (web21106.mail.yahoo.com [216.136.227.108]) by svr1.postgresql.org (Postfix) with SMTP id 518F2D1C936 for ; Tue, 29 Jul 2003 00:00:44 -0300 (ADT) Message-ID: <20030729030039.15806.qmail@web21106.mail.yahoo.com> Received: from [12.234.204.72] by web21106.mail.yahoo.com via HTTP; Mon, 28 Jul 2003 20:00:39 PDT Date: Mon, 28 Jul 2003 20:00:39 -0700 (PDT) From: Shankar K Subject: Re: [ADMIN] Rebuild indexes To: Tom Lane Cc: pgsql-performance@postgresql.org In-Reply-To: <17554.1059445297@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/454 X-Sequence-Number: 2747 thanks tom. i wasn't sure about create index taking exclusive locks on tables too. so i could as well reindex than doing the whole _swap mess during off-peak hrs. --- Tom Lane wrote: > Shankar K writes: > > ... so i then decided to do reindex online, but > > that makes exclusive lock on table which would > prevent > > writing on to tables. > > So does CREATE INDEX, so it's not clear what you're > buying with > all these pushups. > > > 2. analyze table to update stats, so that the > table > > knows about new indexes. > > You do not need to ANALYZE to get the system to > notice new indexes. > > > 4. i wish i had a rename index command to rename > _swap > > to its original index name. > > You can rename indexes as if they were tables. > > regards, tom lane > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please > send an appropriate > subscribe-nomail command to > majordomo@postgresql.org so that your > message can get through to the mailing list cleanly __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com