Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aNQcJ-0001nn-KK for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Jan 2016 19:46:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aNQcJ-0004p8-77 for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Jan 2016 19:46:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aNQcH-0004oX-Vp for pgsql-hackers@postgresql.org; Sun, 24 Jan 2016 19:46:30 +0000 Received: from wagner.pp.ru ([178.63.209.18] helo=mx.wagner.pp.ru) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aNQcE-0004c4-Lo for pgsql-hackers@postgresql.org; Sun, 24 Jan 2016 19:46:29 +0000 Received: from mail.wagner.pp.ru (unknown [192.168.217.132]) by mx.wagner.pp.ru (Postfix) with ESMTP id 3526D486148; Sun, 24 Jan 2016 22:46:18 +0300 (MSK) Received: from wagner.wagner.home (wagner.wagner.home [192.168.217.1]) by mail.wagner.pp.ru (Postfix) with ESMTPSA id CF7B12001A; Sun, 24 Jan 2016 22:46:14 +0300 (MSK) Date: Sun, 24 Jan 2016 22:46:32 +0300 From: Victor Wagner To: PostgreSQL-development Cc: Thom Brown Subject: Re: Patch: Implement failover on libpq connect level. Message-ID: <20160124224632.212d04b8@wagner.wagner.home> In-Reply-To: References: <20150818041850.GA5092@wagner.pp.ru> <56327381.5040108@gmx.net> <56379A44.9080609@gmx.net> <20151105151235.GA21434@wagner.pp.ru> <20151106153807.GA6104@alvherre.pgsql> <20151109124404.1af6ba0c@fafnir> <5665EB79.9070805@enterprisedb.com> <20151210075419.6c9b7ca4@wagnner.wagner.home> <56780A3D.2090609@sigaev.ru> <20151221175013.644535cd@fafnir.local.vm> <20160122223051.1c7b22f6@wagner.wagner.home> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Sun, 24 Jan 2016 15:30:22 +0000 Thom Brown wrote: =D0=B2 > 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. --=20 Victor Wagner --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers