Re: UPSERT strange behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPSERT strange behavior
Дата
Msg-id 20164.1472152606@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPSERT strange behavior  (Peter Geoghegan <pg@heroku.com>)
Ответы Re: UPSERT strange behavior  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
Peter Geoghegan <pg@heroku.com> writes:
> (I don't think that it matters which order anything is tested
> in, though, because not finding a dup value in the arbiter index does
> not guarantee that there won't be one in the other index. There is no
> locking when no conflict is initially found, and so no guarantees
> here.)

I'm not following.  The only insertions happening in this test case
are coming from various clients doing the same INSERT ON CONFLICT UPDATE.
If one of them has successfully inserted "42" into the arbiter index,
how is it that other ones are not seeing that?

> Anyway, I don't have a lot of sympathy for this point of view, because
> the scenario is completely contrived.

Well, I agree this particular test case looks contrived, but it might be
a simplification of a more convincing real-world case.
        regards, tom lane



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: UPSERT strange behavior
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: increasing the default WAL segment size