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

From Peter Eisentraut
Subject Re: \prompt for psql
Date
Msg-id 200702081225.41292.peter_e@gmx.net
Whole thread Raw
In response to Re: \prompt for psql  (Magnus Hagander <magnus@hagander.net>)
Responses Re: \prompt for psql  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-patches
Magnus Hagander wrote:
> That also requires a "reasonable shell", which all platforms don't
> have...

I think doing any sort of reasonable scripting around psql requires a
reasonable shell.  Or next someone will suggest implementing loops and
conditionals in psql.

For that matter, I suspect in any shell you can read the required
variables beforehand and pass them into psql through arguments.  So the
use case for reading variables during a psql script seems questionable
anyway (without conditionals, at least).

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: \prompt for psql
Next
From: "Chad Wagner"
Date:
Subject: Re: \prompt for psql