#Enter postgresql
sudo -u <postgresqluser> psql
#Show the current database
\c
#list current tables in the current active database
\d
#list current tables with more details in the current active database
\d+
#Exit postgresql
\q
#Enter postgresql
sudo -u <postgresqluser> psql
#Show the current database
\c
#list current tables in the current active database
\d
#list current tables with more details in the current active database
\d+
#Exit postgresql
\q