Reindexing primary keys without locking

From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Reindexing primary keys without locking
Date: 2011-06-01 12:38:22
Message-ID: 35505.8950.qm@web26008.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Guys,

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.

A quick search turned up the following thread that mentioned a possible patch, but I couldn't find much else.

http://archives.postgresql.org/message-id/AANLkTinoaVd9RGgOyyudbLWFQFvJKWGdiwyKxOcxtfxV@mail.gmail.com

Thanks
Glyn

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ray Stell 2011-06-01 13:06:41 Re: patching the OS of a 9.0.4 db with hot standby
Previous Message Greg Smith 2011-06-01 10:47:51 Re: patching the OS of a 9.0.4 db with hot standby