Savepoint Problem

Поиск
Список
Период
Сортировка
От Stefan Sturm
Тема Savepoint Problem
Дата
Msg-id 41F4CEAC.20704@anrath.info
обсуждение исходный текст
Ответ на Weird problem in 8.0.0  (Devrim GUNDUZ <devrim@gunduz.org>)
Список pgsql-general
Hello,

I have a function, which stores some Data. Sometimes this function is
called within a transaction an sometimes not. But I need to set a
savepoint in this function. But this is my problem, when I'm not in a
transaction I get this error:

ERROR:  SAVEPOINT may only be used in transaction blocks

How can I check, if there is an transaction?

Thanks for your help,
Stefan Sturm


В списке pgsql-general по дате отправления:

Предыдущее
От: William Yu
Дата:
Сообщение: Re: serialization errors when inserting new records
Следующее
От: Ralph van Etten
Дата:
Сообщение: Re: serialization errors when inserting new records