From: Tom Lane <tgl@sss.pgh.pa.us>
To: akschoenberger@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17824: PQTRANS_ACTIVE misleading
Date: Wed, 08 Mar 2023 11:22:19 -0500
Message-ID: <194319.1678292539@sss.pgh.pa.us> (raw)
In-Reply-To: <17824-c7bd094991e5f1c5@postgresql.org>
References: <17824-c7bd094991e5f1c5@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> The documentation for PQTRANS_ACTIVE [1] does not make explicitly clear that
> it is returned in *all* cases where there is a command in progress on an
> okay connection, and not just in the case that there is a command in
> progress inside of a transaction [2]. With a name like PQTRANS_ACTIVE, I
> believe it is worth making clear that it can happen when a transaction is
> not active.
The existing documentation defines it as "a command is in progress",
which seems perfectly clear to me --- adding more words would just
muddy the waters.
Also, if a command is running then the server *does* have a transaction
open -- it might be an auto-started, auto-committed one, but there's
always a transaction. You seem to be using that word in a way that does
not correspond with common Postgres usage. (Note that the definitions for
PQTRANS_INTRANS and PQTRANS_INERROR say "transaction block" not
"transaction", to comport with our usual terminology.)
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, akschoenberger@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17824: PQTRANS_ACTIVE misleading
In-Reply-To: <194319.1678292539@sss.pgh.pa.us>
* 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