Print database name

From: "Woody Woodring" <george(dot)woodring(at)iglass(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Print database name
Date: 2007-04-05 12:51:28
Message-ID: 016d01c77781$20becc10$80b1a8c0@istructure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message J. ORIOL 2007-04-05 12:57:41 inet_client_addr() implementation
Previous Message Ashish Karalkar 2007-04-05 12:06:14 Re: Granting permissions