From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shankar K <shan0075@yahoo.com>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: Rebuild indexes
Date: Mon, 28 Jul 2003 22:21:37 -0400
Message-ID: <17554.1059445297@sss.pgh.pa.us> (raw)
In-Reply-To: <20030728212905.79549.qmail@web21102.mail.yahoo.com>
References: <20030728212905.79549.qmail@web21102.mail.yahoo.com>
Shankar K <shan0075@yahoo.com> 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
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, shan0075@yahoo.com, pgsql-admin@postgresql.org
Subject: Re: Rebuild indexes
In-Reply-To: <17554.1059445297@sss.pgh.pa.us>
References: <20030728212905.79549.qmail@web21102.mail.yahoo.com> <17554.1059445297@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