Re: current database? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: current database?
Date
Msg-id Pine.LNX.4.21.0006191858180.353-100000@localhost.localdomain
Whole thread Raw
In response to current database?  (mikeo <mikeo@spectrumtelecorp.com>)
List pgsql-general
mikeo writes:

>  when i do \c - postgres tells me which
> database i'm currently connected to.  where
> does it get this info?  i'd like to use it
> in a program.

It remembers this information from when you first connected, e.g., `psql
-d template1'.

--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_sorttemp*
Next
From: "Chris Dorr"
Date:
Subject: RE: pg_sorttemp*