Re: PRIMARY KEY on a *group* of columns imply that each

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Stephane Bortzmeyer <bortzmeyer(at)nic(dot)fr>
Cc: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, Guy Rouillier <guyr(at)masergy(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: PRIMARY KEY on a *group* of columns imply that each
Date: 2005-04-27 13:54:57
Message-ID: 20050427065130.O31059@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wed, 27 Apr 2005, Stephane Bortzmeyer wrote:

> On Tue, Apr 26, 2005 at 03:48:44PM -0500,
> Scott Marlowe <smarlowe(at)g2switchworks(dot)com> wrote
> a message of 26 lines which said:
>
> > Here's a quote from the SQL1992 spec that's VERY clear:
>
> Yes, PostgreSQL is right and implement the standard. Now, what's the
> rationale for the standard? I understand it for a single column but,
> for several columns, it should be still possible to have different
> tuples, such as (3, NULL) and (5, NULL) for instance.

The case that they're trying to prevent is two tuples like (3, NULL) and
(3,NULL) since uniqueness alone doesn't prevent them both from being
inserted.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephane Bortzmeyer 2005-04-27 14:06:32 Re: PRIMARY KEY on a *group* of columns imply that each column is NOT
Previous Message Scott Marlowe 2005-04-27 13:46:11 Re: PRIMARY KEY on a *group* of columns imply that each column is