Skip site navigation (1) Skip section navigation (2)

Re: We should Axe /contrib/start-scripts

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 (view raw or flat)
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.

In response to

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2009-08-25 21:23:17
Subject: Re: We should Axe /contrib/start-scripts
Previous:From: Tom LaneDate: 2009-08-25 20:46:08
Subject: Re: We should Axe /contrib/start-scripts

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group