Home / Docs / PostgreSQL 16 (Hardened) / Configuration
/etc/postgresql/16/main/postgresql.conf and pg_hba.conf
Create application roles with your own passwords: CREATE ROLE app LOGIN PASSWORD '...';
sudo -u postgres pg_isready → 'accepting connections' — wire this into your cloud's monitoring agent or an external probe.Replace with the newest image version (monthly rebuild cadence), or `apt upgrade postgresql-16` / `dnf update` in place. Major-version upgrades via pg_upgrade — snapshot first.
pg_dumpall via `sudo -u postgres pg_dumpall > backup.sql`, or stop the service and snapshot the volume.