Re: someone working to add merge? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: someone working to add merge?
Date
Msg-id 10365.1132064876@sss.pgh.pa.us
Whole thread Raw
In response to Re: someone working to add merge?  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: someone working to add merge?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> This only happens because of the unique index.  There's no predicate
> locking involved.  The btree code goes some lengths to make this work;

That's one way to look at it; the other is to say that we have predicate
locking for a very specific class of predicate, ie, equality of a
unique key.

In practice I think we only have a useful lock there for *primary* keys,
because unique without NOT NULL doesn't actually constrain you to just
one matching row ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Long-time 7.4 contrib failure Mac OS X 10.3.8
Next
From: "Magnus Hagander"
Date:
Subject: Re: Fixes for 8.1 run of pgindent