From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | Ragnar <gnari(at)hive(dot)is>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Online index builds |
Date: | 2006-12-07 23:11:02 |
Message-ID: | 21629.1165533062@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-announce pgsql-general pgsql-www |
Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> I think all you need to do what you want is something like:
> ALTER TABLE foo DROP CONSTRAINT foo_pkey KEEP INDEX;
> Because then you could drop the primary key status on a column without
> affecting the column or the index, then use my suggested syntax to
> switch the primary key status to a different index like so:
> ALTER TABLE foo SET PRIMARY KEY INDEX foo_othercolumn_index;
That seems like an awful lot of uglification simply to let the index be
marked as "primary key" rather than just "unique".
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2006-12-07 23:34:16 | Re: Online index builds |
Previous Message | Jeff Davis | 2006-12-07 21:57:50 | Re: Online index builds |
From | Date | Subject | |
---|---|---|---|
Next Message | Rick Schumeyer | 2006-12-07 23:11:35 | Re: tsearch2: pg8.1 to pg8.2 |
Previous Message | Tom Lane | 2006-12-07 23:09:36 | Re: Indexes and Inheritance |
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2006-12-07 23:34:16 | Re: Online index builds |
Previous Message | Jeff Davis | 2006-12-07 21:57:50 | Re: Online index builds |