Re: \prompt for psql

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org, Chad Wagner <chad(dot)wagner(at)gmail(dot)com>
Subject: Re: \prompt for psql
Date: 2007-02-17 15:07:09
Message-ID: 200702171507.l1HF79W04516@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Magnus Hagander wrote:
> Peter Eisentraut wrote:
> > Bruce Momjian wrote:
> >> Seems the consensus was this was a good idea, and not feature-creep.
> >
> > I wonder whether we want this to read from the console, like the
> > password prompts, or from stdin. Not sure which is more useful.
> >
> I think from stdin. Otherwise it won't be possible to script it at all.
> Passwords are special, other prompts are not, I think.

stdin makes it impossible to read a script from stdin and still prompt
the user, but I think that is of limited usefulness.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-02-17 16:19:11 Re: patch adding new regexp functions
Previous Message Magnus Hagander 2007-02-17 14:01:54 Re: \prompt for psql