Re: Patch to add a primary key using an existing index

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch to add a primary key using an existing index
Date: 2010-12-04 22:13:42
Message-ID: 4CFABD16.7010601@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12/04/2010 12:37 PM, Robert Haas wrote:
> What would make sense to me is: create a pk constraint with the sane name as the existing unique index. If that constraint name already exists, error.

+1, agreed. Based on this, the syntax should be obvious.

We'll need to doc what to do in the event of a name collision error,
though (rename the other constraint). Hmmm, can you rename a constraint?

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-12-04 22:24:36 Re: SQL/MED - file_fdw
Previous Message Tom Lane 2010-12-04 21:58:18 Re: knngist - 0.8