Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group