Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQMcp-0001FT-VF for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Feb 2016 22:07:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQMco-00034A-Rz for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Feb 2016 22:07:10 +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 1aQMbW-0001bE-86 for pgsql-hackers@postgresql.org; Mon, 01 Feb 2016 22:05:50 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aQMbT-0005DV-09 for pgsql-hackers@postgresql.org; Mon, 01 Feb 2016 22:05:49 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [212.76.254.194]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 3A1A1402ADD; Mon, 1 Feb 2016 14:05:42 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 2ACA84FF; Mon, 1 Feb 2016 23:05:40 +0100 (CET) Date: Mon, 1 Feb 2016 23:05:40 +0100 From: Alvaro Herrera To: Victor Wagner Cc: pgsql-hackers@postgresql.org Subject: Re: Patch: Implement failover on libpq connect level. Message-ID: <20160201220540.GA99599@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160124121832.04fa9dcd@wagner.wagner.home> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Victor Wagner wrote: > On Fri, 22 Jan 2016 16:36:15 -0300 > Alvaro Herrera wrote: > > > You're editing the expected file for the libpq-regress thingy, but you > > haven't added any new lines to test the new capability. I think it'd > > be good to add some there. (I already said this earlier in the > > thread; is there any reason you ignored it the first time?) > > I seriously doubt that this program can be used to test new > capabilities. > > All it does, it calls PQconninfoParse and than examines some fields of > PGconn structure. Ah, you're right, I didn't remember that. > If I add some new uris, than only thing I can test is that comma is > properly copied from the URI to this field. And may be that some syntax > errors are properly detected. Yeah, we should do that. > So, I think that new functionality need other approach for testing. > There should be test of real connection to real temporary cluster. > Probably, based on Perl TAP framework which is actively used in the > Postgres recently. Yes, agreed. So please have a look at that one and share your opinion about it. It'd be useful. Meanwhile I'm moving the patch to the next commitfest. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers