From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Restructure libpq code to remove some duplicity
Date: Tue, 10 Sep 2019 15:26:07 +0000
Message-ID: <E1i7i1v-00040W-3j@gemulon.postgresql.org> (raw)
Restructure libpq code to remove some duplicity
There was some duplicate code to run SHOW transaction_read_only to
determine whether the server is read-write or read-only. Reduce it by
adding another state to the state machine.
Author: Hari Babu Kommi
Reviewed-by: Takayuki Tsunakawa, Álvaro Herrera
Discussion: https://postgr.es/m/CAJrrPGe_qgdbbN+yBgEVpd+YLHXXjTruzk6RmTMhqrFig+32ag@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b438e7e7a1c58e0c20b5f46e73cbd713e8033c69
Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 85 ++++++++++++++-------------------------
src/interfaces/libpq/libpq-fe.h | 3 +-
2 files changed, 33 insertions(+), 55 deletions(-)
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-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Restructure libpq code to remove some duplicity
In-Reply-To: <E1i7i1v-00040W-3j@gemulon.postgresql.org>
References: <E1i7i1v-00040W-3j@gemulon.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