{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8", "published": "2026-10-31T14:31:55Z", "publisher": "PostgresAI", "article": {"title": "Postgres FM | Transcript: Dump/restore done. Now what?", "url": "https://postgres.fm/episodes/dump-restore-done-now-what/transcript", "date_published": "2026-10-23T00:00:00Z", "author": "Nikolay Samokhvalov and Kirk Wolak", "publisher": "Postgres FM"}, "grade": "B", "axes": [{"axis": "Factual", "summary": "B- \u00b7 2 wrong of 25 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "A \u00b7 0 wrong of 25 checked \u00b7 1 caveat"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 25 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "D \u00b7 0 wrong of 11 checked \u00b7 0 caveats \u00b7 transparency: claims sourced, claims dated, interest disclosed missing \u00b7 partly assessed"}, {"axis": "Safe", "summary": "B+ \u00b7 0 wrong of 18 checked \u00b7 0 caveats \u00b7 1 unwarned risk"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F1", "claim": "\u2026it doesn't have that blocking mechanism\u2026", "title": "Parallel pg_restore waits for recorded dependencies", "explanation": "pg_restore schedules an entry only after its recorded dependencies finish. It creates early schema objects through one connection. The four unfinished table creations described in the article do not explain its materialized-view failure. src/bin/pg_dump/pg_backup_archiver.c:4372 and :4719 implement these controls.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_dump/pg_backup_archiver.c#L4719-L4723", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_dump/pg_backup_archiver.c:4719-4723"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_dump/pg_backup_archiver.c#L4372-L4377", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_dump/pg_backup_archiver.c:4372-4377"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_dump/pg_backup_archiver.c#L4901-L4903", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_dump/pg_backup_archiver.c:4901-4903"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_dump/pg_backup_archiver.c#L4738-L4739", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_dump/pg_backup_archiver.c:4738-4739"}]}, {"anchor": "F20", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F20", "claim": "\u2026vacuumdb analyze only and analyze option, they take care of parent tables, yeah, in 19\u2026", "title": "PostgreSQL 19 vacuumdb --analyze still omits partitioned parents", "explanation": "PostgreSQL 19 includes partitioned parents in --analyze-only and --analyze-in-stages. Ordinary --analyze still selects regular tables and materialized views. src/bin/scripts/vacuuming.c:659 documents this distinction. Relying on --analyze alone leaves parent statistics stale.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/scripts/vacuuming.c#L659-L664", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/scripts/vacuuming.c:659-664"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/scripts/vacuumdb.c#L160-L166", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/scripts/vacuumdb.c:160-166"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/scripts/vacuumdb.c#L38-L39", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/scripts/vacuumdb.c:38-39"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F4", "claim": "Hint bits are missing only if you don't create indexes\u2026", "title": "Index creation inside the loading transaction cannot set its commit hint", "explanation": "Index building checks tuple visibility. A tuple inserted by the current transaction remains HEAPTUPLE_INSERT_IN_PROGRESS. A --single-transaction restore therefore cannot establish that transaction's commit hint during index creation. heapam_handler.c:1378 calls the check. heapam_visibility.c:1169 returns before setting HEAP_XMIN_COMMITTED.", "verdict": "Mostly accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/heapam_visibility.c#L1169-L1172", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/heapam_visibility.c:1169-1172"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/heapam_handler.c#L1378-L1379", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/heapam_handler.c:1378-1379"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/heapam_visibility.c#L1197-L1199", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/heapam_visibility.c:1197-1199"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F8", "claim": "\u2026right after your restore is a VACUUM ANALYZE\u2026", "title": "VACUUM ANALYZE prepares restored tables for query planning and visibility checks", "explanation": "VACUUM ANALYZE vacuums and then analyzes each selected table. ANALYZE supplies column statistics. VACUUM establishes visibility information. Database-wide SQL processes tables sequentially, although VACUUM can parallelize index work. The command must run outside the restore transaction. doc/src/sgml/ref/vacuum.sgml:69 and :446 specify these behaviors.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/maintenance.sgml#L280-L286", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/maintenance.sgml:280-286"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuum.sgml#L62-L71", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuum.sgml:62-71"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/catalog/index.c#L2914-L2918", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/catalog/index.c:2914-2918"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuum.sgml#L446-L446", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuum.sgml:446-446"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/vacuumlazy.c#L1966-L1972", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/vacuumlazy.c:1966-1972"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuum.sgml#L82-L86", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuum.sgml:82-86"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F9", "claim": "\u2026index only scan, despite the name, can also inspect heap\u2026", "title": "Index-only scans fetch heap tuples when visibility bits are absent", "explanation": "An index-only scan checks the page's all-visible bit. If that bit is clear, nodeIndexonlyscan.c:165 fetches the heap tuple. The map stores all-visible and all-frozen bits per heap page. plancat.c:1397 derives the planner's visibility fraction from relallvisible.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/executor/nodeIndexonlyscan.c#L165-L174", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/executor/nodeIndexonlyscan.c:165-174"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/storage.sgml#L660-L666", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/storage.sgml:660-666"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/optimizer/util/plancat.c#L1397-L1402", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/optimizer/util/plancat.c:1397-1402"}]}, {"anchor": "F10", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F10", "claim": "\u2026this mechanism in Postgres 18 dumps that number\u2026", "title": "PostgreSQL 18 dumps relallvisible with optimizer statistics", "explanation": "PostgreSQL 18.0 emits relallvisible when dumping statistics. Restoration writes that value into pg_class. The executor still checks the actual visibility map. Restored estimates can therefore favor index-only scans that require heap fetches. PostgreSQL 18 excludes extended statistics data.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/bin/pg_dump/pg_dump.c#L11039-L11040", "label": "REL_18_0 \u00b7 src/bin/pg_dump/pg_dump.c:11039-11040"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/ref/pg_dump.sgml#L1702-L1707", "label": "REL_18_0 \u00b7 doc/src/sgml/ref/pg_dump.sgml:1702-1707"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/statistics/relation_stats.c#L160-L165", "label": "REL_18_0 \u00b7 src/backend/statistics/relation_stats.c:160-165"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/ref/pg_dump.sgml#L1149-L1149", "label": "REL_18_0 \u00b7 doc/src/sgml/ref/pg_dump.sgml:1149-1149"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/executor/nodeIndexonlyscan.c#L161-L170", "label": "REL_18_0 \u00b7 src/backend/executor/nodeIndexonlyscan.c:161-170"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/optimizer/util/plancat.c#L1159-L1164", "label": "REL_18_0 \u00b7 src/backend/optimizer/util/plancat.c:1159-1164"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F11", "claim": "\u2026it just caches the status of those transactions\u2026", "title": "Hint bits cache transaction outcomes in tuple headers", "explanation": "heapam_visibility.c:1197 tests whether xmin committed and sets HEAP_XMIN_COMMITTED. xmax can remain nonzero after an attempted deletion rolls back. WAL protection can propagate hint information through full-page images. bufmgr.c:5752 limits those images to the first relevant page change after a checkpoint.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ddl.sgml#L1511-L1516", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ddl.sgml:1511-1516"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/config.sgml#L3649-L3660", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/config.sgml:3649-3660"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/heapam_visibility.c#L1197-L1199", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/heapam_visibility.c:1197-1199"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/storage/buffer/bufmgr.c#L5752-L5755", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/storage/buffer/bufmgr.c:5752-5755"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/heapam.c#L3124-L3126", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/heapam.c:3124-3126"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/maintenance.sgml#L88-L96", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/maintenance.sgml:88-96"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F12", "claim": "It's not a single transaction.", "title": "pg_restore defaults differ from --single-transaction and --exit-on-error", "explanation": "pg_restore normally continues after SQL errors and reports their count. --single-transaction wraps restoration in BEGIN and COMMIT. It also implies --exit-on-error and excludes multiple jobs. These options do not make VACUUM legal inside the transaction. doc/src/sgml/ref/pg_restore.sgml:191 and :535 document these distinctions.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/pg_restore.sgml#L191-L193", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/pg_restore.sgml:191-193"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/pg_restore.sgml#L535-L541", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/pg_restore.sgml:535-541"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuum.sgml#L446-L446", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuum.sgml:446-446"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F13", "claim": "Then DDL to create tables and everything, but not indexes.", "title": "Normal dumps place table definitions before COPY and indexes afterward", "explanation": "pg_dump places table data in the data section and indexes in post-data. It emits COPY FROM stdin for ordinary table data. The archive writes initial SET commands. Validated CHECK and NOT NULL constraints are exceptions to the general post-data constraint description. pg_dump.c:2900 and pg_backup_archiver.c:3438 generate these statements.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/pg_dump.sgml#L1292-L1298", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/pg_dump.sgml:1292-1298"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_dump/pg_dump.c#L2900-L2904", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_dump/pg_dump.c:2900-2904"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_dump/pg_backup_archiver.c#L3438-L3440", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_dump/pg_backup_archiver.c:3438-3440"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/backup.sgml#L24-L34", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/backup.sgml:24-34"}]}, {"anchor": "F14", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F14", "claim": "There is COPY FREEZE.", "title": "COPY FREEZE can produce frozen rows and set both visibility-map bits", "explanation": "COPY FREEZE creates frozen tuples when its transaction conditions hold. The table must have been created or truncated in the current subtransaction. Open cursors and older snapshots restrict its use. heapam.c:2487 sets both visibility-map bits for eligible pages. This produces the described state without invoking a separate VACUUM command.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/copy.sgml#L264-L269", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/copy.sgml:264-269"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/heapam.c#L2487-L2493", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/heapam.c:2487-2493"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/maintenance.sgml#L443-L447", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/maintenance.sgml:443-447"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F15", "claim": "\u2026autovacuum doesn't take care of root tables in partition\u2026", "title": "Autovacuum does not analyze partition parents", "explanation": "Autovacuum processes partitions but does not analyze their partitioned parents. Manual parent analysis remains necessary. Automatic vacuuming uses a cost delay of 2 milliseconds by default. Its independent scheduling cannot guarantee completion before the first post-restore query. doc/src/sgml/maintenance.sgml:1016 and config.sgml:9674 document these limits.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/maintenance.sgml#L280-L286", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/maintenance.sgml:280-286"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/maintenance.sgml#L1016-L1023", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/maintenance.sgml:1016-1023"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/config.sgml#L9674-L9678", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/config.sgml:9674-9678"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/maintenance.sgml#L371-L377", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/maintenance.sgml:371-377"}]}, {"anchor": "F16", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F16", "claim": "\u2026the -j option allows you to run multiple concurrently\u2026", "title": "vacuumdb -j runs concurrent maintenance commands", "explanation": "vacuumdb -j runs multiple commands through separate connections. --analyze adds analysis to vacuuming. --analyze-only computes statistics without vacuuming. This provides concurrency across tables. It differs from VACUUM's optional parallel index processing. doc/src/sgml/ref/vacuumdb.sgml:229 and :458 describe the modes.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuumdb.sgml#L229-L232", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuumdb.sgml:229-232"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuumdb.sgml#L458-L473", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuumdb.sgml:458-473"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuum.sgml#L82-L86", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuum.sgml:82-86"}]}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F17", "claim": "\u2026by reading at read time, but also visibility maps\u2026", "title": "PostgreSQL 19 can set visibility bits during qualifying primary reads", "explanation": "PostgreSQL 19 enables visibility-map updates during qualifying on-access pruning for read-only relations. pruneheap.c:363 enables HEAP_PAGE_PRUNE_SET_VM. The function returns during recovery at :285. Standby reads therefore do not perform this update. Eligibility checks mean a first read does not guarantee coverage of every page.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/pruneheap.c#L363-L369", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/pruneheap.c:363-369"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/access/heap/pruneheap.c#L285-L286", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/access/heap/pruneheap.c:285-286"}]}, {"anchor": "F18", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F18", "claim": "\u2026Where visibility map is preserved.", "title": "pg_upgrade transfers visibility-map files", "explanation": "pg_upgrade transfers the _vm fork alongside relation files. src/bin/pg_upgrade/relfilenumber.c:531 handles free-space and visibility-map forks. That preserves information absent from an ordinary logical dump. This supports the article's distinction between upgrade statistics transfer and logical restoration.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/bin/pg_upgrade/relfilenumber.c#L531-L534", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/bin/pg_upgrade/relfilenumber.c:531-534"}]}, {"anchor": "F19", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F19", "claim": "\u2026data checksums enabled, which is default if you create cluster recently\u2026", "explanation": "initdb enables data checksums by default in PostgreSQL 18 and 19. doc/src/sgml/ref/initdb.sgml:268 states this in both versions. Checksums help detect I/O corruption that would otherwise remain silent.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/initdb.sgml#L268-L271", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/initdb.sgml:268-271"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/config.sgml#L3339-L3344", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/config.sgml:3339-3344"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/ref/initdb.sgml#L268-L271", "label": "REL_18_0 \u00b7 doc/src/sgml/ref/initdb.sgml:268-271"}]}, {"anchor": "F21", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F21", "claim": "\u2026It happened in Postgres 18\u2026", "title": "PostgreSQL 18 added optional statistics transfer", "explanation": "REL_18_0 documents pg_dump --statistics. doc/src/sgml/release-18.sgml:3146 records the option's introduction. The article names the correct major version.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/release-18.sgml#L3146-L3147", "label": "REL_18_0 \u00b7 doc/src/sgml/release-18.sgml:3146-3147"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/ref/pg_dump.sgml#L1393-L1396", "label": "REL_18_0 \u00b7 doc/src/sgml/ref/pg_dump.sgml:1393-1396"}]}, {"anchor": "F24", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F24", "claim": "Vacuum cannot be included inside a transaction block.", "title": "VACUUM cannot execute inside a transaction block", "explanation": "doc/src/sgml/ref/vacuum.sgml:446 states that VACUUM cannot execute inside a transaction block. The article correctly identifies the constraint on automatic post-restore maintenance.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/vacuum.sgml#L446-L446", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/vacuum.sgml:446-446"}]}, {"anchor": "F25", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F25", "claim": "\u2026a stop on error, option, but it's different\u2026", "explanation": "pg_restore --exit-on-error stops when SQL execution encounters an error. Its default continues and reports an error count. doc/src/sgml/ref/pg_restore.sgml:191 confirms this behavior. Stopping alone does not undo earlier committed work.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/pg_restore.sgml#L535-L541", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/pg_restore.sgml:535-541"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/pg_restore.sgml#L191-L193", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/pg_restore.sgml:191-193"}]}, {"anchor": "F26", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F26", "claim": "There are limitations for COPY FREEZE.", "title": "COPY FREEZE requires creation or truncation in the current subtransaction", "explanation": "COPY FREEZE requires creation or truncation in the current subtransaction. Open cursors and older snapshots impose additional restrictions. doc/src/sgml/ref/copy.sgml:267 documents these conditions and excludes partitioned and foreign tables.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/doc/src/sgml/ref/copy.sgml#L267-L271", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 doc/src/sgml/ref/copy.sgml:267-271"}]}, {"anchor": "F28", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F28", "claim": "\u2026stores two bits for every page\u2026", "title": "The visibility map reserves two bits per heap page", "explanation": "BITS_PER_HEAPBLOCK equals 2 in src/include/access/visibilitymapdefs.h:17. The article gives the correct logical storage density.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/include/access/visibilitymapdefs.h#L17-L17", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/include/access/visibilitymapdefs.h:17-17"}]}, {"anchor": "F29", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F29", "claim": "\u2026we have four-byte transaction IDs\u2026", "title": "Tuple transaction IDs have a four-byte width", "explanation": "src/include/c.h:742 defines TransactionId as uint32. The article correctly gives its width as four bytes.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/include/c.h#L742-L742", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/include/c.h:742-742"}]}, {"anchor": "F30", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F30", "claim": "\u2026Eight kilobyte page\u2026", "title": "The example uses the default 8-KiB heap page", "explanation": "configure.ac:250 defaults blocksize to 8. Line 255 maps that setting to 8192 bytes, or 8 KiB.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/configure.ac#L250-L255", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 configure.ac:250-255"}]}, {"anchor": "F31", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F31", "claim": "\u2026if you have eight gigabytes, okay, it's a million bits\u2026", "title": "Eight GiB contains approximately one million heap pages", "explanation": "Eight GiB contains 1.05 million 8-KiB heap pages (derived: 8 \u00d7 2^30 / 8192). One all-visible flag per page gives approximately one million flags. The complete two-bit map requires approximately 256 KiB before page overhead.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/include/access/visibilitymapdefs.h#L17-L17", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/include/access/visibilitymapdefs.h:17-17"}, {"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/configure.ac#L250-L255", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 configure.ac:250-255"}]}, {"anchor": "F32", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F32", "claim": "\u202610% below the highest number on an ID column, it can estimate\u2026", "title": "Collected statistics support inequality selectivity estimates", "explanation": "src/backend/utils/adt/selfuncs.c:762 calls ineq_histogram_selectivity. PostgreSQL can estimate the inequality described. A 10% distance from the maximum does not promise 10% selectivity.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/4c0e3c1bfcf9d14b1be3f680c0c3be9f6101d861/src/backend/utils/adt/selfuncs.c#L762-L762", "label": "REL_19_STABLE@4c0e3c1bfc \u00b7 src/backend/utils/adt/selfuncs.c:762-762"}]}, {"anchor": "F33", "url": "https://pgtrue.postgres.ai/shared/brief/e0b074b5-b88c-4626-b83b-3a0f7bdf8bd8#F33", "claim": "\u2026100,000 pages, and all of them are visible\u2026", "title": "The restored page-count example yields a 100% estimated visibility fraction", "explanation": "PostgreSQL 18 imports relallvisible into pg_class. tableam.c:757 sets allvisfrac to 1 when relallvisible reaches the current page count. The example's 100,000 visible pages among 100,000 heap pages yields 100% estimated visibility.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/table/tableam.c#L757-L758", "label": "REL_18_6 \u00b7 src/backend/access/table/tableam.c:757-758"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/statistics/relation_stats.c#L173-L174", "label": "REL_18_6 \u00b7 src/backend/statistics/relation_stats.c:173-174"}]}]}