Re: Windows psql changes after 8.1.1 - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Windows psql changes after 8.1.1
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA35983@algol.sollentuna.se
Whole thread Raw
In response to Re: Windows psql changes after 8.1.1  (John DeSoi <desoi@pgedit.com>)
List pgsql-hackers
> Hi Magnus,
>
> I did not use PGPASSWORD because the documentation says it is
> not secure.

Well, it says "some operating systems allow non-root users to see
process environment variables via ps". This is very much not the case on
Windows, so I don't beleive there is any problem with it on windows.

> I'll give it a try on Windows. Just curious, why
> is stdin/ stdout insecure if that is what is used for normal
> interactive operation?

It's not used for normal interactive operation. The password is
retreived directly from CON: (just like it does on Unix)


> Could you point me to the file that changed in 8.1.4?

It's src/port/sprompt.c.

//Magnus


pgsql-hackers by date:

Previous
From: John DeSoi
Date:
Subject: Re: Windows psql changes after 8.1.1
Next
From: Bruce Momjian
Date:
Subject: Re: Day and month name localization uses wrong