Re: upsert functionality

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: upsert functionality
Дата
Msg-id 52E03626.1060703@hogranch.com
обсуждение исходный текст
Ответ на Re: upsert functionality  (joocom <foren@joocom.de>)
Список pgsql-general
On 1/22/2014 10:21 AM, joocom wrote:
Some days ago, i had to to implement an upsert and used a a /LOCK TABLE/ to
prevent the race conditions. Working fine for the moment.

http://www.joocom.de/blog/postgresql-insert-und-update-in-einem-statement/
<http://www.joocom.de/blog/postgresql-insert-und-update-in-einem-statement/>  

that won't perform very well if you have a high level of concurrency.

have you seen the upsert example in the postgres plpgsql docs ?



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

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

Предыдущее
От: joocom
Дата:
Сообщение: Re: upsert functionality
Следующее
От: Joseph Kregloh
Дата:
Сообщение: Re: pg_upgrade & tablespaces