Search Postgresql Archives

Re: Print database name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux