{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04", "published": "2026-10-21T05:31:25Z", "publisher": "PostgresAI", "article": {"title": "Postgres 19: How Our Advice Has Changed Since We Wrote It | Crunchy Data Blog", "url": "https://www.crunchydata.com/blog/postgres-19-how-our-advice-has-changed-since-we-wrote-it", "date_published": "2026-08-18T00:00:00Z", "author": "Christopher Winslett", "publisher": "Crunchy Data"}, "grade": "B-", "axes": [{"axis": "Factual", "summary": "A \u00b7 0 wrong of 19 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "B+ \u00b7 1 wrong of 13 checked \u00b7 2 caveats"}, {"axis": "Consistent", "summary": "B \u00b7 3 wrong of 19 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "F \u00b7 0 wrong of 8 checked \u00b7 0 caveats \u00b7 reproducibility: F (no source)"}, {"axis": "Safe", "summary": "A \u00b7 0 wrong of 40 checked \u00b7 0 caveats"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F1", "claim": "\u2026updating a toasted row rewrites toast chunks\u2026", "title": "Updates preserve unchanged TOAST values", "explanation": "Updating another column does not rewrite an unchanged external TOAST value. src/backend/access/table/toast_helper.c:91-96 reuses its reference. Only replacing the toasted value requires new chunks. Avoid unnecessary payload rewrites and do not expect scalar-only updates to change compression.", "verdict": "Misleading", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/table/toast_helper.c#L91-L96", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/access/table/toast_helper.c:91-96"}]}, {"anchor": "F2", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F2", "claim": "For day-to-day rotation, prefer concurrent detach:\u2026", "title": "Default partitions prevent concurrent detach", "explanation": "DETACH PARTITION CONCURRENTLY rejects a parent containing any default partition. src/backend/commands/tablecmds.c:21622-21625 raises that error. PostgreSQL 14 documents the same restriction. The article's combined recommendations cannot run together.", "verdict": "Misleading", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/tablecmds.c#L21622-L21625", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/commands/tablecmds.c:21622-21625"}, {"url": "https://github.com/postgres/postgres/blob/6b3806732b7c5df06bdd0ed150e8a07b4ad62315/doc/src/sgml/ref/alter_table.sgml#L1043-L1044", "label": "REL_14_24 \u00b7 doc/src/sgml/ref/alter_table.sgml:1043-1044"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F3", "claim": "Prefer FREEZE for empty staging tables that you load once and then promote.", "title": "COPY FREEZE requires creation or truncation in the same subtransaction", "explanation": "An empty staging table alone does not qualify for COPY FREEZE. src/backend/commands/copyfrom.c:904-908 requires creation or truncation in the current subtransaction. Creating the table under autocommit and loading it afterward fails this check.", "verdict": "Misleading", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/copyfrom.c#L904-L908", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/commands/copyfrom.c:904-908"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F11", "claim": "\u2026ALTER TABLE iot_thermostat DETACH PARTITION iot_thermostat07142022 CONCURRENTLY;\u2026", "title": "Concurrent detach cannot coexist with the recommended default partition", "explanation": "PostgreSQL rejects concurrent detach when the parent contains a default partition. tablecmds.c:21625 raises that error. PostgreSQL 14 documents the same restriction. Following both recommendations makes the rotation command fail.", "verdict": "Misleading", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/tablecmds.c#L21625-L21625", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/commands/tablecmds.c:21625-21625"}, {"url": "https://github.com/postgres/postgres/blob/6b3806732b7c5df06bdd0ed150e8a07b4ad62315/doc/src/sgml/ref/alter_table.sgml#L1043-L1044", "label": "REL_14_24 \u00b7 doc/src/sgml/ref/alter_table.sgml:1043-1044"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F4", "claim": "On a fresh Postgres 19 cluster, LZ4 is what new toasted values get unless you override it\u2026", "title": "LZ4 defaults require compiled LZ4 support", "explanation": "PostgreSQL 19 defaults to LZ4 only when the build includes LZ4 support. src/include/access/toast_compression.h:59-63 selects pglz otherwise. A fresh cluster does not guarantee LZ4 availability.", "verdict": "Mostly accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/include/access/toast_compression.h#L59-L63", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/include/access/toast_compression.h:59-63"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F5", "claim": "\u2026Native MERGE PARTITIONS / SPLIT PARTITION\u2026", "explanation": "REL_19_BETA3 supports MERGE PARTITIONS and SPLIT PARTITION. The pinned PostgreSQL 19 grammar and AlterTableType omit both operations. The article accurately described beta functionality, but these recipes no longer parse on the pinned branch.", "verdict": "Outdated", "sources": [{"url": "https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/parser/gram.y#L2500-L2501", "label": "REL_19_BETA3 \u00b7 src/backend/parser/gram.y:2500-2501"}, {"url": "https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/parser/gram.y#L2514-L2515", "label": "REL_19_BETA3 \u00b7 src/backend/parser/gram.y:2514-2515"}, {"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/include/nodes/parsenodes.h#L2475-L2482", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/include/nodes/parsenodes.h:2475-2482"}, {"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/parser/gram.y#L2395-L2436", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/parser/gram.y:2395-2436"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F6", "claim": "ON_ERROR set_null keeps the row and nulls only the bad field\u2026", "explanation": "ON_ERROR set_null substitutes NULL after a failed input conversion. src/backend/commands/copyfromparse.c:1082-1107 checks whether a constrained domain accepts NULL before setting the field.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/copyfromparse.c#L1082-L1107", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/commands/copyfromparse.c:1082-1107"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F7", "claim": "\u2026COPY TO runs directly on the root relation and pulls rows from all descendants\u2026", "title": "Direct partitioned COPY TO scans child relations", "explanation": "Ordinary COPY TO on a partitioned parent scans its child relations directly. src/backend/commands/copyto.c:1330-1340 opens each child and calls CopyRelationTo. The article's explanation of avoiding the SELECT wrapper matches this path.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/copyto.c#L1330-L1340", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/commands/copyto.c:1330-1340"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F8", "claim": "\u2026JIT is off by default in Postgres 19\u2026", "title": "PostgreSQL 19 defaults jit to off", "explanation": "The PostgreSQL 19 jit setting defaults to false. src/backend/utils/misc/guc_parameters.dat:1444-1449 sets that boot value. Existing configuration can explicitly enable JIT.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/utils/misc/guc_parameters.dat#L1444-L1449", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/backend/utils/misc/guc_parameters.dat:1444-1449"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F9", "claim": "INCLUDE is still how you build a covering index without polluting the sort key.", "explanation": "INCLUDE adds payload columns without adding search-key columns. doc/src/sgml/indices.sgml:1246-1249 states this distinction.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/indices.sgml#L1246-L1249", "label": "REL_19_STABLE@48b43081e5 \u00b7 doc/src/sgml/indices.sgml:1246-1249"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F12", "claim": "Sometimes BRIN won.", "title": "The original benchmark reports a BRIN win", "explanation": "The 2019 benchmark reports BRIN outperforming both the B-tree and parallel sequential scan for one query. The article accurately summarizes that reported outcome.", "verdict": "Accurate", "sources": [{"url": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage", "label": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F13", "claim": "\u2026Jonathan introduced B-tree INCLUDE columns\u2026", "title": "The covering index tutorial attribution matches the original post", "explanation": "Jonathan S. Katz's September 17, 2018 tutorial demonstrates INCLUDE with the visits index. The article correctly attributes that example.", "verdict": "Accurate", "sources": [{"url": "https://www.crunchydata.com/blog/why-covering-indexes-are-incredibly-helpful", "label": "https://www.crunchydata.com/blog/why-covering-indexes-are-incredibly-helpful"}, {"url": "https://www.crunchydata.com/blog/why-covering-indexes-are-incredibly-helpful", "label": "https://www.crunchydata.com/blog/why-covering-indexes-are-incredibly-helpful"}]}, {"anchor": "F14", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F14", "claim": "\u2026ON_ERROR SET_NULL turns invalid values into NULL\u2026", "title": "PostgreSQL 19 adds COPY ON_ERROR SET_NULL", "explanation": "release-19.sgml:1946 confirms that COPY FROM can set invalid input values to NULL. The article correctly assigns this addition to PostgreSQL 19.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/release-19.sgml#L1946-L1946", "label": "REL_19_STABLE@48b43081e5 \u00b7 doc/src/sgml/release-19.sgml:1946-1946"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F15", "claim": "\u2026native REPACK (with CONCURRENTLY ) rewrites tables without a long exclusive lock\u2026", "title": "Concurrent REPACK avoids ACCESS EXCLUSIVE during the main rewrite", "explanation": "repack.sgml:345\u2013347 documents SHARE UPDATE EXCLUSIVE during the main operation. REPACK requests ACCESS EXCLUSIVE for the final file swap. The article's description matches that distinction.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/ref/repack.sgml#L345-L347", "label": "REL_19_STABLE@48b43081e5 \u00b7 doc/src/sgml/ref/repack.sgml:345-347"}]}, {"anchor": "F16", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F16", "claim": "\u2026exclusion constraints when they equality-compare the partition key\u2026", "title": "PostgreSQL 17 supports qualifying partitioned exclusion constraints", "explanation": "release-17.sgml:15671\u201315673 permits exclusion constraints when partition key columns compare for equality. Other columns can use exclusion comparisons. The article correctly states the PostgreSQL 17 requirement.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/doc/src/sgml/release-17.sgml#L15671-L15673", "label": "REL_17_11 \u00b7 doc/src/sgml/release-17.sgml:15671-15673"}]}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F17", "claim": "\u2026four workers chewing through the heap beat a clever index.", "title": "Four parallel workers beat BRIN in the cited monthly query", "explanation": "The original benchmark reports four launched workers. Its parallel scan took 460 ms, versus 967 ms with BRIN. The article accurately describes that comparison.", "verdict": "Accurate", "sources": [{"url": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage", "label": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage"}, {"url": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage", "label": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage"}, {"url": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage", "label": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage"}]}, {"anchor": "F18", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F18", "claim": "\u2026a 32 kB BRIN versus a 214 MB B-tree on the same timestamp column\u2026", "title": "The cited benchmark reports both index sizes correctly", "explanation": "The original benchmark displays 32 kB for scans_created_at_brin_idx and 214 MB for scans_created_at_idx. Both indexes use created_at.", "verdict": "Accurate", "sources": [{"url": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage", "label": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage"}, {"url": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage", "label": "https://www.crunchydata.com/blog/postgresql-brin-indexes-big-data-performance-with-minimal-storage"}]}, {"anchor": "F19", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F19", "claim": "\u2026the 8 kB page\u2026", "title": "The default PostgreSQL page contains 8 KiB", "explanation": "configure.ac:248\u2013255 defaults blocksize to 8 and assigns BLCKSZ=8192. The article uses PostgreSQL\u2019s customary kB notation for 8 KiB.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/configure.ac#L248-L255", "label": "REL_19_STABLE@48b43081e5 \u00b7 configure.ac:248-255"}]}, {"anchor": "F21", "url": "https://pgtrue.postgres.ai/shared/brief/08524eb1-de3d-4f7b-8c4e-74ff683d9e04#F21", "claim": "The default is 128 (about 1 MB of heap per summary).", "title": "A default BRIN range covers 1 MiB of heap", "explanation": "src/include/access/brin.h:40 sets 128 pages per range. Default pages contain 8 KiB. Each range covers 1 MiB of heap (derived: 128 \u00d7 8 KiB).", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/configure.ac#L248-L255", "label": "REL_19_STABLE@48b43081e5 \u00b7 configure.ac:248-255"}, {"url": "https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/include/access/brin.h#L40-L40", "label": "REL_19_STABLE@48b43081e5 \u00b7 src/include/access/brin.h:40-40"}]}]}