Re: [ADMIN] Recreate primary key without dropping foreign keys?

2012-04-15 Thread Frank Lanitz
On Sun, 15 Apr 2012 18:41:05 -0600 Chris Ernst wrote: > Hi all, > > In PostgreSQL 9.1.3, I have a few fairly large tables with bloated > primary key indexes. I'm trying to replace them using newly created > unique indexes as outlined in the docs. Something like: > > CREATE UNIQUE INDEX CONCUR

[ADMIN] Recreate primary key without dropping foreign keys?

2012-04-15 Thread Chris Ernst
Hi all, In PostgreSQL 9.1.3, I have a few fairly large tables with bloated primary key indexes. I'm trying to replace them using newly created unique indexes as outlined in the docs. Something like: CREATE UNIQUE INDEX CONCURRENTLY dist_id_temp_idx ON distributors (dist_id); ALTER TABLE distrib