Re: \prompt for psql - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: \prompt for psql
Date
Msg-id 200702171507.l1HF79W04516@momjian.us
Whole thread Raw
In response to Re: \prompt for psql  (Magnus Hagander <magnus@hagander.net>)
Responses Re: \prompt for psql  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

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

pgsql-patches by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: \prompt for psql
Next
From: Tom Lane
Date:
Subject: Re: patch adding new regexp functions