psql -U postgres -W # Enter Postgres console
\? # View all posgres commands
\l # List all Databases
\dt # View all DB tables
\c DB_name # change Database nam
\d nombre_tabla # Describe table
\h # View all sql commands
\h nombre_de_la_funcion # Check how a sql command is executed
Ctrl + C # Cancel everything in console
SELECT version(); # View installed postgres version
\g # Execute last previous function again
\timing # Initialize time counter to show function execution time
Ctrl + L # Clean screen
\df # List all available functions of current DB
\dv # List all views of actual DB
\du # List all users and roles of actual DB
\i filename # Execute sql commands from a file
\s filename # Save executed commands in a file
\q # Close console