PostgreSQL
PostgreSQL is an open-source RDBMS that uses and extends SQL. It is ACID compliant, scalable and extensible.
Tools & Config
CLI Tools:
psql: interactive SQL shell for connecting to databases, run queries, etc.pg_ctl: Starts & stops the PostgreSQL servercreatedb/dropdb: Create or remove databasescreateuser/dropuser: Create or remove userspg_dump/pg_restore: Backup or restore a database
Data and config files:
$PGDATA: data directory for storing databases, WAL logs, and config files.postgresql.conf: Main server configuration (ports, logging, memory settings)pg_hba.conf: Controls client authentication
Resources
- Postgres for Everything
- PostgreSQL - ArchWiki
- PGlite - Embeddable Postgres
- fergusstrange/embedded-postgres: Run Postgres locally in a Go application