Re: Libpq support to connect to standby server as priority
Greg Nancarrow <gregn4422@gmail.com>
From: Greg Nancarrow <gregn4422@gmail.com>
To: vignesh C <vignesh21@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Anastasia Lubennikova <a.lubennikova@postgrespro.ru>,
Peter Smith <smithpb2250@gmail.com>, "Smith, Peter" <peters@fast.au.fujitsu.com>,
David Steele <david@pgmasters.net>, "Tsunakawa, Takayuki" <tsunakawa.takay@fujitsu.com>,
Haribabu Kommi <kommi.haribabu@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Laurenz Albe <laurenz.albe@cybertec.at>, Dave Cramer <pg@fastcrypt.com>, Jing Wang <jingwangian@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>,
Elvis Pranskevichus <elprans@gmail.com>
Date: 2021-02-16T05:48:37Z
Lists: pgsql-hackers
On Fri, Feb 12, 2021 at 2:42 PM vignesh C <vignesh21@gmail.com> wrote: > > Thanks, just one minor thing I missed in doc/src/sgml/libpq.sgml. > > > > + The support of read-write transactions is determined by the > > value of the > > + <varname>default_transaction_read_only</varname> and > > + <varname>in_hot_standby</varname> configuration parameters, that is > > + reported by the server (if supported) upon successful connection. If > > > > > > should be: > > > > + The support of read-write transactions is determined by the > > values of the > > + <varname>default_transaction_read_only</varname> and > > + <varname>in_hot_standby</varname> configuration parameters, that are > > + reported by the server (if supported) upon successful connection. If > > > > > > (i.e. "value" -> "values" and "is" -> "are") > > Thanks for the comments, this is handled in the v23 patch attached. > Thoughts? > I've marked this as "Ready for Committer". (and also added you to the author list) Regards, Greg Nancarrow Fujitsu Australia
Commits
-
Make test_target_session_attrs more robust against connection failure.
- 3769e11a3183 14.0 landed
-
Extend the abilities of libpq's target_session_attrs parameter.
- ee28cacf619f 14.0 landed
-
Mark default_transaction_read_only as GUC_REPORT.
- d16f8c8e416d 14.0 landed
-
Introduce a new GUC_REPORT setting "in_hot_standby".
- bf8a662c9afa 14.0 landed
-
Avoid spamming the client with multiple ParameterStatus messages.
- 2432b1a04087 14.0 landed
-
Avoid harmless Valgrind no-buffer-pin errors.
- a766d6ca22ac 14.0 cited
-
Restructure libpq code to remove some duplicity
- b438e7e7a1c5 13.0 landed
-
libpq: Add target_session_attrs parameter.
- 721f7bd3cbcc 10.0 cited