Re: Print database name

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Woody Woodring <george(dot)woodring(at)iglass(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Print database name
Date: 2007-04-05 13:43:05
Message-ID: 20070405134304.GA16540@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomi N/A 2007-04-05 14:01:24 Re: Using C# to create stored procedures
Previous Message Jaime Silvela 2007-04-05 13:28:28 Help!! Crash recovery