Re: PostgreSQL crashes with Qmail-SQL - Mailing list pgsql-hackers

From Vince Vielhaber
Subject Re: PostgreSQL crashes with Qmail-SQL
Date
Msg-id Pine.BSF.4.40.0202011509280.24794-100000@paprika.michvhf.com
Whole thread Raw
In response to Re: PostgreSQL crashes with Qmail-SQL  (Doug McNaught <doug@wireboard.com>)
Responses Re: PostgreSQL crashes with Qmail-SQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 1 Feb 2002, Doug McNaught wrote:

> Bear Giles <bear@coyotesong.com> writes:
>
> > > Caution: I wasted some time running "benchmarks" that proved only
> > > to be exercising how fast the client could fail.  qmail-getpw's
> > > approach to error handling seems to be (a) don't bother testing for
> > > very many error conditions (eg, it coredumps on an empty sqlserver
> > > control file), and (b) if it does detect a failure, exiting with a
> > > nonzero error code is a sufficient way of reporting it.  Error messages
> > > are for wimps, apparently.
> >
> > (b) is part of the qmail strategy - qmail is implemented as a set
> > of independent processes with different owners and rights and they
> > communicate problems through standard exit codes.
> >
> > We can agree that it should be more forthcoming with meaningful
> > help for people setting up the system, but it can't just write an
> > message to STDOUT because its caller has probably already set up
> > a pipe to another process - any error message would normally find
> > itself inserted into the mail queue!
>
> Gaah.  Has djb ever heard of syslog(3)?  Or is that too insecure for
> him?

Insecure and slow.  Check out multilog which is part of daemontools.

http://cr.yp.to/daemontools/multilog.html

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH    email: vev@michvhf.com    http://www.pop4.net        56K Nationwide Dialup from $16.00/mo
atPop4 Networking       Online Campground Directory    http://www.camping-usa.com      Online Giftshop Superstore
http://www.cloudninegifts.com
==========================================================================





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: A couple binary cursor questions
Next
From: Bruno Wolff III
Date:
Subject: Re: PostgreSQL crashes with Qmail-SQL