postgresql ubuntu select from table specific databse code example Example: use database postgres command \c databasename;