From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: pg_ctl strangeness under msys |
Date: | 2004-10-27 19:43:55 |
Message-ID: | 200410271943.i9RJhtx01465@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers-win32 |
Andrew Dunstan wrote:
> >Have you tried:
> >
> > pg_ctl start 2>/dev/tty
> >
> >that would force stderr to go to the tty. This might help because the
> >pg_ctl.c test is:
> >
> > if (!isatty(fileno(stderr))) /* Running as a service */
> >
> >
> >
>
> This was about status, not start.
>
> pg_ctl status 2>/dev/tty
>
> gives me the same thing as before. But only if the postmaster isn't
> running - if it is running I get the status as expected, because then we
> write to stdout rather than calling write_stderr() - I'm not sure I
> understand why we do that.
Yes, that is a bug that is fixed with the applied patch. We should
alway print status to stdout, even stopped status. We did that in 7.4
and should continue with that in 8.0.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 1.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-10-28 11:19:51 | Re: Win32 open items |
Previous Message | Leen Besselink | 2004-10-27 16:23:28 | pg_autovacuum in 8beta-dev3 small bug |