| От | Peter Eisentraut |
|---|---|
| Тема | Re: committing inside cursor loop |
| Дата | |
| Msg-id | 026bb52f-005f-b5be-2179-c17f804dcb99@2ndquadrant.com обсуждение |
| Ответ на | Re: committing inside cursor loop (Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>) |
| Ответы |
Re: committing inside cursor loop
|
| Список | pgsql-hackers |
On 3/14/18 08:05, Ildus Kurbangaliev wrote: >> The ROLLBACK call in the first loop iteration undoes the UPDATE >> command that drives the loop. Is it then sensible to continue the >> loop? >> > I think that in the first place ROLLBACK was prohibited because of cases > like this, but it seems to safe to continue the loop when portal > strategy is PORTAL_ONE_SELECT. Maybe, but even plain SELECT commands can have side effects. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера