Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpsUu-0006KI-0o for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Oct 2015 06:40:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZpsUt-00010A-FO for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Oct 2015 06:40:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZpsTa-0007x1-Dc for pgsql-hackers@postgresql.org; Sat, 24 Oct 2015 06:38:50 +0000 Received: from wagner.pp.ru ([178.63.209.18] helo=mx.wagner.pp.ru) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZpsTX-0005bx-UK for pgsql-hackers@postgresql.org; Sat, 24 Oct 2015 06:38:49 +0000 Received: from mail.wagner.pp.ru (unknown [192.168.217.132]) by mx.wagner.pp.ru (Postfix) with ESMTP id 08924486162 for ; Sat, 24 Oct 2015 09:38:16 +0300 (MSK) Received: from wagner.wagner.home (wifi [192.168.217.63]) by mail.wagner.pp.ru (Postfix) with ESMTPSA id 8382920024 for ; Sat, 24 Oct 2015 09:38:13 +0300 (MSK) Date: Sat, 24 Oct 2015 09:38:12 +0300 From: Victor Wagner To: pgsql-hackers@postgresql.org Subject: Re: Patch (2): Implement failover on libpq connect level. Message-ID: <20151024093812.6aa47277@wagner.wagner.home> In-Reply-To: <562A9259.4060408@enterprisedb.com> References: <20150818041850.GA5092@wagner.pp.ru> <20151014104151.GA6744@wagner.pp.ru> <20151021090722.GA7825@wagner.pp.ru> <562A9259.4060408@enterprisedb.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; i586-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 =D0=92 Fri, 23 Oct 2015 16:02:33 -0400 Korry Douglas =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: d> > Now support for service files is implemented and multiple host > > statements in the service file are allowed. >=20 > A couple of minor nits: >=20 > When you call pg_is_in_recovery(), you should schema-qualify the=20 > function name, just in case some other version of that function > exists in the search_path. >=20 > Also, pg_is_in_recovery() returns a boolean value - PQgetvalue() will=20 > not return "true" or "false", it will return "t" or "f". >=20 > And, you have a bit of garbage in the patch (the patch inserts=20 > UNIXSOCK_PATH(portstr, portnum, conn->pgunixsocket); in the header=20 > comment at the top of fe-connect.c). >=20 Thanks, I'd address this issues in the next version of path. =20 --=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