Re: NULL values seem to short-circuit my unique index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthew Wilson <matt(at)tplus1(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: NULL values seem to short-circuit my unique index
Date: 2008-09-29 03:04:50
Message-ID: 25115.1222657490@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthew Wilson <matt(at)tplus1(dot)com> writes:
> It seems like I can insert two rows with NULL values in a column with a
> unique constraint just fine.

This is per SQL spec and quite well-documented in our manual ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Klint Gore 2008-09-29 03:17:15 Re: NULL values seem to short-circuit my unique index
Previous Message Chris 2008-09-29 02:59:59 Re: NULL values seem to short-circuit my unique index