From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> |
Cc: | Chander Ganesan <chander(at)otg-nc(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: We should Axe /contrib/start-scripts |
Date: | 2009-08-25 20:47:28 |
Message-ID: | 20090825204728.GN12604@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Kevin Grittner wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
>
> > That's within my definition of "ugly", yes :-) My ideal tool would
> > do something like
> >
> > $ pg_ping -h foo -p 5555
> > IN_RECOVERY
> > $ echo $?
> > 2
> >
> > $ # sleep a bit ...
> >
> > $ pg_ping -h foo -p 5555
> > READY
> > $ echo $?
> > 0
>
> Cool, but how would you do that without bypassing authentication? If
> you do bypass authentication, wouldn't that be sort of a big target
> for denial of service attacks?
The startup sequence lets you know that it's going to reject the
connection before checking the auth credentials; see
ProcessStartupPacket.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2009-08-25 21:23:17 | Re: We should Axe /contrib/start-scripts |
Previous Message | Tom Lane | 2009-08-25 20:46:08 | Re: We should Axe /contrib/start-scripts |