Re: How to determine current database?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Ron St-Pierre <rstpierre(at)syscor(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to determine current database?
Date: 2004-02-13 23:51:05
Message-ID: 402D62E9.6020708@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron St-Pierre wrote:

> I am using postgres 7.3.4 and need to be able to determine which
> database a query is being run in (from a script). pg_database lists
> databases but doesn't tell me which one is currently active.

See:
http://www.postgresql.org/docs/7.3/static/functions-misc.html

HTH,

Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric Ridge 2004-02-13 23:52:29 Re: How to determine current database?
Previous Message Ron St-Pierre 2004-02-13 23:05:15 How to determine current database?