Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adnGA-0000pQ-JO for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2016 23:11:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adnG9-00075K-Js for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2016 23:11:17 +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 1adnG9-00075E-3X for pgsql-hackers@postgresql.org; Wed, 09 Mar 2016 23:11:17 +0000 Received: from linode.thelabyrinth.net ([198.58.117.137] helo=mail.thelabyrinth.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adnG4-0002vk-Su for pgsql-hackers@postgresql.org; Wed, 09 Mar 2016 23:11:16 +0000 Received: from Davids-MacBook.local (unknown [98.204.177.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id D5DD313192; Wed, 9 Mar 2016 23:11:10 +0000 (UTC) Subject: Re: Patch: Implement failover on libpq connect level. To: Victor Wagner References: <20160201220540.GA99599@alvherre.pgsql> Cc: pgsql-hackers@postgresql.org From: David Steele Message-ID: <56E0AD90.5090409@pgmasters.net> Date: Wed, 9 Mar 2016 18:11:12 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160201220540.GA99599@alvherre.pgsql> Content-Type: multipart/alternative; boundary="------------080309000203070506040004" 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 This is a multi-part message in MIME format. --------------080309000203070506040004 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi Victor, On 2/1/16 5:05 PM, Alvaro Herrera wrote: > 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. There hasn't been any movement on this patch in a while. Will you have a new tests ready for review soon? Thanks, -- -David david@pgmasters.net --------------080309000203070506040004 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Hi Victor,

On 2/1/16 5:05 PM, Alvaro Herrera wrote:
Victor Wagner wrote:
On Fri, 22 Jan 2016 16:36:15 -0300
Alvaro Herrera <alvherre@2ndquadrant.com> 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.

There hasn't been any movement on this patch in a while.  Will you have a new tests ready for review soon?

Thanks,
-- 
-David
david@pgmasters.net
--------------080309000203070506040004--