Re: \prompt for psql

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org, Chad Wagner <chad(dot)wagner(at)gmail(dot)com>
Subject: Re: \prompt for psql
Date: 2007-02-08 11:25:40
Message-ID: 200702081225.41292.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Chad Wagner 2007-02-08 11:27:42 Re: \prompt for psql
Previous Message Chad Wagner 2007-02-08 11:25:31 Re: \prompt for psql