Re: Vote totals for SET in aborted transaction

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема Re: Vote totals for SET in aborted transaction
Дата
Msg-id 20020429133001.Y15173-100000@mail1.hub.org
обсуждение исходный текст
Ответ на Re: Vote totals for SET in aborted transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, 29 Apr 2002, Tom Lane wrote:

> Scott Marlowe <scott.marlowe@ihs.com> writes:
> > I've been thinking this over and over, and it seems to me, that the way
> > SETS in transactions SHOULD work is that they are all rolled back, period,
> > whether the transaction successfully completes OR NOT.
>
> This would make it impossible for SET to have any persistent effect
> at all.  (Every SQL command is inside a transaction --- an
> implicitly-established one if necesary, but there is one.)

Why?  What I think Scott is proposing is that on COMMIT *or* ABORT, all
SETs since the BEGIN are reversed ... hrmmm ... that didnt' sound right
either ... is there no way of distiguishing between an IMPLICT transcation
vs an EXPLICIT one?

INSERT ...

vs

BEGIN
INSERT ...
COMMIT

?




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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: Vote totals for SET in aborted transaction
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Vote totals for SET in aborted transaction