{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb", "published": "2026-10-30T11:12:09Z", "publisher": "PostgresAI", "article": {"title": "Dump/restore done. Now what?", "url": "https://postgres.ai/blog/20261028-dump-restore-now-what", "date_published": "2026-10-28T12:00:00Z", "author": "Nikolay Samokhvalov", "publisher": "postgres.ai"}, "grade": "A", "axes": [{"axis": "Factual", "summary": "A \u00b7 0 wrong of 18 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "A \u00b7 0 wrong of 18 checked \u00b7 0 caveats"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 18 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "A \u00b7 0 wrong of 7 checked \u00b7 0 caveats \u00b7 reproducibility: A (full method and results published) \u00b7 partly assessed"}, {"axis": "Safe", "summary": "A \u00b7 0 wrong of 26 checked \u00b7 0 caveats \u00b7 partly assessed"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F1", "claim": "\u2026run VACUUM ANALYZE before traffic, then check the key query plans to confirm it.", "title": "ANALYZE and VACUUM repair different restore omissions", "explanation": "ANALYZE collects planner statistics. VACUUM sets visibility-map bits. The separate parent ANALYZE covers vacuumdb's parent omission. PostgreSQL 18.6 implements these operations separately.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pg_dump.sgml#L1702-L1708", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/pg_dump.sgml:1702-1708"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeIndexonlyscan.c#L162-L171", "label": "REL_18_6 \u00b7 src/backend/executor/nodeIndexonlyscan.c:162-171"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L2102-L2107", "label": "REL_18_6 \u00b7 src/backend/access/heap/vacuumlazy.c:2102-2107"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/analyze.sgml#L302-L307", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/analyze.sgml:302-307"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/psql-ref.sgml#L2525-L2533", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/psql-ref.sgml:2525-2533"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F3", "claim": "It also carries the source's relallvisible\u2026", "title": "Imported relallvisible does not replace the visibility map", "explanation": "pg_dump.c:11048 exports relallvisible. The planner derives allvisfrac from that catalog value. nodeIndexonlyscan.c:162 checks actual map bits before skipping heap fetches.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L11048-L11052", "label": "REL_18_6 \u00b7 src/bin/pg_dump/pg_dump.c:11048-11052"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeIndexonlyscan.c#L162-L171", "label": "REL_18_6 \u00b7 src/backend/executor/nodeIndexonlyscan.c:162-171"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/util/plancat.c#L1164-L1169", "label": "REL_18_6 \u00b7 src/backend/optimizer/util/plancat.c:1164-1169"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L2854-L2863", "label": "REL_18_6 \u00b7 src/bin/pg_dump/pg_dump.c:2854-2863"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F4", "claim": "\u2026with autovacuum on, CREATE INDEX usually resets it to 0 during pg_restore.", "title": "CREATE INDEX conditionally refreshes relation statistics", "explanation": "index.c:2883 disables the relation-statistics refresh when cluster or table autovacuum is disabled. Otherwise, index.c:2906 counts actual map bits. An empty map supplies zero all-visible pages.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L2883-L2891", "label": "REL_18_6 \u00b7 src/backend/catalog/index.c:2883-2891"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L2901-L2906", "label": "REL_18_6 \u00b7 src/backend/catalog/index.c:2901-2906"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F5", "claim": "heapam_index_build_range_scan calls HeapTupleSatisfiesVacuum\u2026", "title": "Index builds can set committed-row hint bits", "explanation": "heapam_handler.c:1415 calls HeapTupleSatisfiesVacuum during an ordinary index build. heapam_visibility.c:1288 sets HEAP_XMIN_COMMITTED after confirming commit. Uncommitted rows take another branch.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam_handler.c#L1415-L1416", "label": "REL_18_6 \u00b7 src/backend/access/heap/heapam_handler.c:1415-1416"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam_visibility.c#L1288-L1290", "label": "REL_18_6 \u00b7 src/backend/access/heap/heapam_visibility.c:1288-1290"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam_visibility.c#L130-L132", "label": "REL_18_6 \u00b7 src/backend/access/heap/heapam_visibility.c:130-132"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F6", "claim": "\u2026the first hint-bit change after a checkpoint can require a full-page image.", "title": "Hint-bit updates can produce full-page WAL images", "explanation": "bufmgr.c:5493 describes full-page images for the first hint update after a checkpoint. xlog.h:120 enables hint protection for checksums or wal_log_hints.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L5493-L5496", "label": "REL_18_6 \u00b7 src/backend/storage/buffer/bufmgr.c:5493-5496"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/xlog.h#L120-L120", "label": "REL_18_6 \u00b7 src/include/access/xlog.h:120-120"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F9", "claim": "\u2026Since Postgres 13, inserts trigger autovacuum\u2026", "title": "Insert-triggered autovacuum exists at PostgreSQL 13's release floor", "explanation": "autovacuum.c:3098 in REL_13_0 tests inserts against the insert threshold. REL_18_6 retains that trigger. Eligibility does not guarantee an immediately available worker.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L3145-L3147", "label": "REL_18_6 \u00b7 src/backend/postmaster/autovacuum.c:3145-3147"}, {"url": "https://github.com/postgres/postgres/blob/29be9983a64c011eac0b9ee29895cce71e15ea77/src/backend/postmaster/autovacuum.c#L3097-L3100", "label": "REL_13_0 \u00b7 src/backend/postmaster/autovacuum.c:3097-3100"}, {"url": "https://www.postgresql.org/docs/13/release-13.html", "label": "https://www.postgresql.org/docs/13/release-13.html"}]}, {"anchor": "F10", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F10", "claim": "It never builds statistics for partitioned parents, at any level\u2026", "title": "Autovacuum skips partitioned parents", "explanation": "autovacuum.c:2004 accepts ordinary tables and materialized views. It excludes partitioned parents. ANALYZE on a parent samples its partitions and recursively updates their statistics.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L2004-L2006", "label": "REL_18_6 \u00b7 src/backend/postmaster/autovacuum.c:2004-2006"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/analyze.sgml#L302-L307", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/analyze.sgml:302-307"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L362-L369", "label": "REL_18_6 \u00b7 doc/src/sgml/maintenance.sgml:362-369"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F12", "claim": "COPY FREEZE does not run VACUUM.", "title": "COPY FREEZE has the stated eligibility and map behavior", "explanation": "COPY FREEZE marks inserted tuples frozen. PostgreSQL 14.0 and 18.6 set all-visible and all-frozen map bits. copyfrom.c checks same-subtransaction creation or truncation. pg_dump emits ordinary COPY FROM without FREEZE.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/copy.sgml#L233-L238", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/copy.sgml:233-238"}, {"url": "https://github.com/postgres/postgres/blob/86a4dc1e6f29d1992a2afa3fac1a0b0a6e84568c/src/backend/access/heap/heapam.c#L2577-L2580", "label": "REL_14_0 \u00b7 src/backend/access/heap/heapam.c:2577-2580"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L2705-L2708", "label": "REL_18_6 \u00b7 src/backend/access/heap/heapam.c:2705-2708"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L2854-L2863", "label": "REL_18_6 \u00b7 src/bin/pg_dump/pg_dump.c:2854-2863"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfrom.c#L902-L908", "label": "REL_18_6 \u00b7 src/backend/commands/copyfrom.c:902-908"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F13", "claim": "\u2026add --no-truncate to avoid the ACCESS EXCLUSIVE lock of heap truncation.", "title": "Heap truncation takes an ACCESS EXCLUSIVE lock", "explanation": "vacuumlazy.c:3255 requests AccessExclusiveLock before heap truncation. Disabling truncation avoids this lock request.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L3252-L3257", "label": "REL_18_6 \u00b7 src/backend/access/heap/vacuumlazy.c:3252-3257"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L699-L714", "label": "REL_18_6 \u00b7 src/backend/access/heap/vacuumlazy.c:699-714"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F15", "claim": "EXPLAIN ANALYZE executes the statement\u2026", "title": "EXPLAIN ANALYZE executes its statement", "explanation": "explain.sgml:82 says ANALYZE executes the statement and reports actual rows and elapsed time. Comparing estimates and actual rows checks planner estimates.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/explain.sgml#L82-L88", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/explain.sgml:82-88"}]}, {"anchor": "F16", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F16", "claim": "Statistics transfer needs Postgres 18 or later on the new cluster only\u2026", "title": "pg_upgrade preserves map files and transfers most statistics on PostgreSQL 18", "explanation": "pg_upgrade transfers visibility-map files. PostgreSQL 18's pg_dump can export statistics from supported older servers. PostgreSQL 18 omits collected extended statistics. Its post-upgrade ANALYZE advice remains applicable.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgupgrade.sgml#L834-L839", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/pgupgrade.sgml:834-839"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_upgrade/relfilenumber.c#L532-L539", "label": "REL_18_6 \u00b7 src/bin/pg_upgrade/relfilenumber.c:532-539"}, {"url": "https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/bin/pg_dump/pg_dump.c#L11083-L11088", "label": "REL_18_0 \u00b7 src/bin/pg_dump/pg_dump.c:11083-11088"}]}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F17", "claim": "With --link , the old cluster cannot start again once the new one has started.", "title": "Starting a linked upgraded cluster prevents safe reuse of the old cluster", "explanation": "pgupgrade.sgml:926 says the new cluster writes shared files after startup. The old cluster then requires restoration from backup before reuse.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgupgrade.sgml#L926-L929", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/pgupgrade.sgml:926-929"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgupgrade.sgml#L925-L928", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/pgupgrade.sgml:925-928"}]}, {"anchor": "F18", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F18", "claim": "\u2026copies the data files as they are\u2026", "title": "Physical backups preserve database files", "explanation": "pg_basebackup copies the cluster's files. A full physical backup includes planner-statistics catalogs and visibility-map forks. pgBackRest's restore copies repository bytes into PostgreSQL files.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pg_basebackup.sgml#L41-L43", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/pg_basebackup.sgml:41-43"}, {"url": "https://github.com/pgbackrest/pgbackrest/blob/2e1c4f2ba727c45a0a23d4b326905088dc15b1a1/src/command/restore/file.c.inc#L358-L360", "label": "pgbackrest@release/2.60.0 \u00b7 src/command/restore/file.c.inc:358-360"}]}, {"anchor": "F19", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F19", "claim": "\u2026pgcopydb by default runs VACUUM ANALYZE for each copied table\u2026", "title": "pgcopydb documents VACUUM ANALYZE after copying tables", "explanation": "The cited pgcopydb documentation queues copied tables for VACUUM ANALYZE workers. This supports the documented default. We did not verify pgcopydb's implementation or COPY FREEZE behavior.", "verdict": "Accurate", "sources": [{"url": "https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.html", "label": "https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.html"}]}, {"anchor": "F20", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F20", "claim": "\u2026autovacuum is PGC_SIGHUP: reload suffices\u2026", "title": "autovacuum changes apply through configuration reload", "explanation": "guc_tables.c:1542 declares autovacuum as PGC_SIGHUP. Its default is on. Changing this parameter does not require a server restart.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L1542-L1548", "label": "REL_18_6 \u00b7 src/backend/utils/misc/guc_tables.c:1542-1548"}]}, {"anchor": "F22", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F22", "claim": "Postgres 19 reads can also set map bits\u2026", "title": "The cited commit supports read-time visibility-map updates", "explanation": "Commit 378a216187aea1b488ce60ed07dd1ac5c14a9984 sets insertion prune hints to enable visibility-map updates during later reads.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/commit/378a216187aea1b488ce60ed07dd1ac5c14a9984", "label": "https://github.com/postgres/postgres/commit/378a216187aea1b488ce60ed07dd1ac5c14a9984"}]}, {"anchor": "F25", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F25", "claim": "\u2026since Postgres 14, sets the all-visible and all-frozen bits in the visibility map.", "title": "PostgreSQL 14 changed COPY FREEZE visibility-bit handling", "explanation": "PostgreSQL 14 release notes document COPY FREEZE updating page visibility bits. The stated version boundary matches those notes.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/86a4dc1e6f29d1992a2afa3fac1a0b0a6e84568c/doc/src/sgml/release-14.sgml#L894-L897", "label": "REL_14_0 \u00b7 doc/src/sgml/release-14.sgml:894-897"}]}, {"anchor": "F26", "url": "https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F26", "claim": "In 2025, Jian He proposed an opt-in --include-analyze option\u2026", "title": "The 2025 --include-analyze proposal exists", "explanation": "Jian He's January 14, 2025 message proposes --include-analyze for pg_dump, pg_dumpall, and pg_restore.", "verdict": "Accurate", "sources": [{"url": "https://www.postgresql.org/message-id/CACJufxGx_YLLxmnZVMuUApiVYqjKrydvEQqD3qxhwM6e0_8jrQ%40mail.gmail.com", "label": "https://www.postgresql.org/message-id/CACJufxGx_YLLxmnZVMuUApiVYqjKrydvEQqD3qxhwM6e0_8jrQ%40mail.gmail.com"}]}]}