daveg <[EMAIL PROTECTED]> writes: > I agree, but would like to relax the primary key requirement to simply > a unique index. I can see use cases for unique so long as not null keys, > so it would be nice if the MERGE operation would work for these. As nulls > are not "equal" anyway this doesn't seem to do too much violence to the > semantics.
But a "unique" key doesn't guarantee that there's only one matching row, so ISTM you're right back to needing a predicate lock if you do that. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq