From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: ow <oneway_111@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SET database TO ...?
Date: Mon, 15 Sep 2003 18:08:05 -0200 (GMT+2)
Message-ID: <Pine.LNX.4.44.0309151807120.18458-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <20030915144646.95758.qmail@web21406.mail.yahoo.com>
On Mon, 15 Sep 2003, ow wrote:
> Hi,
>
> Suppose, one server/postmaster is running several databases. Is there something
> like "SET database TO whatever" (and I mean *database* not schema). I need this
> to ensure that a script runs only against db for which it was desinged.
[postgres@smadev ~]% psql
Welcome to psql 7.3.4, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
dynacom=# \c bab
You are now connected to database bab.
bab=#
bab=#
bab=# \c dynacom
You are now connected to database dynacom.
dynacom=# \q
[postgres@smadev ~]%
>
> Thanks
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
--
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-210-8981112
fax: +30-210-8981877
email: achill at matrix dot gatewaynet dot com
mantzios at softlab dot ece dot ntua dot gr
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: achill@matrix.gatewaynet.com, oneway_111@yahoo.com
Subject: Re: SET database TO ...?
In-Reply-To: <Pine.LNX.4.44.0309151807120.18458-100000@matrix.gatewaynet.com>
References: <20030915144646.95758.qmail@web21406.mail.yahoo.com> <Pine.LNX.4.44.0309151807120.18458-100000@matrix.gatewaynet.com>
* 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