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

From Bear Giles
Subject Re: PostgreSQL crashes with Qmail-SQL
Date
Msg-id 200201251801.LAA09176@eris.coyotesong.com
Whole thread Raw
In response to Re: PostgreSQL crashes with Qmail-SQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PostgreSQL crashes with Qmail-SQL  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-hackers
> 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!

(a), in contrast, is definitely not normal for qmail and is the type
of thing that should be fixed... even if all it does after detecting
a problem is return with a nonzero error code. :-)

Bear


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Per-database and per-user GUC settings
Next
From:
Date:
Subject: Multi-threaded PostgreSQL