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