testdb=# select current_catalog; current_database ------------------ testdb (1 row)