| От | John Sidney-Woollett |
|---|---|
| Тема | Re: dblink: rollback transaction |
| Дата | |
| Msg-id | 4248.192.168.0.64.1075967342.squirrel@mercury.wardbrook.com обсуждение исходный текст |
| Ответ на | dblink: rollback transaction ("Oleg Lebedev" <oleg.lebedev@waterford.org>) |
| Список | pgsql-general |
Oleg Lebedev said: > Is there a way to rollback a dblink transaction? > Say, I delete some data from the remote database, but I don't want this > to be visible untill the data is inserted in the current database. And > if the insertion of data in the current database throws an error, I want > to rollback the dblink transaction, which should restore data in its > original remote location. What about doing the insert first, and then issuing the delete via the dblink? If the insert fails and the transaction rolls back then the deletion in the remote database will never have been done. John Sidney-Woollett
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера