Re: [INTERFACES] aborted transactions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] aborted transactions
Дата
Msg-id 6873.909364929@sss.pgh.pa.us
обсуждение исходный текст
Ответ на aborted transactions  ("Peter Garner" <peter.garner@toward.com>)
Список pgsql-interfaces
"Peter  Garner" <peter.garner@toward.com> writes:
> However, it seems to me that if certain
> queries fail, the current transaction is aborted and all
> queries are ignored until the transaction is ended, either
> via commit or rollback.

*Any* backend-detected "fatal" error causes the transaction to
be aborted.  I've kinda wished that transactions (atomic update)
could be separated from error-abort also, but right now the two
always go together in Postgres.

> Also if there is no begin
> transaction block, I assume that each statement is a unit
> of work and that all subsequent queries will work.

Right: a statement appearing outside any begin-transaction block
is treated as a self-contained transaction.

            regards, tom lane

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

Предыдущее
От: "Peter Garner"
Дата:
Сообщение: aborted transactions
Следующее
От: "Peter Garner"
Дата:
Сообщение: large object error