Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK
Дата
Msg-id 20041030190730.GA8484@surnet.cl
обсуждение исходный текст
Ответ на Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Oct 27, 2004 at 09:29:21PM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> > On Wed, Oct 27, 2004 at 04:21:53PM -0400, Tom Lane wrote:
> >> On the other hand, it's also a pretty minor issue, and if it turns out
> >> to require a lot of code rejiggering to make it do that, I'd not think
> >> it worthwhile.
>
> > Patch attached.  It passes the regression tests.  It shouldn't have
> > secondary effects, but please test.
>
> Wouldn't it be better to just stay in TBLOCK_STARTED state, as if the
> COMMIT were just some random utility command?

It's the same thing, because CommitTransactionCommand acts identically
either way.  I changed it anyway because it seems simpler.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Licensee shall have no right to use the Licensed Software
for productive or commercial use. (Licencia de StarOffice 6.0 beta)

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Charset/collate support and function parameters
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Signature change for SPI_cursor_open