pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Mark default_transaction_read_only as GUC_REPORT.
Date: Tue, 02 Mar 2021 18:54:08 +0000
Message-ID: <E1lHA9o-0007bN-QV@gemulon.postgresql.org> (raw)

Mark default_transaction_read_only as GUC_REPORT.

This allows clients to find out the setting at connection time without
having to expend a query round trip to do so; which is helpful when
trying to identify read/write servers.  (One must also look at
in_hot_standby, but that's already GUC_REPORT, cf bf8a662c9.)
Modifying libpq to make use of this will come soon, but I felt it
cleaner to push the server change separately.

Haribabu Kommi, Greg Nancarrow, Vignesh C; reviewed at various times
by Laurenz Albe, Takayuki Tsunakawa, Peter Smith.

Discussion: https://postgr.es/m/CAF3+xM+8-ztOkaV9gHiJ3wfgENTq97QcjXQt+rbFQ6F7oNzt9A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d16f8c8e416d288bd4734ed5f14076b62ec8d153

Modified Files
--------------
doc/src/sgml/libpq.sgml      | 4 +++-
doc/src/sgml/protocol.sgml   | 4 +++-
src/backend/utils/misc/guc.c | 3 ++-
3 files changed, 8 insertions(+), 3 deletions(-)



Message-ID: <E1lHA9o-0007bN-QV@gemulon.postgresql.org>
Permalink:  ../E1lHA9o-0007bN-QV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lHA9o-0007bN-QV@gemulon.postgresql.org

 · 

reply

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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Mark default_transaction_read_only as GUC_REPORT.
  In-Reply-To: <E1lHA9o-0007bN-QV@gemulon.postgresql.org>
  References: <E1lHA9o-0007bN-QV@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