| От | Arguile |
|---|---|
| Тема | Re: transactions and cursors...... |
| Дата | |
| Msg-id | LLENKEMIODLDJNHBEFBOCEFLEEAA.arguile@lucentstudios.com обсуждение исходный текст |
| Ответ на | transactions and cursors...... (Chris Pesko <cpesko@organic.com>) |
| Список | pgsql-admin |
Chris Pesko writes: > Can I put transactions and cursors into functions? As soon as I > put BEGIN; > and COMMIT; wrapping an insert statement within a function, I get > errors. Do these programs need to reside outside of the database? Pg doesn't supported nested transactions or save points (yet). So you can't have transactional control inside plpgsql functions. Cursors will depend on what version you're running. See chapter 23.7 of the 7.2 documentation for using cursors inside functions. http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/plpgsql-cursors. html
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера