Re: Reindexing primary keys without locking - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: Reindexing primary keys without locking
Date
Msg-id 4DE5FDB0020000250003DF78@gw.wicourts.gov
Whole thread Raw
In response to Reindexing primary keys without locking  (Glyn Astill <glynastill@yahoo.co.uk>)
List pgsql-admin
Glyn Astill <glynastill@yahoo.co.uk> wrote:

> Does anyone know of any tricks to replace primary key indexes
> without using reindex? Or any other method that will not lock the
> table for an extended amount of time on 8.4?
>
> I've got a bloated primary key index on a table and I'd like to
> try and clean it up without downtime.

You could create a unique index concurrently on the same columns.
Perhaps that would help with performance problems from the bloat
until you had a window to drop the redundant index and reindex the
table?

-Kevin

pgsql-admin by date:

Previous
From: Ray Stell
Date:
Subject: Re: patching the OS of a 9.0.4 db with hot standby
Next
From: "Campbell, Lance"
Date:
Subject: logging how to add timestamp