Re: Nested xacts: looking for testers and review

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Nested xacts: looking for testers and review
Дата
Msg-id 3220.1086896354@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Nested xacts: looking for testers and review  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Nested xacts: looking for testers and review  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> We are considering allowing COMMIT IGNORE ABORT for scripts that want to
> do a subtransaction, but don't care if it fails, and because it is a
> script, they can't test the return value to send ROLLBACK:

While we clearly want this functionality, I tend to agree with Barry
that COMMIT IGNORE ABORT (and the other variants that have been floated)
is a horrid, confusing name for it.  I would suggest using END with some
modifier, instead.  Perhaps
END [ WORK | TRANSACTION ] [ IGNORE ERRORS ]

END doesn't so directly imply that you are trying to commit a failed
transaction.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Nested xacts: looking for testers and review
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Nested xacts: looking for testers and review