Re: Weird prepared stmt behavior

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Weird prepared stmt behavior
Дата
Msg-id 20040504020250.GA602@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Weird prepared stmt behavior  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-hackers
On Tue, May 04, 2004 at 01:22:53AM -0000, Greg Sabino Mullane wrote:

> What about rolling prepares back if they are in a transaction, though?
> They still have the ability to affect a transaction, despite being
> partially outside of it:

> [example ripped]

IMHO this is an oversight, not a design feature.  That's why I pointed
it out and planned to correct it.

I think with the Prepare message we should _not_ abort the transaction
if it fails -- if it's outside transaction control, it shouldn't affect
the current transaction (So we would open a subtransaction, process the
message, and rollback if it fails.)

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La fuerza no está en los medios físicos
sino que reside en una voluntad indomable" (Gandhi)


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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Weird prepared stmt behavior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Weird prepared stmt behavior