SELECT version();SELECT now();
​https://www.postgresql.org/docs/current/static/runtime-config-file-locations.html​
SHOW config_file; -- /var/lib/postgresql/data/postgresql.confSHOW data_directory; -- /var/lib/postgresql/dataSHOW hba_file; -- /var/lib/postgresql/data/pg_hba.conf-- host-based authentication-- https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.htmlSHOW ident_file; -- /var/lib/postgresql/data/pg_ident.conf-- user name mapping: SYSTEM-USERNAME PG-USERNAMESHOW external_pid_file;
docker run -p 80:80 \-e "PGADMIN_DEFAULT_EMAIL=user@domain.com" \-e "PGADMIN_DEFAULT_PASSWORD=SuperSecret" \-d dpage/pgadmin4
DB->'Schemas'->'public'->'Tables'->right click table->'View/Edit Data'->'All Rows'
​https://www.postgresql.org/docs/current/static/app-psql.html​
SELECT usename FROM pg_user;CREATE USER fzinfz;\password fzinfzALTER USER fzinfz WITH SUPERUSER;\du-- list user/role
CREATE database tutorial;\c tutorialpsql -U postgres -h localhost -d tutorial