Re: [PATCH] pg_isready (was: [WIP] pg_ping utility)

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Phil Sorber <phil@omniti.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Fujii Masao <masao.fujii@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Bruce Momjian <bruce@momjian.us>, Craig Ringer <craig@2ndquadrant.com>, Michael Paquier <michael.paquier@gmail.com>, Erik Rijkers <er@xs4all.nl>, Dimitri Fontaine <dimitri@2ndquadrant.fr>, Peter Eisentraut <peter_e@gmx.net>, PostgreSQL-development Hackers <pgsql-hackers@postgresql.org>
Date: 2013-02-05T14:06:43Z
Lists: pgsql-hackers
Phil Sorber escribió:
> On Tue, Feb 5, 2013 at 6:41 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> > On Sat, Feb 2, 2013 at 9:55 PM, Phil Sorber <phil@omniti.com> wrote:
> >> OK, here is the patch that handles the connection string in dbname.
> >> I'll post the other patch under a different posting because I am sure
> >> it will get plenty of debate on it's own.
> >
> > I'm sorry, can you remind me what this does for us vs. the existing coding?
> >
> 
> It's supposed to handle the connection string passed as dbname case to
> be able to get the right output for host:port.

Surely the idea is that you can also give it a postgres:// URI, right?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services