| From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> | 
|---|---|
| To: | <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: pg_ctl reports succes when start fails | 
| Date: | 2003-10-29 04:17:11 | 
| Message-ID: | 002b01c39dd3$86dd3490$6401a8c0@DUNSLANE | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers pgsql-hackers-win32 | 
----- Original Message ----- 
From: "Sean Chittenden" <sean(at)chittenden(dot)org>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Andrew Dunstan" <andrew(at)dunslane(dot)net>; <pgsql-hackers(at)postgresql(dot)org>
Sent: Tuesday, October 28, 2003 7:59 PM
Subject: Re: [HACKERS] pg_ctl reports succes when start fails
> > > We can also try to come up with a better scheme for verifying that
> > > we have started properly - I will think about that.
> >
> > There have been previous suggestions for a "pg_ping" functionality,
> > in which you could simply send a packet to the postmaster and it
> > would answer back if it's open for business.  You can approximate
> > this by sending a deliberately invalid login packet, but it's not
> > quite the same thing.  I think there were some concerns about
> > security though; check the archives.
>
> Um, I wrote pg_ping and sent it to -patches but got no comments.
>
> http://archives.postgresql.org/pgsql-patches/2003-07/msg00053.php
>
> pg_ping is actually the basis for the threaded benchmark program I've
> got sitting in my tree, but I don't think folks here would look kindly
> on a -lpthread dependency given how up in the air pg's thread
> support/testing is at the moment.  -sc
>
At least those parts of that patch that alter pg_ctl seem to be moot given
that we are moving to a C version of pg_ctl (Joshua Drake tells me that
CommandPrompt is willing to do that work).
cheers
andrew
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-10-29 05:07:59 | Re: shared memory on OS X - 7.4beta4 | 
| Previous Message | Bruce Momjian | 2003-10-29 03:36:00 | Re: pg_ctl reports succes when start fails | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Claudio Natoli | 2003-10-30 04:33:02 | Dumb unlink question | 
| Previous Message | Bruce Momjian | 2003-10-29 03:36:00 | Re: pg_ctl reports succes when start fails |