Re: reindex script - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: reindex script
Date
Msg-id 4CDA46390200002500037500@gw.wicourts.gov
Whole thread Raw
In response to reindex script  (Silvio Brandani <silvio.brandani@tech.sdb.it>)
Responses Re: reindex script
List pgsql-admin
Silvio Brandani  wrote:

> Is it possible to use a reindex in a share lock mode ??

Check out the CONCURRENTLY keyword in CREATE INDEX:

http://www.postgresql.org/docs/current/interactive/sql-createindex.html

You could create a duplicate index concurrently, drop the old index,
and rename the new one to the old name.

-Kevin

pgsql-admin by date:

Previous
From: Silvio Brandani
Date:
Subject: reindex script
Next
From: Silvio Brandani
Date:
Subject: Re: reindex script