database name. - Mailing list pgsql-general

From Limin Liu
Subject database name.
Date
Msg-id 3A075163.12514676@pumpkinnet.com
Whole thread Raw
Responses Re: database name.  (Alfred Perlstein <bright@wintelcom.net>)
List pgsql-general
Hi,

I am new in PostgreSQL and have a simple question:
Is there any way we can find out which db the current client is working
with?

In psql, the prompt tells us the current open db, but I may need to
access that information in a C client on the fly with may db opened.  I
wonder if this is possible?

Thanks in advance.

Limin Liu


pgsql-general by date:

Previous
From: Sandeep Joshi
Date:
Subject: embedded
Next
From: Christian Setzkorn
Date:
Subject: application(s) ???