$ sudo -i -u postgres
psql
show databases: \l
swith (connect) to db: \c database
show tables: \dt
nice view sql redult: \x on
exit: \q
$ sudo -i -u postgres
psql
show databases: \l
swith (connect) to db: \c database
show tables: \dt
nice view sql redult: \x on
exit: \q