Print database name - Mailing list pgsql-general

From Woody Woodring
Subject Print database name
Date
Msg-id 016d01c77781$20becc10$80b1a8c0@istructure.com
Whole thread Raw
Responses Re: Print database name  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Is there a sql command to print out which database I am connected to?

I am using "psql -f sqlFile" in a sh script to up date tables on multiple
databases.  I would like to have the sqlFile display the db name so I would
know which output lines go with each db without having to count the output
lines.

Thanks,
Woody

----------------------------------------
iGLASS Networks
211-A S. Salem St
Apex NC 27502
(919) 387-3550 x813
www.iglass.net


pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: inet_client_addr() implementation
Next
From: Michael Fuhr
Date:
Subject: Re: Print database name