Mark default_transaction_read_only as GUC_REPORT.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +3 −1 |
| doc/src/sgml/protocol.sgml | modified | +3 −1 |
| src/backend/utils/misc/guc.c | modified | +2 −1 |
Documentation touched
Discussion
- Re: Libpq support to connect to standby server as priority 145 messages · 2018-01-23 → 2021-03-03