Re: Vacuum (table performance)

From: "Claudio Lapidus" <clapidus(at)hotmail(dot)com>
To: alvherre(at)dcc(dot)uchile(dot)cl
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Vacuum (table performance)
Date: 2003-06-26 00:01:51
Message-ID: BAY7-F69ZYmINYhfBoE00022c1b@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> > An alternative suggested right there is to drop and recreate an index,
> > where -it says- CREATE INDEX would get a write lock on the table. Does
>this
> > mean that during the create index operation the whole table is
>unavailable
> > for write by other processes?
>
>An alternative approach would be to create a second index indentical to
>the one in place and drop the first one.
>

OK, but what's the difference in creating a second index and dropping the
original one first and recreate it? If I understood correctly the doc, I
think the table will be unavailable for write in either case, is this right?

cl.

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus

Browse pgsql-general by date

  From Date Subject
Next Message Jason Earl 2003-06-26 00:25:44 Re: Vacuum (table performance)
Previous Message Tom Lane 2003-06-25 23:27:34 Re: Vacuum (table performance)