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

From Peter Eisentraut
Subject Re: Patch to add a primary key using an existing index
Date
Msg-id 1291576171.10677.2.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Patch to add a primary key using an existing index  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Patch to add a primary key using an existing index  (Gurjeet Singh <singh.gurjeet@gmail.com>)
List pgsql-hackers
On fre, 2010-12-03 at 15:27 -0500, Robert Haas wrote:
> On Fri, Dec 3, 2010 at 2:56 PM, r t <pgsql@xzilla.net> wrote:
> > What exactly was the objection to the following -->
> > ALTER TABLE table_name ADD PRIMARY KEY (column_list) USING index_name;
> > Is the objection that you might have been trying to specify a constraint
> > named "using" ? I'm willing to make that option more difficult. :-)
> 
> I think it's that someone might expect the word after USING to be the
> name of an index AM.

That could be avoided by writing

USING INDEX <name>



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: profiling connection overhead
Next
From: Rob Wultsch
Date:
Subject: Re: profiling connection overhead