Re: SET database TO ...?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ow <oneway_111(at)yahoo(dot)com>
Cc: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: SET database TO ...?
Date: 2003-09-15 16:15:22
Message-ID: 11018.1063642522@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

ow <oneway_111(at)yahoo(dot)com> writes:
> --- Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2003-09-15 20:08:05 Re: SET database TO ...?
Previous Message A.Bhuvaneswaran 2003-09-15 15:35:30 Re: SET database TO ...?