Re: UPSERT strange behavior - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: UPSERT strange behavior
Date
Msg-id CAM3SWZRWhN=aYidDDcYffbUXAoRYZ0zD4LH5ovLN_do1BiSzJg@mail.gmail.com
Whole thread Raw
In response to Re: UPSERT strange behavior  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
On Thu, Aug 25, 2016 at 12:59 PM, Peter Geoghegan <pg@heroku.com> wrote:
> Maybe we should change the ordering of those IndexInfo structs to
> something more suitable, but it must be immutable (it cannot hinge
> upon the details of one particular DML statement).

I meant that it must be stable (not immutable), in the specific sense
that it cannot change without an ALTER TABLE or similar. The order of
insertion should be consistent among all backends that might be
performing DML against the table at any given time, since, in general,
to do otherwise risks deadlocking (perhaps only with hash indexes, or
a much earlier version of the nbtree am that still used heavyweight
locks).

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: UPSERT strange behavior
Next
From: Alvaro Herrera
Date:
Subject: Re: increasing the default WAL segment size