Re: Setting a pre-existing index as a primary key - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Setting a pre-existing index as a primary key
Date
Msg-id 9090.1210466004@sss.pgh.pa.us
Whole thread Raw
In response to Re: Setting a pre-existing index as a primary key  ("Jonah H. Harris" <jonah.harris@gmail.com>)
List pgsql-hackers
"Jonah H. Harris" <jonah.harris@gmail.com> writes:
> ALTER TABLE blah ADD ... PRIMARY KEY (...) USING PREBUILT INDEX index_hame

> If the user doesn't specify CONSTRAINT constraint_name, it will
> default to current implicit behavior of col_pkey.

IOW, the default behavior is to rename the index?  Doesn't seem to me
to satisfy the principle of least surprise.

I agree with Andrew that creating new keywords just for noise purposes
is not gonna happen.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Setting a pre-existing index as a primary key
Next
From: Andrew Sullivan
Date:
Subject: Re: Setting a pre-existing index as a primary key