Adding UNIQUE constraint on NULL column - Mailing list pgsql-general

From Dave Smith
Subject Adding UNIQUE constraint on NULL column
Date
Msg-id 1105624867.17160.9.camel@playpen.candata.com
Whole thread Raw
Responses Re: Adding UNIQUE constraint on NULL column  (Doug McNaught <doug@mcnaught.org>)
Re: Adding UNIQUE constraint on NULL column  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
I am trying to add a unique constraint on a column that can be null. The
documentation states that null is treated as non equal values but I want
them to be equal. Is there another way of doing this other than writing
a before insert trigger?

--
Dave Smith
CANdata Systems Ltd
416-493-9020


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: [HACKERS] Much Ado About COUNT(*)
Next
From: Marek Lewczuk
Date:
Subject: Trace triggers