Re: [GENERAL] deferring pk constraint

2011-11-15 Thread Nathan Wagner
On Tue, 15 Nov 2011 18:56:37 -0700, J.V. wrote: I have a table with existing data for which I need to: 1) drop the single primary key column (int4) 2) recreate the column with the pk (not null) constraint deferred 3) repopulate the column from a sequence 4) enable the constraint When I issue th

[GENERAL] deferring pk constraint

2011-11-15 Thread J.V.
I have a table with existing data for which I need to: 1) drop the single primary key column (int4) 2) recreate the column with the pk (not null) constraint deferred 3) repopulate the column from a sequence 4) enable the constraint When I issue this command to add the column: alter table add c