Creating an index on a live database - Mailing list pgsql-general

From John McCawley
Subject Creating an index on a live database
Date
Msg-id 45C8BCFC.3050108@hardgeus.com
Whole thread Raw
Responses Re: Creating an index on a live database  (Alan Hodgson <ahodgson@simkin.ca>)
List pgsql-general
I have a table with a few million rows which has inserts performed on it
roughly 50 or so times a minute.  It contains a heavily-queried column
that I would like to add an index to, but I am concerned about a
deadlock occurring.  Should I wait until downtime to add the index, or
is the Postgres add index command "nice" enough to avoid deadlocks?


pgsql-general by date:

Previous
From: Jeff Amiel
Date:
Subject: pg_restore single table privileges/indexes
Next
From: Alan Hodgson
Date:
Subject: Re: pg_restore single table privileges/indexes