PostgreSQL 13
PostgreSQL connection and authentication errors.
- PostgreSQL 19 upgrade: pg_upgrade --check and breaking changes
Run pg_upgrade --check before upgrading to PostgreSQL 19, then check your 18 server for the release-note changes that hit settings, indexes and names.
PostgreSQL 18.7 → 19.0 (Debian 13 container · PGDG apt) · release notes of 2026-11-19 · 2026-11 - PostgreSQL 18.7 / 17.12 security update — check your version
PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25 fix 52 security flaws (2026-11-12). How to check your version, update without a dump, and the follow-up steps.
PostgreSQL 18.6 (Docker postgres:18.6) · official announcement of 2026-11-12 · 2026-11 - PostgreSQL autovacuum tuning: n_dead_tup, thresholds, per-table
PostgreSQL autovacuum waits for dead tuples above 50 + 20% of the table. Compare n_dead_tup to that, lower it per table, and find long transactions.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Fix PostgreSQL FATAL: sorry, too many clients already
PostgreSQL sorry, too many clients already: all max_connections slots are taken. Use a reserved slot, end idle sessions from pg_stat_activity, add timeouts.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Fix PostgreSQL "Connection refused" on 5432 (listen_addresses)
psql Connection refused: nothing listens on that address and port. Check the server, port and listen_addresses, restart, then open pg_hba.conf.
PostgreSQL 17.11 (Docker postgres:17) · iproute2 6.15 · 2026-10 - Fix PostgreSQL FATAL: role does not exist (psql, Docker)
PostgreSQL FATAL: role "root" does not exist means psql used your OS user name as the role. Pass -U with a real role; in Docker, check POSTGRES_USER.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Which pg_hba.conf line matched? Find it with log_connections
With log_connections on, PostgreSQL 17 logs the pg_hba.conf line number even for successful logins. Failures show line N in DETAIL; reject lines show no number.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Fix PostgreSQL password authentication failed for user
PostgreSQL password authentication failed for user hides five causes. The server log DETAIL line tells a wrong password, missing role, md5 hash or expiry apart.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Fix no pg_hba.conf entry for host "::1" (localhost is IPv6)
no pg_hba.conf entry for host "::1": localhost went over IPv6 but pg_hba.conf only allows 127.0.0.1/32. Add a ::1/128 line or use -h 127.0.0.1.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Fix PostgreSQL FATAL: database does not exist (psql, Docker)
PostgreSQL FATAL: database "appuser" does not exist means psql used the role name as the database. Pass -d with a real database or run createdb.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - Fix PostgreSQL "Peer authentication failed for user" in psql
Peer authentication failed for user: on a socket connection your OS user name differs from the role. Connect as the matching user or use -h 127.0.0.1.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - PostgreSQL 17 memory tuning: shared_buffers and work_mem
Tune PostgreSQL 17 shared_buffers (restart, 25% of RAM to start) and work_mem (per sort/hash node). Measure disk spills with EXPLAIN and temp file logs first.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10 - pg_hba.conf was not reloaded: one bad line keeps the old rules
pg_hba.conf was not reloaded means one bad line made PostgreSQL discard the whole new file. Find it with pg_hba_file_rules, fix it, and reload again.
PostgreSQL 17.11 (Docker postgres:17) · 2026-10