pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-admin@postgresql.org
Cc: Chris Hoover <revoohc@gmail.com>
Subject: Re: 8.1 Unique Index Issue/Bug???
Date: Thu, 13 Jul 2006 17:55:26 +0200
Message-ID: <200607131755.27335.peter_e@gmx.net> (raw)
In-Reply-To: <1d219a6f0607130740g7fe13967t48c77a64fde977aa@mail.gmail.com>
References: <1d219a6f0607130740g7fe13967t48c77a64fde977aa@mail.gmail.com>

Am Donnerstag, 13. Juli 2006 16:40 schrieb Chris Hoover:
> On this table, I have created a unique index on payer_trn03, payer_trn04,
> and expire_timestamp.  However, since the expire_timestamp is normally
> null, the unique index does not appear to be working.  I have been able to
> enter two identical rows into this table.

This behavior is correct according to the SQL standard, as two null values are 
not considered equal.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (10+ messages)  latest in thread

Message-ID: <200607131755.27335.peter_e@gmx.net>
Permalink:  ../200607131755.27335.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200607131755.27335.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter_e@gmx.net, revoohc@gmail.com
  Subject: Re: 8.1 Unique Index Issue/Bug???
  In-Reply-To: <200607131755.27335.peter_e@gmx.net>
  References: <1d219a6f0607130740g7fe13967t48c77a64fde977aa@mail.gmail.com> <200607131755.27335.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox