[pgsql@localhost bin]$ ./psql -d tester
psql (9.1.2)
Type "help" for help. tester=# select current_database();
current_database
------------------
tester
(1 row) tester=#
http://www.postgresql.org/docs/7.3/static/functions-misc.html
[pgsql@localhost bin]$ ./psql -d tester
psql (9.1.2)
Type "help" for help. tester=# select current_database();
current_database
------------------
tester
(1 row) tester=#
http://www.postgresql.org/docs/7.3/static/functions-misc.html