Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
Дата
Msg-id 20230219003527.wbcpbsmupnyfzedq@jrouhaud
обсуждение исходный текст
Ответ на Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?  (Bryn Llewellyn <bryn@yugabyte.com>)
Список pgsql-general
Hi,

On Sat, Feb 18, 2023 at 03:49:26PM -0800, Bryn Llewellyn wrote:
>
> But it's not clear who actually implements the opening "start transaction"
> and the closing "commit" around every submitted SQL statement when autocommit
> is "on".
>
> Is this done in client-side code (maybe implying three round trips per
> intended SQL statement)? Or is it done server-side?

It's always done on the client side, postgres itself doesn't know about this
feature.



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

Предыдущее
От: Bryn Llewellyn
Дата:
Сообщение: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
Следующее
От: Christophe Pettus
Дата:
Сообщение: Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?