Security Basics
Production PostgreSQL security starts with a threat model: who can reach the network, how credentials are issued, whether SQL injection is possible, and what insiders can read or change. PostgreSQL 18.4 gives strong primitives (SCRAM, SSL, RLS, roles), but defaults are tuned for local dev, not internet-facing cloud.