How to switch databases in psql? July 23, 2022 by Tarik In PostgreSQL, you can use the \connect meta-command of the client tool psql: \connect DBNAME or in short: \c DBNAME