![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I just noticed that if I don't specify a data directory either on the command line or in $PGDATA,, pg_ctl fails silently on Windows (haven't been able to test other platforms atm). Is this a bug or an oversight - an error message would seem appropriate? |
#3
| |||
| |||
|
|
I just noticed that if I don't specify a data directory=20 either on the=20 command line or in $PGDATA,, pg_ctl fails silently on=20 Windows (haven't=20 been able to test other platforms atm). Is this a bug or an=20 oversight=20 - an error message would seem appropriate? =20 On my machine it does this: =20 $ bin/pg_ctl start pg_ctl: no database directory specified and environment=20 variable PGDATA unset Try "pg_ctl --help" for more information. $ =20 Is write_stderr() broken on Windows? |
#4
| |||
| |||
|
|
In some cases it writes to the eventlog instead of stderr. Yes, this is what's happening. Odd though, considering that I have: #log_destination = 'stderr' In my out-of-the-box config. |
#5
| |||
| |||
|
|
-----Original Message----- From: Magnus Hagander [mailto:mha (AT) sollentuna (DOT) net]=20 Sent: 29 August 2005 20:58 To: Tom Lane; Dave Page Cc: pgsql-bugs (AT) postgresql (DOT) org Subject: RE: [BUGS] CVS Head: Pg_ctl bug?=20 =20 Is write_stderr() broken on Windows? =20 In some cases it writes to the eventlog instead of stderr.=20 Dave, can you check if this is what's happening to you? |
#6
| |||
| |||
|
|
Is write_stderr() broken on Windows? =20 In some cases it writes to the eventlog instead of stderr.=20 Dave, can you check if this is what's happening to you? =20 Bah, no coffee for 2 weeks dulls the mind :-( =20 Yes, this is what's happening. Odd though, considering that I have: =20 #log_destination =3D 'stderr' =20 In my out-of-the-box config. |
#7
| |||
| |||
|
|
In some cases it writes to the eventlog instead of stderr.=20 =20 Yes, this is what's happening. Odd though, considering that I have: #log_destination =3D 'stderr' In my out-of-the-box config. =20 pg_ctl doesn't read the config file, though. Probably we=20 need to make write_stderr aware that it's running in an=20 interactive program rather than in the postmaster, and never=20 use the eventlog in this context. |
#8
| |||
| |||
|
|
-----Original Message----- From: Tom Lane [mailto:tgl (AT) sss (DOT) pgh.pa.us]=20 Sent: 29 August 2005 21:12 To: Dave Page Cc: Magnus Hagander; pgsql-bugs (AT) postgresql (DOT) org Subject: Re: [BUGS] CVS Head: Pg_ctl bug?=20 =20 "Dave Page" <dpage (AT) vale-housing (DOT) co.uk> writes: In some cases it writes to the eventlog instead of stderr.=20 =20 Yes, this is what's happening. Odd though, considering that I have: #log_destination =3D 'stderr' In my out-of-the-box config. =20 pg_ctl doesn't read the config file, though. Probably we need to make write_stderr aware that it's running in an interactive program rather than in the postmaster, and never use the eventlog in=20 this context. |
#9
| |||
| |||
|
|
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? |
#10
| |||
| |||
|
|
-----Original Message----- From: Magnus Hagander [mailto:mha (AT) sollentuna (DOT) net]=20 Sent: 29 August 2005 21:13 To: Dave Page; Tom Lane Cc: pgsql-bugs (AT) postgresql (DOT) org Subject: RE: [BUGS] CVS Head: Pg_ctl bug?=20 =20 Though I don't see any of this code changing lately, so I=20 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=20 claim your console is not a tty? |
![]() |
| Thread Tools | |
| Display Modes | |
| |