Re: Transaction aborts on syntax error.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transaction aborts on syntax error.
Дата
Msg-id 15252.1076476659@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Transaction aborts on syntax error.  ("Simon Riggs" <simon@2ndquadrant.com>)
Ответы Re: Transaction aborts on syntax error.  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Most importantly, other references I have state that: the ANSI SQL-99
> specification does require that if a statement errors then only that
> statement's changes are rolled back.

No.  The spec says
        The execution of a <rollback statement> may be initiated implicitly        by an SQL-implementation when it
detectsunrecoverable errors.
 

and leaves it up to the implementation to define what is "unrecoverable".
Currently Postgres treats all errors as "unrecoverable".  This is
certainly not ideal, but it is within the letter of the spec.
        regards, tom lane


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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: Summary of Changes since last release (7.4.1)
Следующее
От: "Simon Riggs"
Дата:
Сообщение: Re: Summary of Changes since last release (7.4.1)