Re: BUG or strange behaviour of update on primary key - Mailing list pgsql-hackers

From Tom Lane
Subject Re: BUG or strange behaviour of update on primary key
Date
Msg-id 25406.1318908255@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG or strange behaviour of update on primary key  (Royce Ausburn <royce.ml@inomial.com>)
List pgsql-hackers
Royce Ausburn <royce.ml@inomial.com> writes:
> On 18/10/2011, at 1:00 PM, Robert Haas wrote:
>> I don't think it's a bug for it to work.  It'd probably work in
>> PostgreSQL too, if you inserted (2) first and then (1).  It's just
>> that, as Tom says, if you want it to be certain to work (rather than
>> depending on the order in which the rows are inserted), you need the
>> checks to be deferred.

> Do deferred checks such as this have a memory impact for bulk updates?

Yes indeed.  That's why immediate check is the default.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Royce Ausburn
Date:
Subject: Re: BUG or strange behaviour of update on primary key
Next
From: Peter Eisentraut
Date:
Subject: Re: BUG or strange behaviour of update on primary key