From: Julien Rouhaud <rjuju123@gmail.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
Date: Sun, 19 Feb 2023 08:35:27 +0800
Message-ID: <20230219003527.wbcpbsmupnyfzedq@jrouhaud> (raw)
In-Reply-To: <954ABE4C-C17B-4269-ACAD-DE47E696515E@yugabyte.com>
References: <954ABE4C-C17B-4269-ACAD-DE47E696515E@yugabyte.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rjuju123@gmail.com, bryn@yugabyte.com
Subject: Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
In-Reply-To: <20230219003527.wbcpbsmupnyfzedq@jrouhaud>
References: <954ABE4C-C17B-4269-ACAD-DE47E696515E@yugabyte.com> <20230219003527.wbcpbsmupnyfzedq@jrouhaud>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox