Re: Is there a way knowing which database I'm connecting to? - Mailing list pgsql-general

From Tilo Schwarz
Subject Re: Is there a way knowing which database I'm connecting to?
Date
Msg-id 200301251657.14421.mail@tilo-schwarz.de
Whole thread Raw
In response to Is there a way knowing which database I'm connecting to?  ("Frankie" <frankie@ucr.com.hk>)
List pgsql-general
Frankie writes:
> Hi
>
> Is there a way knowing which database I'm connecting to, e.g. inside an
> ODBC connection?
> (or if there is any function can get the value of such environment
> variable?)
>
> Sorry I don't where to post this question, I guess here is the right place.
>
> Frankie

Maybe this helps:

PostgreSQL 7.3.1 Documentation
6.13. Miscellaneous Functions:

current_database() -> name of current database

Tilo

pgsql-general by date:

Previous
From: =?iso-8859-9 ?q?=C7a=F0=FDl=20=DEeker?=
Date:
Subject: pcap filter for postgresql authorization
Next
From: Tom Lane
Date:
Subject: Re: Re: drop table problem