Re: How to determine current database?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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-14 00:41:23
Message-ID: 6896.1076719283@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron St-Pierre <rstpierre(at)syscor(dot)com> writes:
> 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).

See current_database():
http://www.postgresql.org/docs/7.4/static/functions-misc.html

regards, tom lane

In response to

Browse pgsql-general by date

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