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

Re: psql: default base and password reading

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, Bradley McLean <brad(at)bradm(dot)net>, Adam Osuchowski <adwol(at)polsl(dot)gliwice(dot)pl>
Subject: Re: psql: default base and password reading
Date: 2001-10-13 15:53:22
Message-ID: 10256.1002988402@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
>> In fact, I wonder if we should just fail if we need to prompt for a
>> password and can't open /dev/tty.  The function is simple_prompt() and
>> if we can't open /dev/tty, maybe we should just assume the user typed
>> nothing.

> Would be okay with me ...

On second thought --- are we creating any portability problems if we
assume /dev/tty exists?  In particular, what about the Windows port
of psql?  Will it still work?

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-10-13 16:04:27
Subject: Re: psql: default base and password reading
Previous:From: Tom LaneDate: 2001-10-13 15:47:17
Subject: Re: psql: default base and password reading

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