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

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Bryn Llewellyn <bryn(at)yugabyte(dot)com>
Cc: pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
Date: 2023-02-19 00:35:27
Message-ID: 20230219003527.wbcpbsmupnyfzedq@jrouhaud
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2023-02-19 00:43:00 Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
Previous Message Bryn Llewellyn 2023-02-18 23:49:26 Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?