Re: [HACKERS] [WIP] pg_ping utility

2013-01-20 Thread Craig Ringer
On 01/21/2013 11:26 AM, Robert Haas wrote: > On Sun, Jan 20, 2013 at 2:59 PM, Phil Sorber wrote: >> Ok. I can add something to the notes section of the docs. I can also >> add some code comments for this and for grabbing the default params. > Sounds good. > >>> Oh, I see. Is it really important t

Re: [HACKERS] [WIP] pg_ping utility

2013-01-20 Thread Robert Haas
On Sun, Jan 20, 2013 at 2:59 PM, Phil Sorber wrote: > Ok. I can add something to the notes section of the docs. I can also > add some code comments for this and for grabbing the default params. Sounds good. >> Oh, I see. Is it really important to have the host and port in the >> output, or shou

Re: [HACKERS] [WIP] pg_ping utility

2013-01-20 Thread Phil Sorber
On Sun, Jan 20, 2013 at 11:38 AM, Robert Haas wrote: > On Sun, Jan 20, 2013 at 9:58 AM, Phil Sorber wrote: >> This was done to silence useless error messages in the logs. If you >> attempt to connect as some user that does not exist, or to some >> database that does not exist, it throws an error

Re: [HACKERS] [WIP] pg_ping utility

2013-01-20 Thread Robert Haas
On Sun, Jan 20, 2013 at 9:58 AM, Phil Sorber wrote: > This was done to silence useless error messages in the logs. If you > attempt to connect as some user that does not exist, or to some > database that does not exist, it throws an error in the logs, even > with PQping. You could fix it with env

Re: [HACKERS] [WIP] pg_ping utility

2013-01-20 Thread Phil Sorber
On Sun, Jan 20, 2013 at 8:40 AM, Robert Haas wrote: > On Fri, Jan 18, 2013 at 4:17 PM, Phil Sorber wrote: >> Updated patch is rebased against current master and copyright year is >> updated. > > I took a look at this. According to the documentation for > PQpingParams: "It accepts connection par

Re: [HACKERS] [WIP] pg_ping utility

2013-01-20 Thread Robert Haas
On Fri, Jan 18, 2013 at 4:17 PM, Phil Sorber wrote: > Updated patch is rebased against current master and copyright year is updated. I took a look at this. According to the documentation for PQpingParams: "It accepts connection parameters identical to those of PQconnectdbParams, described above.

Re: [HACKERS] [WIP] pg_ping utility

2013-01-18 Thread Phil Sorber
On Tue, Dec 25, 2012 at 1:47 AM, Michael Paquier wrote: > > > On Mon, Dec 24, 2012 at 12:44 AM, Phil Sorber wrote: >> >> Updated patch attached. > > Thanks. I am marking this patch as ready for committer. > > -- > Michael Paquier > http://michael.otacoo.com Updated patch is rebased against curre

Re: [HACKERS] [WIP] pg_ping utility

2012-12-24 Thread Michael Paquier
On Mon, Dec 24, 2012 at 12:44 AM, Phil Sorber wrote: > Updated patch attached. > Thanks. I am marking this patch as ready for committer. -- Michael Paquier http://michael.otacoo.com

Re: [HACKERS] [WIP] pg_ping utility

2012-12-23 Thread Phil Sorber
On Sun, Dec 23, 2012 at 10:07 AM, Phil Sorber wrote: > On Sun, Dec 23, 2012 at 9:57 AM, Erik Rijkers wrote: >> On Sun, December 23, 2012 15:29, Michael Paquier wrote: >>> >>> Once the 2 small things I noticed are fixed, this patch can be marked as >>> ready for committer. >> >> I wasn't going to

Re: [HACKERS] [WIP] pg_ping utility

2012-12-23 Thread Phil Sorber
On Sun, Dec 23, 2012 at 9:57 AM, Erik Rijkers wrote: > On Sun, December 23, 2012 15:29, Michael Paquier wrote: >> >> Once the 2 small things I noticed are fixed, this patch can be marked as >> ready for committer. > > I wasn't going to complain about it, but if we're going for small things > anyw

Re: [HACKERS] [WIP] pg_ping utility

2012-12-23 Thread Erik Rijkers
On Sun, December 23, 2012 15:29, Michael Paquier wrote: > > Once the 2 small things I noticed are fixed, this patch can be marked as > ready for committer. I wasn't going to complain about it, but if we're going for small things anyway... The output is now capitalised: /tmp:6543 - Accepting Con

Re: [HACKERS] [WIP] pg_ping utility

2012-12-23 Thread Phil Sorber
On Sun, Dec 23, 2012 at 9:29 AM, Michael Paquier wrote: > > > On Sat, Dec 22, 2012 at 4:07 AM, Phil Sorber wrote: >> >> >> Added new version with default verbose and quiet option. Also updated >> docs to reflect changes. > > Thanks for the updated patches. > > Here is the status about the binary

Re: [HACKERS] [WIP] pg_ping utility

2012-12-23 Thread Michael Paquier
On Sat, Dec 22, 2012 at 4:07 AM, Phil Sorber wrote: > > Added new version with default verbose and quiet option. Also updated > docs to reflect changes. > Thanks for the updated patches. Here is the status about the binary patch: - Code compiles without any warnings - After testing the patch, it

Re: [HACKERS] [WIP] pg_ping utility

2012-12-21 Thread Phil Sorber
On Wed, Dec 19, 2012 at 8:28 AM, Michael Paquier wrote: > > > On Wed, Dec 12, 2012 at 12:06 AM, Bruce Momjian wrote: >> >> On Sat, Dec 8, 2012 at 08:59:00AM -0500, Phil Sorber wrote: >> > On Sat, Dec 8, 2012 at 7:50 AM, Michael Paquier >> > wrote: >> > > >> > > Bruce mentionned that pg_isready

Re: [HACKERS] [WIP] pg_ping utility

2012-12-19 Thread Michael Paquier
On Wed, Dec 12, 2012 at 12:06 AM, Bruce Momjian wrote: > On Sat, Dec 8, 2012 at 08:59:00AM -0500, Phil Sorber wrote: > > On Sat, Dec 8, 2012 at 7:50 AM, Michael Paquier > > wrote: > > > > > > Bruce mentionned that pg_isready could be used directly by pg_ctl -w. > > > Default as being non-verbos

Re: [HACKERS] [WIP] pg_ping utility

2012-12-11 Thread Bruce Momjian
On Sat, Dec 8, 2012 at 08:59:00AM -0500, Phil Sorber wrote: > On Sat, Dec 8, 2012 at 7:50 AM, Michael Paquier > wrote: > > On Fri, Dec 7, 2012 at 12:56 PM, Phil Sorber wrote: > >> > >> Something I was just thinking about while testing this again. I > >> mentioned the issue before about someone m

Re: [HACKERS] [WIP] pg_ping utility

2012-12-08 Thread Phil Sorber
On Sat, Dec 8, 2012 at 7:50 AM, Michael Paquier wrote: > On Fri, Dec 7, 2012 at 12:56 PM, Phil Sorber wrote: >> >> Something I was just thinking about while testing this again. I >> mentioned the issue before about someone meaning to put -v and putting >> -V instead and it being a potential sourc

Re: [HACKERS] [WIP] pg_ping utility

2012-12-08 Thread Michael Paquier
On Fri, Dec 7, 2012 at 12:56 PM, Phil Sorber wrote: > On Thu, Dec 6, 2012 at 8:54 PM, Michael Paquier > > OK. Let's do that and then mark this patch as ready for committer. > > Thanks, > > Those changes have been made. > Cool. Thanks. > Something I was just thinking about while testing this aga

Re: [HACKERS] [WIP] pg_ping utility

2012-12-06 Thread Phil Sorber
On Thu, Dec 6, 2012 at 8:54 PM, Michael Paquier wrote: > > > On Thu, Dec 6, 2012 at 12:29 AM, Phil Sorber wrote: >> >> On Wed, Dec 5, 2012 at 8:53 AM, Alvaro Herrera >> wrote: >> > No, I think it is the reference docs on the returned value that must be >> > fixed. That is, instead of saying tha

Re: [HACKERS] [WIP] pg_ping utility

2012-12-06 Thread Michael Paquier
On Thu, Dec 6, 2012 at 12:29 AM, Phil Sorber wrote: > On Wed, Dec 5, 2012 at 8:53 AM, Alvaro Herrera > wrote: > > No, I think it is the reference docs on the returned value that must be > > fixed. That is, instead of saying that the return value correspond to > > the enum values, you should be

Re: [HACKERS] [WIP] pg_ping utility

2012-12-05 Thread Phil Sorber
On Wed, Dec 5, 2012 at 8:53 AM, Alvaro Herrera wrote: > Phil Sorber escribió: >> On Mon, Dec 3, 2012 at 11:59 PM, Michael Paquier >> wrote: > >> > - Same thing with this example: >> > + >> > +Standard Usage: >> > + >> > + $ pg_isready >> > + $ echo $? >> > + 0 >> > + >>

Re: [HACKERS] [WIP] pg_ping utility

2012-12-05 Thread Alvaro Herrera
Phil Sorber escribió: > On Mon, Dec 3, 2012 at 11:59 PM, Michael Paquier > wrote: > > - Same thing with this example: > > + > > +Standard Usage: > > + > > + $ pg_isready > > + $ echo $? > > + 0 > > + > > + > > For the time being PQPING_OK returns 0 because it is on t

Re: [HACKERS] [WIP] pg_ping utility

2012-12-04 Thread Michael Paquier
On 2012/12/05, at 14:46, Phil Sorber wrote: > On Mon, Dec 3, 2012 at 11:59 PM, Michael Paquier > > So I understand what you mean by the ordering might change, but this > is actual output from the shell. I'm not sure how to convey that > sentiment properly here and still have a real example. Perh

Re: [HACKERS] [WIP] pg_ping utility

2012-12-04 Thread Phil Sorber
On Mon, Dec 3, 2012 at 11:59 PM, Michael Paquier wrote: > On Sun, Dec 2, 2012 at 5:56 AM, Phil Sorber wrote: >> >> Here is the updated patch. I renamed it, but using v5 to stay consistent. > > > After looking at this patch, I found the following problems: > - There are a couple of whitespaces sti

Re: [HACKERS] [WIP] pg_ping utility

2012-12-03 Thread Michael Paquier
On Sun, Dec 2, 2012 at 5:56 AM, Phil Sorber wrote: > Here is the updated patch. I renamed it, but using v5 to stay consistent. > After looking at this patch, I found the following problems: - There are a couple of whitespaces still in the code, particularly at the end of those lines + cons

Re: [HACKERS] [WIP] pg_ping utility

2012-12-01 Thread Phil Sorber
On Tue, Nov 27, 2012 at 9:43 AM, Phil Sorber wrote: > On Tue, Nov 27, 2012 at 8:45 AM, Michael Paquier > wrote: >> >> >> On Tue, Nov 27, 2012 at 7:35 PM, Dimitri Fontaine >> wrote: >>> >>> Peter Eisentraut writes: >>> > Sure, PQping is useful for this very specific use case of seeing whether >>

Re: [HACKERS] [WIP] pg_ping utility

2012-11-27 Thread Phil Sorber
On Tue, Nov 27, 2012 at 8:45 AM, Michael Paquier wrote: > > > On Tue, Nov 27, 2012 at 7:35 PM, Dimitri Fontaine > wrote: >> >> Peter Eisentraut writes: >> > Sure, PQping is useful for this very specific use case of seeing whether >> > the server has finished starting up. If someone came with a

Re: [HACKERS] [WIP] pg_ping utility

2012-11-27 Thread Michael Paquier
On Tue, Nov 27, 2012 at 7:35 PM, Dimitri Fontaine wrote: > Peter Eisentraut writes: > > Sure, PQping is useful for this very specific use case of seeing whether > > the server has finished starting up. If someone came with a plausible > > Rename the utility to pg_isready? > +1, the current versi

Re: [HACKERS] [WIP] pg_ping utility

2012-11-27 Thread Dimitri Fontaine
Peter Eisentraut writes: > Sure, PQping is useful for this very specific use case of seeing whether > the server has finished starting up. If someone came with a plausible Rename the utility to pg_isready? -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Suppo

Re: [HACKERS] [WIP] pg_ping utility

2012-11-26 Thread Peter Eisentraut
On Mon, 2012-11-26 at 13:14 -0500, Bruce Momjian wrote: > I would normally agree with this analysis, but pg_ctl -w certainly > need this ping functionality, so it kind of makes sense that others > might need it too. Sure, PQping is useful for this very specific use case of seeing whether the serv

Re: [HACKERS] [WIP] pg_ping utility

2012-11-26 Thread Bruce Momjian
On Mon, Nov 26, 2012 at 10:26:27AM -0500, Peter Eisentraut wrote: > On 11/23/12 9:48 AM, Michael Paquier wrote: > > We waited a couple of days for feedback for this feature. So based on > > all the comments provided by everybody on this thread, perhaps we should > > move on and implement the option

Re: [HACKERS] [WIP] pg_ping utility

2012-11-26 Thread Michael Paquier
On Tue, Nov 27, 2012 at 12:26 AM, Peter Eisentraut wrote: > On 11/23/12 9:48 AM, Michael Paquier wrote: > > We waited a couple of days for feedback for this feature. So based on > > all the comments provided by everybody on this thread, perhaps we should > > move on and implement the options that

Re: [HACKERS] [WIP] pg_ping utility

2012-11-26 Thread Peter Eisentraut
On 11/23/12 9:48 AM, Michael Paquier wrote: > We waited a couple of days for feedback for this feature. So based on > all the comments provided by everybody on this thread, perhaps we should > move on and implement the options that would make pg_ping a better > wrapper for PQPing. Comments? Person

Re: [HACKERS] [WIP] pg_ping utility

2012-11-25 Thread Michael Paquier
On Mon, Nov 26, 2012 at 11:17 AM, Phil Sorber wrote: > I am going to be unavailable until Wednesday, so maybe gives us a few > more days for feedback. > Sure no problem. Thanks. -- Michael Paquier http://michael.otacoo.com

Re: [HACKERS] [WIP] pg_ping utility

2012-11-25 Thread Phil Sorber
I am going to be unavailable until Wednesday, so maybe gives us a few more days for feedback. On Fri, Nov 23, 2012 at 9:48 AM, Michael Paquier wrote: > > > On Sat, Nov 17, 2012 at 2:48 AM, Phil Sorber wrote: >> >> On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier >> wrote: >> > On Fri, Nov 16,

Re: [HACKERS] [WIP] pg_ping utility

2012-11-23 Thread Michael Paquier
On Sat, Nov 17, 2012 at 2:48 AM, Phil Sorber wrote: > On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier > wrote: > > On Fri, Nov 16, 2012 at 12:34 PM, Phil Sorber wrote: > >> On Thu, Nov 15, 2012 at 9:23 PM, Michael Paquier > >> wrote: > >> > 3) Having an output close to what ping actually doe

Re: [HACKERS] [WIP] pg_ping utility

2012-11-18 Thread Michael Paquier
On Fri, Nov 16, 2012 at 2:28 PM, Tom Lane wrote: > Maybe I missed something here, but I believe it's standard that > "program --help" should result in exit(0), no matter what the program's > exitcode conventions are for live-fire exercises. > Yes indeed you are right. Thanks. -- Michael Paquier

Re: [HACKERS] [WIP] pg_ping utility

2012-11-18 Thread Michael Paquier
On Sat, Nov 17, 2012 at 2:48 AM, Phil Sorber wrote: > On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier > wrote: > > On Fri, Nov 16, 2012 at 12:34 PM, Phil Sorber wrote: > >> On Thu, Nov 15, 2012 at 9:23 PM, Michael Paquier > >> wrote: > >> > 3) Having an output close to what ping actually doe

Re: [HACKERS] [WIP] pg_ping utility

2012-11-16 Thread Phil Sorber
On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier wrote: > On Fri, Nov 16, 2012 at 12:34 PM, Phil Sorber wrote: >> On Thu, Nov 15, 2012 at 9:23 PM, Michael Paquier >> wrote: >> > 3) Having an output close to what ping actually does would also be nice, >> > the >> > current output like Accepting/

Re: [HACKERS] [WIP] pg_ping utility

2012-11-16 Thread Phil Sorber
Attached is updated patch v4 with the changes Michael pointed out. On Fri, Nov 16, 2012 at 12:28 AM, Tom Lane wrote: > Phil Sorber writes: >> On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier >> wrote: >>> Hum, it is not really consistent to use a magic number here, particularly in >>> the case

Re: [HACKERS] [WIP] pg_ping utility

2012-11-15 Thread Tom Lane
Phil Sorber writes: > On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier > wrote: >> Hum, it is not really consistent to use a magic number here, particularly in >> the case where an additional state would be added in the enum PGPing. So why >> not simply return PQPING_NO_ATTEMPT when there are in

Re: [HACKERS] [WIP] pg_ping utility

2012-11-15 Thread Phil Sorber
On Thu, Nov 15, 2012 at 10:55 PM, Michael Paquier wrote: > Hum, it is not really consistent to use a magic number here, particularly in > the case where an additional state would be added in the enum PGPing. So why > not simply return PQPING_NO_ATTEMPT when there are incorrect options or you > sho

Re: [HACKERS] [WIP] pg_ping utility

2012-11-15 Thread Michael Paquier
On Fri, Nov 16, 2012 at 12:34 PM, Phil Sorber wrote: > Thanks for the review. > > On Thu, Nov 15, 2012 at 9:23 PM, Michael Paquier > wrote: > > Hi Phil, > > > > I am currently looking at your patch. > > A lot of people already had a look at at, but I hope I will be helpful in > > finalizing it a

Re: [HACKERS] [WIP] pg_ping utility

2012-11-15 Thread Phil Sorber
Thanks for the review. On Thu, Nov 15, 2012 at 9:23 PM, Michael Paquier wrote: > Hi Phil, > > I am currently looking at your patch. > A lot of people already had a look at at, but I hope I will be helpful in > finalizing it and hand it over to a committer. > > Strangely I got the following error

Re: [HACKERS] [WIP] pg_ping utility

2012-11-15 Thread Michael Paquier
Hi Phil, I am currently looking at your patch. A lot of people already had a look at at, but I hope I will be helpful in finalizing it and hand it over to a committer. Strangely I got the following error when using git apply: $ git apply ~/download/pg_ping_v3.patch error: src/bin/scripts/.gitigno

Re: [HACKERS] [WIP] pg_ping utility

2012-10-24 Thread Alvaro Herrera
Thom Brown wrote: > On 24 October 2012 15:24, Alvaro Herrera wrote: > > Guys, > > > > May I remind everyone that we still have an commitfest open, which to > > date has 23 patches needing some effort, and that this patch, while > > probably very useful and interesting, belongs to the next commitfe

Re: [HACKERS] [WIP] pg_ping utility

2012-10-24 Thread Thom Brown
On 24 October 2012 15:24, Alvaro Herrera wrote: > Guys, > > May I remind everyone that we still have an commitfest open, which to > date has 23 patches needing some effort, and that this patch, while > probably very useful and interesting, belongs to the next commitfest > which is not yet in progr

Re: [HACKERS] [WIP] pg_ping utility

2012-10-24 Thread Alvaro Herrera
Guys, May I remind everyone that we still have an commitfest open, which to date has 23 patches needing some effort, and that this patch, while probably very useful and interesting, belongs to the next commitfest which is not yet in progress. -- Álvaro Herrerahttp://www.2ndQuadra

Re: [HACKERS] [WIP] pg_ping utility

2012-10-23 Thread Phil Sorber
On Tue, Oct 23, 2012 at 6:22 PM, Christopher Browne wrote: > On Tue, Oct 23, 2012 at 6:12 PM, Peter Eisentraut wrote: >> On 10/22/12 11:47 AM, Phil Sorber wrote: >> Also, it seems that about 75% of the patch is connection options processing. >> How about >> we get rid of all that and just have

Re: [HACKERS] [WIP] pg_ping utility

2012-10-23 Thread Phil Sorber
On Tue, Oct 23, 2012 at 6:12 PM, Peter Eisentraut wrote: > Quick review ... > > Code: > > *** install: all installdirs > *** 54,59 > --- 55,61 > $(INSTALL_PROGRAM) clusterdb$(X) '$(DESTDIR)$(bindir)'/clusterdb$(X) > $(INSTALL_PROGRAM) vacuumdb$(X) '$(DESTDI

Re: [HACKERS] [WIP] pg_ping utility

2012-10-23 Thread Christopher Browne
On Tue, Oct 23, 2012 at 6:12 PM, Peter Eisentraut wrote: > On 10/22/12 11:47 AM, Phil Sorber wrote: > Also, it seems that about 75% of the patch is connection options processing. > How about > we get rid of all that and just have them specify a connection string? It > would be a break > with t

Re: [HACKERS] [WIP] pg_ping utility

2012-10-23 Thread Peter Eisentraut
On 10/22/12 11:47 AM, Phil Sorber wrote: > On Sun, Oct 21, 2012 at 6:20 PM, Tom Lane wrote: >> Phil Sorber writes: >>> Here is the new patch. I renamed the utility from pg_ping to pingdb to >>> go along with the naming convention of src/bin/scripts. >> >> Uh, no, that's not a step forward. Leavi

Re: [HACKERS] [WIP] pg_ping utility

2012-10-22 Thread Phil Sorber
On Sun, Oct 21, 2012 at 6:20 PM, Tom Lane wrote: > Phil Sorber writes: >> Here is the new patch. I renamed the utility from pg_ping to pingdb to >> go along with the naming convention of src/bin/scripts. > > Uh, no, that's not a step forward. Leaving out a "pg" prefix from those > script names i

Re: [HACKERS] [WIP] pg_ping utility

2012-10-21 Thread Tom Lane
Phil Sorber writes: > Here is the new patch. I renamed the utility from pg_ping to pingdb to > go along with the naming convention of src/bin/scripts. Uh, no, that's not a step forward. Leaving out a "pg" prefix from those script names is universally agreed to have been a mistake. We've not fel

Re: [HACKERS] [WIP] pg_ping utility

2012-10-21 Thread Phil Sorber
On Mon, Oct 15, 2012 at 9:18 PM, Tom Lane wrote: > Phil Sorber writes: >> On Mon, Oct 15, 2012 at 7:12 PM, Tom Lane wrote: >>> Yeah, I know a whole new executable is kind of a pain, and the amount of >>> infrastructure and added maintenance seems a bit high compared to what >>> this does. But a

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Phil Sorber
On Mon, Oct 15, 2012 at 9:18 PM, Tom Lane wrote: > Phil Sorber writes: >> I would also like it to have a regression test >> which none of those seem to have. > > [ shrug... ] There is nothing in the current regression infrastructure > that would work for this, so that desire is pie-in-the-sky re

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Tom Lane
Phil Sorber writes: > On Mon, Oct 15, 2012 at 7:12 PM, Tom Lane wrote: >> Yeah, I know a whole new executable is kind of a pain, and the amount of >> infrastructure and added maintenance seems a bit high compared to what >> this does. But a lot of the programs in src/bin/scripts are not much >>

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Tom Lane
"David Johnston" writes: >> Yeah, I know a whole new executable is kind of a pain, and the amount of >> infrastructure and added maintenance seems a bit high compared to what >> this does. But a lot of the programs in src/bin/scripts are not much >> bigger. (In fact that might be the best place f

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Phil Sorber
On Mon, Oct 15, 2012 at 7:12 PM, Tom Lane wrote: > Andres Freund writes: >> Why not add a pg_ctl subcommand for that? For me that sounds like a good >> place >> for it... > > I think that's a bad fit, because every other pg_ctl subcommand requires > access to the data directory. It would be ver

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread David Johnston
> -Original Message- > From: pgsql-hackers-ow...@postgresql.org [mailto:pgsql-hackers- > ow...@postgresql.org] On Behalf Of Tom Lane > Sent: Monday, October 15, 2012 7:13 PM > To: Andres Freund > Cc: pgsql-hackers@postgresql.org; Thom Brown; Phil Sorber > Subjec

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Tom Lane
Andres Freund writes: > Why not add a pg_ctl subcommand for that? For me that sounds like a good > place > for it... I think that's a bad fit, because every other pg_ctl subcommand requires access to the data directory. It would be very confusing if this one subcommand worked remotely when the

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Phil Sorber
On Mon, Oct 15, 2012 at 5:32 PM, Andres Freund wrote: > On Monday, October 15, 2012 11:28:36 PM Thom Brown wrote: >> On 13 October 2012 22:19, Phil Sorber wrote: >> > Based on a previous thread >> > (http://archives.postgresql.org/pgsql-hackers/2012-10/msg00131.php) I >> > have put together a fir

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Andres Freund
On Monday, October 15, 2012 11:28:36 PM Thom Brown wrote: > On 13 October 2012 22:19, Phil Sorber wrote: > > Based on a previous thread > > (http://archives.postgresql.org/pgsql-hackers/2012-10/msg00131.php) I > > have put together a first attempt of a pg_ping utility. I am attaching > > two patch

Re: [HACKERS] [WIP] pg_ping utility

2012-10-15 Thread Thom Brown
On 13 October 2012 22:19, Phil Sorber wrote: > Based on a previous thread > (http://archives.postgresql.org/pgsql-hackers/2012-10/msg00131.php) I > have put together a first attempt of a pg_ping utility. I am attaching > two patches. One for the executable and one for the docs. > > I would also li

[HACKERS] [WIP] pg_ping utility

2012-10-13 Thread Phil Sorber
Based on a previous thread (http://archives.postgresql.org/pgsql-hackers/2012-10/msg00131.php) I have put together a first attempt of a pg_ping utility. I am attaching two patches. One for the executable and one for the docs. I would also like to make a regression tests and translations, but wante