Re: A bad behavior under autocommit off mode

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: A bad behavior under autocommit off mode
Дата
Msg-id 3E556EF4.244FB87F@tpf.co.jp
обсуждение исходный текст
Ответ на Re: A bad behavior under autocommit off mode  ("Hiroshi Inoue" <inoue@tpf.co.jp>)
Ответы Re: A bad behavior under autocommit off mode  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> 
> "Hiroshi Inoue" <inoue@tpf.co.jp> writes:
> > The simplest way seems to accept COMMIT any time under autocommit
> > off mode.
> 
> That's just hiding the most visible symptom.  The real problem here is
> that the SELECT is already committed, when it shouldn't be.

The warning means that the transaction is not yet begun
before the chained query is issued. The check seems originally
for COMMIT without BEGIN under autocommit on mode. It also
cancels a transaction for the query '..;..;commit;..' under
autocommit on mode. It's also bad because it only reports a
warning. Anyway should 'set autocommit to off;commit' cause
a warning or an error in the first place ?

regards,
Hiroshi Inouehttp://www.geocities.jp/inocchichichi/psqlodbc/


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: request for sql3 compliance for the update command
Следующее
От: Tom Lane
Дата:
Сообщение: Re: A bad behavior under autocommit off mode