
stag-connect-parameters.pl

alias db='stag-connect-parameters.pl -d' psql `db mydb`

Looks up the connection parameters for a logical dbname in the metadata file pointed at by DBSTAG_DBIMAP_FILE
See selectall_xml.pl for more on this mapping
This is either a DBI locator or the logical name of a database in the DBSTAG_DBIMAP_FILE config file