| От | Bruno Wolff III |
|---|---|
| Тема | Re: transaction |
| Дата | |
| Msg-id | 20040421020010.GA19910@wolff.to обсуждение |
| Ответ на | transaction ("H.J. Sanders" <hjs@worldonline.nl>) |
| Список | pgsql-sql |
On Tue, Apr 20, 2004 at 21:14:48 +0200, "H.J. Sanders" <hjs@worldonline.nl> wrote: > > Hello list. > > We are migrating from Informix to PSQL. > > In Informix we used to do: > > - BEGIN WORK > > - INSERT ROW > > - IF FAILED THEN UPDATE ROW > > - COMMIT WORK > > > In PSQL this does not seem to work because after the first error (the > insert) > everything is omitted. > > Has someone found a solution for this (we have 1000's of this type). This question has come up a few times over the last year and there isn't a great answer. Locking the table is a simple solution, but can lead to problems because of contention.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера