pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Wagner <vitus@wagner.pp.ru>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Thom Brown <thom@linux.com>
Subject: Re: Patch: Implement failover on libpq connect level.
Date: Sun, 24 Jan 2016 22:46:32 +0300
Message-ID: <20160124224632.212d04b8@wagner.wagner.home> (raw)
In-Reply-To: <CAA-aLv4hrQEWfc2eV6t-3wCe_VNk+jLdVYJAPXaHKFko0UMdgw@mail.gmail.com>
References: <20150818041850.GA5092@wagner.pp.ru>
	<56327381.5040108@gmx.net>
	<CA+TgmoY8J2Jp1fM4EmtU6=3hHLpHc9+qyOJW3OgCNRN6QTgyDg@mail.gmail.com>
	<56379A44.9080609@gmx.net>
	<20151105151235.GA21434@wagner.pp.ru>
	<CA+TgmoYKvGsZGJB-cKU=xhHnq=b6XOM=qbseVC72HwH2+p5+TA@mail.gmail.com>
	<CAMsr+YGXTK3+i5zL3AkkR5BRP+Tw+f4+Ph=Z2_g7KD-nbb+cYg@mail.gmail.com>
	<20151106153807.GA6104@alvherre.pgsql>
	<CA+TgmoYYUeojjos=7ZT6Emkmri1f4n753tx9v7jEU-y28_8zOw@mail.gmail.com>
	<CAMsr+YHr740oGcVQcuyvLt1bwBPLQtpm5U-O+tTEFifBgHWdzw@mail.gmail.com>
	<20151109124404.1af6ba0c@fafnir>
	<5665EB79.9070805@enterprisedb.com>
	<20151210075419.6c9b7ca4@wagnner.wagner.home>
	<56780A3D.2090609@sigaev.ru>
	<20151221175013.644535cd@fafnir.local.vm>
	<CAA-aLv4ddFHXA0BHZz-dLXJJNVfhj8JURDm77izZCO8UaM1oVg@mail.gmail.com>
	<20160122223051.1c7b22f6@wagner.wagner.home>
	<CAA-aLv7KGGgoSU+fa8NNisL11DKrs-BGh8qwNQjFZ1NuDC+Yxw@mail.gmail.com>
	<CAA-aLv4hrQEWfc2eV6t-3wCe_VNk+jLdVYJAPXaHKFko0UMdgw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Sun, 24 Jan 2016 15:30:22 +0000
Thom Brown <thom@linux.com> wrote:

в
> Okay, I've tested this again with additional logging.  Again, I'm just
> running "psql -p 5531 postgres", which connects to a standby.  This
> immediately exits psql, and the logs show:

> 2016-01-24 15:04:59.886 GMT - thom - postgres LOG:  00000: statement:
> SELECT pg_catalog.pg_is_in_recovery()
> This shouldn't be checking whether it's a standby.  I also noticed
> that with:

This is, of course, incompatibility with previous behavior. Probably,
I should modify this patch, so it would imply readonly flag if only one
host/port pair is specified in the command line.

Now it does check for standby regardless of number of hosts specified.



-- 
                                   Victor Wagner <vitus@wagner.pp.ru>


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (165+ messages)  latest in thread

Message-ID: <20160124224632.212d04b8@wagner.wagner.home>
Permalink:  ../20160124224632.212d04b8@wagner.wagner.home/
Also on:    postgresql.org/message-id/20160124224632.212d04b8@wagner.wagner.home

 · 

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-jdbc@postgresql.org
  Cc: vitus@wagner.pp.ru, pgsql-hackers@postgresql.org, thom@linux.com
  Subject: Re: Patch: Implement failover on libpq connect level.
  In-Reply-To: <20160124224632.212d04b8@wagner.wagner.home>
  References: <20150818041850.GA5092@wagner.pp.ru> <CA+TgmoY8J2Jp1fM4EmtU6=3hHLpHc9+qyOJW3OgCNRN6QTgyDg@mail.gmail.com> <56379A44.9080609@gmx.net> <20151105151235.GA21434@wagner.pp.ru> <CA+TgmoYKvGsZGJB-cKU=xhHnq=b6XOM=qbseVC72HwH2+p5+TA@mail.gmail.com> <CAMsr+YGXTK3+i5zL3AkkR5BRP+Tw+f4+Ph=Z2_g7KD-nbb+cYg@mail.gmail.com> <20151106153807.GA6104@alvherre.pgsql> <CA+TgmoYYUeojjos=7ZT6Emkmri1f4n753tx9v7jEU-y28_8zOw@mail.gmail.com> <CAMsr+YHr740oGcVQcuyvLt1bwBPLQtpm5U-O+tTEFifBgHWdzw@mail.gmail.com> <20151109124404.1af6ba0c@fafnir> <5665EB79.9070805@enterprisedb.com> <20151210075419.6c9b7ca4@wagnner.wagner.home> <56780A3D.2090609@sigaev.ru> <20151221175013.644535cd@fafnir.local.vm> <CAA-aLv4ddFHXA0BHZz-dLXJJNVfhj8JURDm77izZCO8UaM1oVg@mail.gmail.com> <20160122223051.1c7b22f6@wagner.wagner.home> <CAA-aLv7KGGgoSU+fa8NNisL11DKrs-BGh8qwNQjFZ1NuDC+Yxw@mail.gmail.com> <CAA-aLv4hrQEWfc2eV6t-3wCe_VNk+jLdVYJAPXaHKFko0UMdgw@mail.gmail.com> <20160124224632.212d04b8@wagner.wagner.home>

* 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