how to connect to another database in postgresql code example Example: psql connect to another database \c DBNAME \connect DBNAME