Re: UPSERT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPSERT
Дата
Msg-id 6261.1172848398@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPSERT  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: UPSERT  (Heikki Linnakangas <heikki@enterprisedb.com>)
Re: UPSERT  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> My instinct would be to follow your first strategy, i.e. detect which 
> path is needed rather than try one and then if it fails do the other.

The very first thing you need to think about is how to solve the race
condition problem, ie, two backends concurrently trying to insert
identical data.  Until you have a plausible mechanism for that, the
whole thing is pie-in-the-sky.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HOT - whats next ?
Следующее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: HOT - whats next ?