Re: mysql replace in postgreSQL?

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: mysql replace in postgreSQL?
Дата
Msg-id 1130915187.30174.15.camel@Andrea.peacock.de
обсуждение исходный текст
Ответ на Re: mysql replace in postgreSQL?  (David Fetter <david@fetter.org>)
Список pgsql-general
Am Sonntag, den 30.10.2005, 07:24 -0800 schrieb David Fetter:
...
> > In most cases, just DELETE and then INSERT should work perfectly.
> > (UPDATE and MERGE would cause dead tuples in the same way so in the
> > end they are only syntactical sugar)
> >
> > Another way is a rule for insert which turns it into an update in
> > case the desired tuple is already existent.
>
> That has a race condition in it.  What happens if something deletes
> the tuple between the attempted INSERT and the UPDATE?

How so in a transaction?



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

Предыдущее
От: Guido Neitzer
Дата:
Сообщение: Re: PostgreSQL, Mac OS X and locales
Следующее
От: "Guy Rouillier"
Дата:
Сообщение: Re: PostgreSQL on 64-bit operating systems