Re: Another unexpected behaviour - Mailing list pgsql-general

From Tom Lane
Subject Re: Another unexpected behaviour
Date
Msg-id 12523.1311177109@sss.pgh.pa.us
Whole thread Raw
In response to Re: Another unexpected behaviour  (Samuel Hwang <samuel@replicon.com>)
Responses Re: Another unexpected behaviour
List pgsql-general
Samuel Hwang <samuel@replicon.com> writes:
> Thanks. But I am not looking for how to avoid the problem at this
> moment,
> I am more interested in why PostgreSQL is designed to work this way.

Performance --- it's significantly more expensive to do a deferred
uniqueness check, since you have to visit the index a second time.
Also backwards compatibility with older versions of PG, which did
not have support for deferred uniqueness checks at all.

            regards, tom lane

pgsql-general by date:

Previous
From: Samuel Hwang
Date:
Subject: Re: Another unexpected behaviour
Next
From: Simon Riggs
Date:
Subject: Re: Another unexpected behaviour