how to select a database in psql code example Example: use database postgres command \c databasename;