Re: [BUGS] Missing error message on missing ssl-key-files - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: [BUGS] Missing error message on missing ssl-key-files
Date
Msg-id 20070130153903.GD20887@svr2.hagander.net
Whole thread Raw
In response to Re: [BUGS] Missing error message on missing ssl-key-files  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] Missing error message on missing ssl-key-files
List pgsql-hackers
On Tue, Jan 30, 2007 at 10:32:14AM -0500, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > So I still tthink it's a good idea. Even though it doesn't solve every
> > case, it solves a lot of them I think. And more importantly on that, I
> > don't see how it would *break* anything (given that it still fires only
> > when running as a service, when everything on stderr is just thrown away
> > anyway). Do you see suhc a failure case?
> 
> The case I'm worried about is subprocess startup, where we haven't yet
> been able to re-set any of these variables correctly.  And yes, I think
> it's an issue: if a DBA is expecting to find PG error messages in the
> syslogger files, he's unlikely to go look in the eventlog.

But in that case, the syslogger is already running, right? So it'll pick
up the messages and drop them in the log as expected. Because we can't
start backends before the syslogger is up, and I think it's the first of
our subprocesses to start still?

You'll have problems if the syslogger keeps crashing, but if that
happens we will at least have the log that the syslogger is crashing.

I get the feeling I'm missing something, but I'm not sure what it is :-)

But I guess maybe the added check has to be not just (!syslogger_started)
but (!syslogger_started && is_postmaster)?

//Magnus


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] Missing error message on missing ssl-key-files
Next
From: "Tom Dong"
Date:
Subject: Re: [ADMIN] How to configure Postgres NOT to use (load) openssl libraries libeay32.dll and ssleay32.dll