Re: Trouble with Savepoints in postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trouble with Savepoints in postgres
Дата
Msg-id 23988.1205600595@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Trouble with Savepoints in postgres  (sam <sam.mahindrakar@gmail.com>)
Список pgsql-general
sam <sam.mahindrakar@gmail.com> writes:
> Ok i realised that the only way data can be committed within a
> procedure is to use nested BEGIN......END.

Nothing that you said in this message is correct.  You can't "commit"
anything within a function, and bare BEGIN/END don't do anything at
all except create a syntactic grouping.

BEGIN/EXCEPT/END can indeed be used to limit the scope of errors,
but I don't think the way you've described it is a helpful way
to think about it, even with that correction.

            regards, tom lane

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

Предыдущее
От: sam
Дата:
Сообщение: Re: Trouble with Savepoints in postgres
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Trouble with Savepoints in postgres