open a database postgresql in commandline code example Example: use database postgres command \c databasename;