Re: CVS Head: Pg_ctl bug?

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: CVS Head: Pg_ctl bug?
Date: 2005-08-29 20:13:24
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE0946C9@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> > > Is write_stderr() broken on Windows?
> >
> > In some cases it writes to the eventlog instead of stderr.
> > Dave, can you
> > check if this is what's happening to you?
>
> Bah, no coffee for 2 weeks dulls the mind :-(
>
> Yes, this is what's happening. Odd though, considering that I have:
>
> #log_destination = 'stderr'
>
> In my out-of-the-box config.

This is output from pg_ctl, right? pg_ctl doesn't look at
postgresql.conf...

pg_ctl has:
if (!isatty(fileno(stderr))) /* Running as a service */
... write to eventlog ...

That check appears to be failing. The backend has a lot more elaborate
check (in port/backend/security.c). Perhaps we need to make that kind of
advanced check in pg_ctl as well?

Though I don't see any of this code changing lately, so I don't see why
it's failing now. Are you running it under some kind of different
environment than you used to? Any other ideas on why it would claim your
console is not a tty?

//Magnus

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2005-08-29 20:14:28 Re: CVS Head: Pg_ctl bug?
Previous Message Tom Lane 2005-08-29 20:11:50 Re: CVS Head: Pg_ctl bug?