Re: Rollback on Error

Поиск
Список
Период
Сортировка
От Michael Paesold
Тема Re: Rollback on Error
Дата
Msg-id 005301c49a43$2a6eb040$ad01a8c0@zaphod
обсуждение исходный текст
Ответ на Rollback on Error  ("Michael Paesold" <mpaesold@gmx.at>)
Список pgsql-general
Peter Eisentraut wrote:

> Michael Paesold wrote:
> > I though the postgres behaviour of rolling back the whole transaction
> > was standard?
>
> No.

Thanks for putting that straigt.

> > If that is not the case, I don't understand why core
> > seems to be against a mode (GUC), where an implicit savepoint is
> > generated before each statement so that "rollback of the last
> > statement" would be possible.
>
> Because it's dangerous in noninteractive mode.  When you send a
> transaction to the server, you don't want some statements be left out.


I understand it's dangerous, it would possibly introduce data-inconsistency
in all applications that don't check for errors after each statement...

Still it would be very useful in interactive psql...
of course, it's bad in scripted mode. Perhaps it could be implemented inside
psql? Would such a patch be accepted?

Regards,
Michael Paesold


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Rollback on Error
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: Rollback on Error