Re: Patch to add a primary key using an existing index - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Patch to add a primary key using an existing index
Date
Msg-id 1291406134-sup-8159@alvh.no-ip.org
Whole thread Raw
In response to Re: Patch to add a primary key using an existing index  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Patch to add a primary key using an existing index  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Excerpts from Heikki Linnakangas's message of vie dic 03 16:45:59 -0300 2010:

> ALTER TABLE table_name SET PRIMARY KEY USING INDEX index_name. Quite 
> verbose, but imho USING makes it much more clear that it's an existing 
> index.

I was going to post the same thing (well except I was still thinking in
ADD PRIMARY KEY rather than SET PRIMARY KEY).  I think SET is better
than ADD in that it is a bit different from the syntax that makes it
create a new index.  On the other hand, it could also be pointlessly
annoying.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: We really ought to do something about O_DIRECT and data=journalled on ext4
Next
From: Heikki Linnakangas
Date:
Subject: Re: We really ought to do something about O_DIRECT and data=journalled on ext4