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

From David Fetter
Subject Re: Setting a pre-existing index as a primary key
Date
Msg-id 20080511163201.GE18958@fetter.org
Whole thread Raw
In response to Re: Setting a pre-existing index as a primary key  (Andrew Sullivan <ajs@commandprompt.com>)
List pgsql-hackers
On Sat, May 10, 2008 at 10:41:56PM -0400, Andrew Sullivan wrote:
> On Sat, May 10, 2008 at 11:55:29AM -0400, Tom Lane wrote:
> > IMHO a utility command should do one easily-explained thing.  The
> > fewer options the better.
> 
> Sticking to that principle makes for a better-maintained system.  I
> agree.  If we want to point out, "You might rename your index
> afterwards to make it look like other default primary keys," I have
> no objection.

For convenience, it might be nice to include the generated name in the
notice.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] [badalex@gmail.com: Re: [BUGS] Problem identifying constraints which should not be inherited]
Next
From: Tom Lane
Date:
Subject: Re: XIDs and big boxes again ...