Re: SET database TO ...?

From: "A(dot)Bhuvaneswaran" <bhuvan(at)symonds(dot)net>
To: ow <oneway_111(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SET database TO ...?
Date: 2003-09-15 15:35:30
Message-ID: Pine.LNX.4.44.0309152104150.18913-100000@Bhuvan.bksys.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 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.

You can use PG* environment variables if you wish to write seperate script
for each databases.

regards,
bhuvaneswaran

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-09-15 16:15:22 Re: SET database TO ...?
Previous Message ow 2003-09-15 15:33:48 Re: SET database TO ...?