Re: SET database TO ...? - Mailing list pgsql-sql

From Tom Lane
Subject Re: SET database TO ...?
Date
Msg-id 11018.1063642522@sss.pgh.pa.us
Whole thread Raw
In response to Re: SET database TO ...?  (ow <oneway_111@yahoo.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: ow
Date:
Subject: Re: SET database TO ...?
Next
From: ow
Date:
Subject: A simple way to Create type ...?