From: bugs@bereft.net
To: pgsql-bugs@postgresql.org
Subject: BUG #7536: run arbitrary -c setup command before interaction [wishlist]
Date: Thu, 13 Sep 2012 06:39:21 +0000
Message-ID: <E1TC357-00022O-3q@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 7536
Logged by: Brad Bowman
Email address: bugs@bereft.net
PostgreSQL version: 9.1.5
Operating system: linux
Description:
I'd like a -c (or -f) option that doesn't exit immediately. In my case, I'd
like to setup an environment based on dynamic information (search_path,
prompt, temp views, info displayed) and envisage doing it with a -c or
similar. I haven't been able to find other ways to do this.
PGOPTIONS and the new (9.2) PSQLRC would cover some of my needs.
There is a related TODO item ( http://wiki.postgresql.org/wiki/Todo#psql )
Allow processing of multiple -f (file) options
Perhaps allowing multiple -f -c and a fully interactive -f - would do
psql -f setup.sql -c '..info' -f - -c '..summary'
Thanks, hope this isn't just noise,
Brad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bugs@bereft.net
Subject: Re: BUG #7536: run arbitrary -c setup command before interaction [wishlist]
In-Reply-To: <E1TC357-00022O-3q@wrigleys.postgresql.org>
References: <E1TC357-00022O-3q@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox