Re: UPSERT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPSERT
Дата
Msg-id 15006.1172859598@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPSERT  ("Simon Riggs" <simon@2ndquadrant.com>)
Ответы Re: UPSERT  ("Simon Riggs" <simon@2ndquadrant.com>)
Re: UPSERT  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Seems like we should try to locate a row first, then INSERT if we cannot
> find one. That's slower on INSERT but more balanced overall

Except it still has the race condition.

> I'm a bit surprised the TODO didn't mention the MERGE statement, which
> is the SQL:2003 syntax for specifying this as an atomic statement.

I believe we concluded that MERGE doesn't actually do quite what people
want/expect.  Please go back and read the archives.
        regards, tom lane


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

Предыдущее
От: Bricklen Anderson
Дата:
Сообщение: Re: UPSERT
Следующее
От: "Simon Riggs"
Дата:
Сообщение: Re: Updated propsoal for read-only queries on PITRslaves (SoC 2007)