pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Albert REINER <areiner@tph.tuwien.ac.at>
To: PostgreSQL-SQL <pgsql-sql@postgreSQL.org>
Subject: Re: Suggestion for psql: --file -
Date: Fri, 2 Feb 2001 20:30:00 +0100
Message-ID: <20010202203000.A202@frithjof> (raw)
In-Reply-To: <Pine.LNX.4.30.0102021615130.923-100000@peter.localdomain>
References: <20010130232028.A1380@frithjof>
	<Pine.LNX.4.30.0102021615130.923-100000@peter.localdomain>

On Fri, Feb 02, 2001 at 04:16:05PM +0100, Peter Eisentraut wrote:
> Albert REINER writes:
...
> > P.S: BTW, the man page (7.0.2) of psql is not very clear: it took me
> > some experimentation to find out that you have to do "\set VARIABLE"
> > interactively or give "--set VARIABLE=" to set a variable that does
> > not take a value.
> 
> Suggested new wording?

What about:

-v, --variable, --set variable[=[value]]

Performs a variable assignment, like the \set internal command.  Note
that you must separate name and value, if any, by an equal sign on the
command line. To unset a variable, leave off the equal sign and the
value.  To just set a variable without a value, use the equal sign but
leave off the value. These assignments are done during a very early
state of startup, so variables reserved for internal purposes might
get overwritten later.


Albert.

-- 

--------------------------------------------------------------------------
Albert Reiner                                   <areiner@tph.tuwien.ac.at>
Deutsch       *       English       *       Esperanto       *       Latine
--------------------------------------------------------------------------



view thread (4+ messages)  latest in thread

Message-ID: <20010202203000.A202@frithjof>
Permalink:  ../20010202203000.A202@frithjof/
Also on:    postgresql.org/message-id/20010202203000.A202@frithjof

 · 

reply

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-sql@postgresql.org
  Cc: areiner@tph.tuwien.ac.at
  Subject: Re: Suggestion for psql: --file -
  In-Reply-To: <20010202203000.A202@frithjof>
  References: <20010130232028.A1380@frithjof> <Pine.LNX.4.30.0102021615130.923-100000@peter.localdomain> <20010202203000.A202@frithjof>

* 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