how to print all the elements of a table in psql code example Example: show details of table postgres postgres=# \d tablename;