Re: [ADMIN] Rebuild indexes

From: Shankar K <shan0075(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [ADMIN] Rebuild indexes
Date: 2003-07-29 03:00:39
Message-ID: 20030729030039.15806.qmail@web21106.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

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 <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Shankar K <shan0075(at)yahoo(dot)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
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please
> send an appropriate
> subscribe-nomail command to
> majordomo(at)postgresql(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dani Oderbolz 2003-07-29 09:27:38 Script to recreate indexes?
Previous Message Tom Lane 2003-07-29 02:21:37 Re: Rebuild indexes

Browse pgsql-performance by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2003-07-29 05:44:29 Why performance improvement on converting subselect to a function ?
Previous Message Tom Lane 2003-07-29 02:21:37 Re: Rebuild indexes