Re: Print database name - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Print database name
Date
Msg-id 20070405134304.GA16540@winnie.fuhr.org
Whole thread Raw
In response to Print database name  ("Woody Woodring" <george.woodring@iglass.net>)
Responses Re: Print database name  (Jaime Silvela <JSilvela@Bear.com>)
List pgsql-general
On Thu, Apr 05, 2007 at 08:51:28AM -0400, Woody Woodring wrote:
> Is there a sql command to print out which database I am connected to?

SELECT current_database();

See "System Information Functions" in the documentation for other
such functions.

http://www.postgresql.org/docs/8.2/interactive/functions-info.html

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Woody Woodring"
Date:
Subject: Print database name
Next
From: "Tomi N/A"
Date:
Subject: Re: Using C# to create stored procedures