Re: "Value locking" Wiki page

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: "Value locking" Wiki page
Дата
Msg-id CAM3SWZTRuyjhgNMAKFZo64GvZG9eh02Qw67_j=iCjQdiAUomJg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: "Value locking" Wiki page  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Ответы Re: "Value locking" Wiki page  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
On Wed, Oct 1, 2014 at 6:49 AM, Heikki Linnakangas
<hlinnakangas@vmware.com> wrote:
> Well, if nothing else, it would be nice to fix the concurrency issue we have
> with exclusion constraints today, which is that if two backends insert the
> same value at the same time, they might both get an error, even though you'd
> only need to abort one of them. That's a special case of UPSERT if you
> squint a little.

In my view, it makes sense to fix that, and to make INSERT ... ON
CONFLICT IGNORE work with exclusion constraints. However, it does not
make sense to have INSERT ... ON CONFLICT UPDATE work with exclusion
constraints. The user-visible semantics are very tricky, and I don't
think it's useful.

-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Scaling shared buffer eviction
Следующее
От: Robert Haas
Дата:
Сообщение: Re: autovacuum scheduling starvation and frenzy