Re: Unique Index

From: Roman Neuhauser <neuhauser(at)chello(dot)cz>
To: Alex <alex(at)meerkatsoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unique Index
Date: 2005-01-19 16:35:03
Message-ID: 20050119163503.GC74874@isis.wad.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

# alex(at)meerkatsoft(dot)com / 2005-01-20 01:35:32 +1100:
> i have a unique index on a table over multiple columns. If now one of
> the records has a null value in one of the indexed columns i can insert
> the same record multiple times.
>
> Is this a problem within postgres or expected?

In SQL, NULL means "unknown value". How could you assert that two
NULLs are equal?

--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marco Colombo 2005-01-19 16:45:20 Re: Multiline plpython procedure
Previous Message Bruno Almeida do Lago 2005-01-19 16:27:35 Re: Best Linux Distribution