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