Re: [PATCH] (Windows) psql echoes password when reading from pipe

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthew Stickney <mtstickney(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] (Windows) psql echoes password when reading from pipe
Date: 2018-05-23 23:06:29
Message-ID: 16097.1527116789@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Matthew Stickney <mtstickney(at)gmail(dot)com> writes:
> The attached is a patch that uses the _fileno/_get_osfhandle approach.
> This doesn't address the stdin fallback, or error handling if opening
> termin fails; however, it should be no worse than what's there now, and
> it fixes the immediate problem.

LGTM; pushed with some cosmetic changes.

> I'm still thinking about the fallback in terms of a mintty-type
> environment, but I wanted to get this patch out there in the meantime.

Yeah. I'm not absolutely sure that we need to do anything there,
given the lack of field complaints; but if we can think of a simple
way to make it more bulletproof, all the better.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2018-05-23 23:31:37 Re: documentation fixes for partition pruning, round two
Previous Message David Rowley 2018-05-23 22:46:38 Re: documentation fixes for partition pruning, round two