Re: error when executing dynamic commands with transaction
В списке pgsql-general по дате отправления:
| От | Shridhar Daithankar |
|---|---|
| Тема | Re: error when executing dynamic commands with transaction |
| Дата | |
| Msg-id | 402B5D4D.7090007@frodo.hserus.net обсуждение исходный текст |
| Ответ на | Re: error when executing dynamic commands with transaction (Shridhar Daithankar <shridhar@frodo.hserus.net>) |
| Список | pgsql-general |
Shridhar Daithankar wrote: > Pascal Polleunus wrote: > >> If I don't use a transaction in the executed statement, there is no >> problem. >> Remark: In this example a transaction is not needed, but in my real >> usage of this I'm creating a table and granting permissions, and maybe >> also creating a view. So a transaction is preferable. >> >> I've tested this on "PostgreSQL 7.4.1 on i386-pc-linux-gnu, compiled by >> GCC i386-linux-gcc (GCC) 3.3.2 (Debian)", Debian Sarge. > > > AFAIK, functions reside in transaction scope created by caller. So you > can not call begin/commit in a transaction. Argh.. read that as 'can not call begin/commit in a function'. Shridhar
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера