postgres command line use database code example Example: use database postgres command \c databasename;