Skip site navigation (1) Skip section navigation (2)

Re: pg_ctl strangeness under msys

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>,"pgsql-hackers-win32" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: pg_ctl strangeness under msys
Date: 2004-10-21 08:53:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
> I have seen some strange things using pg_ctl under MSys:
> . "pg_ctl status" from the command line logs to the event log. 
> Apparently it thinks it's not on a tty. Works fine from 
> Windows cmd prompt.
> . this hangs: perl -e '@foo=`pg_ctl -w start`;'
>   but this doesn't: perl -e 'system("pg_ctl -w start");'
> Finding the problem with the last one has cost me hours in 
> trying to get the buildfarm to run.
> Anyone have ideas about ways to fix? Or do we just note it 
> and live with it?

As I'm sure you are already aware we've had a lot of problems with the
msys console. Buffernig and others. I think we at some point decided to
say that minor issues on the win32 consoles isn't really something we're
concerned about, people will run things from the cmd console in 99.9% of
all cases.

Not sure how to fix it. The eventlog checking code uses isatty() IIRC,
and that one is clearly returning the wrong thing on msys. Not sure how
to code around that.

As for the perl command, what perl is this? ActiveState or MingW? Do you
get the same problem if you run it in the cmd.exe environment, or only
in the msys console?



pgsql-hackers-win32 by date

Next:From: Luis RodriguesDate: 2004-10-21 09:37:31
Subject: postgres user - win32 installer
Previous:From: Magnus HaganderDate: 2004-10-21 08:42:11
Subject: New pginstaller beta

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group