psql select database code example Example 1: use database postgres command \c databasename; Example 2: psql select * from table select * from public.Graeber