2026-12-04
· 18 min
·
PostgreSQL
Sizing shared_buffers is not about hitting a magic percentage: it is about avoiding the valley between two good regions.
0 comments
2026-12-03
· 16 min
·
PostgreSQL
PostgreSQL's clock sweep algorithm decides what pages to evict from shared buffers, but the machinery matters more than the number.
0 comments
2026-12-02
· 8 min
·
PostgreSQL
session_replication_role = replica disables foreign keys and triggers—useful for replication, dangerous for bulk loads if you forget to validate constraints…
0 comments
2026-12-01
· 8 min
·
PostgreSQL
Load session-specific modules without a restart—but watch the quoting, missing libraries, and upgrade gotchas that can silently lock users out.
0 comments
2026-11-30
· 6 min
·
PostgreSQL
`server_version` and `server_version_num` look simple until you upgrade packages without restarting the server, or put a pooler in front of it.
0 comments
2026-11-29
· 7 min
·
PostgreSQL
`server_encoding` doesn't control the server—it reports each database's encoding, and a cluster can hold multiple different ones.
0 comments
2026-11-28
· 10 min
·
PostgreSQL
PostgreSQL's `serializable_buffers` controls the cache for serializable transaction metadata.
0 comments
2026-11-27
· 8 min
·
PostgreSQL
PostgreSQL 16 added two parameters that intentionally make crashes worse—by writing core files from every dying process instead of just one.
0 comments
2026-11-26
· 7 min
·
PostgreSQL
PostgreSQL divides large tables into 1GB segment files, but the server has no authoritative record of how many segments exist.
0 comments
2026-11-25
· 9 min
·
PostgreSQL
PL/pgSQL functions inherit their caller's search_path, but autovacuum, pg_restore, and logical replication see an empty one—a silent recipe for index…
0 comments