Postgres
Installing postgres
check if server is running
First Steps
Log into the database with sudo -u postgres psql
Log into a remote database with passwordenv variables
or password prompt
Postgres shorts
List all tables \dt
List all users \duS+
See info for table \d tablename
Network access
in /etc/postgresql/14/main/postgresql.conf
add the * so postgres listens on all IPs.
and in /etc/postgresql/14/main/pg_hba.conf
add this line add the permissions that users can access the database from any IP
Find all Users and there rights/roles
This has to go into a Postgres Section
Last updated