psql connect to another database
snippet in sql

psql connect to another database

user6914

\c DBNAME
\connect DBNAME