From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: klaxian@gmail.com
Subject: BUG #15170: PQtransactionStatus returns ACTIVE after Empty Commit
Date: Tue, 24 Apr 2018 16:49:17 +0000
Message-ID: <152458855796.19803.13664386145754757782@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15170
Logged by: Rick Gabriel
Email address: klaxian@gmail.com
PostgreSQL version: 10.3
Operating system: Ubuntu Linux 16.04
Description:
PQtransactionStatus() incorrectly returns PQTRANS_ACTIVE after committing an
empty transaction block (ie. BEGIN and COMMIT without any other queries).
From the documentation, I would expect PQTRANS_IDLE to be returned in this
case since the connection becomes idle, outside a transaction. If no other
queries are executed on the connection, it never returns to PQTRANS_IDLE
even after waiting for several seconds. I am testing with the PHP 7.1
PostgreSQL module, but I think this is a universal problem with PostgreSQL's
API.
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-bugs@postgresql.org
Cc: noreply@postgresql.org, klaxian@gmail.com
Subject: Re: BUG #15170: PQtransactionStatus returns ACTIVE after Empty Commit
In-Reply-To: <152458855796.19803.13664386145754757782@wrigleys.postgresql.org>
References: <152458855796.19803.13664386145754757782@wrigleys.postgresql.org>
* 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