pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Nancarrow <gregn4422@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Cc: Peter Smith <smithpb2250@gmail.com>
Cc: Smith, Peter <peters@fast.au.fujitsu.com>
Cc: David Steele <david@pgmasters.net>
Cc: Tsunakawa, Takayuki <tsunakawa.takay@fujitsu.com>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Jing Wang <jingwangian@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Elvis Pranskevichus <elprans@gmail.com>
Subject: Re: Libpq support to connect to standby server as priority
Date: Tue, 02 Mar 2021 21:07:17 -0500
Message-ID: <1127614.1614737237@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJcOf-fWgXzetSO=ca5K5PbVjqt8QPG4G-+VfFOHM=687mEKkQ@mail.gmail.com>
References: <20201124225917.GA21884@alvherre.pgsql>
	<325979.1606259987@sss.pgh.pa.us>
	<388250.1606266434@sss.pgh.pa.us>
	<CAJcOf-cgj=bGOZR7F=H+Rg7846ZgC1G+xbkKKLp6zEuOnZeSFQ@mail.gmail.com>
	<493358.1606322607@sss.pgh.pa.us>
	<CAJcOf-emaiiPOgmpxQyAQT=DAOUPPwZ_G7Z70OdD6ZMX2ifCpw@mail.gmail.com>
	<CAJcOf-e-H2VTo_0vuf69Hsh2FS4CxxWzkgDohXDGMr8cCMmurw@mail.gmail.com>
	<3425296.1609882492@sss.pgh.pa.us>
	<CALDaNm0M+70qB=-sXP_-=mu5NSsLC0=QK=0NPfyhZHtMrokEVA@mail.gmail.com>
	<CAJcOf-fgr0QkW+fvfevVcBBJSzPTWHyEJRpvhwDk5ETWxVgGoA@mail.gmail.com>
	<CALDaNm04kMeoXp-HRk2KoKzMaM238=2CO6J6kjPJuziCLorGnQ@mail.gmail.com>
	<CAJcOf-d0NST1ZbEB4-iwapk2y=fKb9xQosbLOf+5j+68C5qMMg@mail.gmail.com>
	<CALDaNm38F070Gs3wYMBBg98iSVUAdsW7YAKfHQ==FoippvbWAA@mail.gmail.com>
	<CAJcOf-fWgXzetSO=ca5K5PbVjqt8QPG4G-+VfFOHM=687mEKkQ@mail.gmail.com>

Greg Nancarrow <gregn4422@gmail.com> writes:
> I've marked this as "Ready for Committer".

I've pushed this after whacking it around a fair amount.  A lot of
that was cosmetic, but one thing that wasn't is that I got rid of the
proposed "which_primary_host" variable.  I thought the logic around
that was way too messy and probably buggy.  Even if it worked exactly
as intended, I'm dubious that the design intention was good.  I think
it makes more sense just to go through the whole server list again
without the restriction to standby servers.  In particular, that will
give saner results if the servers' status isn't holding still.

			regards, tom lane





view thread (149+ messages)  latest in thread

Message-ID: <1127614.1614737237@sss.pgh.pa.us>
Permalink:  ../1127614.1614737237@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1127614.1614737237@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gregn4422@gmail.com, vignesh21@gmail.com, alvherre@alvh.no-ip.org, a.lubennikova@postgrespro.ru, smithpb2250@gmail.com, peters@fast.au.fujitsu.com, david@pgmasters.net, tsunakawa.takay@fujitsu.com, kommi.haribabu@gmail.com, robertmhaas@gmail.com, laurenz.albe@cybertec.at, pg@fastcrypt.com, jingwangian@gmail.com, elprans@gmail.com
  Subject: Re: Libpq support to connect to standby server as priority
  In-Reply-To: <1127614.1614737237@sss.pgh.pa.us>

* 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