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

From Jaime Casanova
Subject Re: Setting a pre-existing index as a primary key
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Setting a pre-existing index as a primary key  ("Jonah H. Harris" <[email protected]>)
List pgsql-hackers
On Tue, Apr 8, 2008 at 10:03 PM, Jonah H. Harris <[email protected]> wrote:
> On Tue, Apr 8, 2008 at 9:04 PM, Tom Lane <[email protected]> wrote:
> > "Jonah H. Harris" <[email protected]> writes:
> >  > I've run into a couple cases now where it would be helpful to easily
> >  > assign an already-existing unique index as a primary key.
> >
> >  You need to present a more convincing use-case than this unsupported
> >  assertion.  There's hardly any effective difference between a unique
> >  index + NOT NULL constraints and a declared primary key ... so what
> >  did you really need it for?
>
> Agreed, functionally there's not much of a difference.  It's more of a
> matter of proper design identifying a primary key.
>

set right constraints it's good for documenting the system itself, i
like the idea...

-- 
regards,
Jaime Casanova


pgsql-hackers by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: Commit fest queue
Next
From: Gregory Stark
Date:
Subject: Re: Index AM change proposals, redux