From: Tom Lane <tgl@sss.pgh.pa.us>
To: ow <oneway_111@yahoo.com>
Cc: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SET database TO ...?
Date: Mon, 15 Sep 2003 12:15:22 -0400
Message-ID: <11018.1063642522@sss.pgh.pa.us> (raw)
In-Reply-To: <20030915153348.78123.qmail@web21401.mail.yahoo.com>
References: <20030915153348.78123.qmail@web21401.mail.yahoo.com>
ow <oneway_111@yahoo.com> writes:
> --- Achilleus Mantzios <achill@matrix.gatewaynet.com> wrote:
>> dynacom=# \c bab
>> You are now connected to database bab.
> I'm actually looking for a way to set database from a *script*, not psql
> console, if this is possible (similar to "SET search_path TO whatever;").
If the script is being fed to psql, it can use \c ...
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, oneway_111@yahoo.com, achill@matrix.gatewaynet.com
Subject: Re: SET database TO ...?
In-Reply-To: <11018.1063642522@sss.pgh.pa.us>
* 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