Home

psql tips

tl;dr

Connect with psql --user=postgres --host=0.0.0.0 --port=5432.

CommandAction
\c dbname usernameChange to database
\lList available databases
\dtList tables in current database
\d table_nameDescribe table

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/postgresql/psql-tips

Sections


Related