Limited beta · What is this?

pgTrue is under active development: reports may contain significant mistakes, inaccuracies, or bugs. Please report anything you find to pgtrue@postgres.ai.

pgTrue is an independent fact-check of technical Postgres articles. Read the questions and answers.

pgTrue fact-check

ElephantSeal ALimited coverage

Dump/restore done. Now what? (opens in new tab)

postgres.ai
Sound as far as we checked.
0
inaccuracy
0
dangerous-recipe
0
misleading
0
imprecise
0
transcription
0
aged
0
withdrawn
18
verified-accurate

Factual A · Applicable A · Consistent A · Transparent A · Safe A

ReportTechnical fact-check, edition 1 pgTrue versionaudited with v1.1.3 Issued EditionPreliminary — under independent review. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: right-of-reply and corrections policy.

InaccuraciesNone in this edition.

Dangerous or recipe bugsNone in this edition.

Misleading / impreciseNone in this edition.

Verified accurate

F1

ANALYZE and VACUUM repair different restore omissions

ACCURATEFactual

Claim ledger

Article says
…run VACUUM ANALYZE before traffic, then check the key query plans to confirm it.
What is true
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.
Charitable reading
The recommendation targets a fresh logical restore before application traffic.

Source

Source · REL_18_6 · doc/src/sgml/ref/pg_dump.sgml:1702-1708When <option>--statistics</option> is specified, <command>pg_dump</command> will include most optimizer statistics in the resulting dump file. This does not include all statistics, such as those created explicitly with <xref linkend="sql-createstatistics"/>, custom statistics added by an extension, or statistics collected by the cumulative statistics system. Therefore, it may still be useful to run <command>ANALYZE</command> after restoring from a dump file to ensure
In the article · section “Dump/restore done. Now what?”

In the article

excerpt · section “Dump/restore done. Now what?” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Dump/restore done. Now what?

For this cause, the fix is complete: run VACUUM ANALYZE before traffic, then check the key query plans to confirm it. Add the maintenance time to the migration window: on a large database it can be long

All sources and excerpts · 5
Evidence When <option>--statistics</option> is specified, <command>pg_dump</command> will include most optimizer statistics in the resulting dump file. This does not include all statistics, such as those created explicitly with <xref linkend="sql-createstatistics"/>, custom statistics added by an extension, or statistics collected by the cumulative statistics system. Therefore, it may still be useful to run <command>ANALYZE</command> after restoring from a dump file to ensure
Evidence if (!VM_ALL_VISIBLE(scandesc->heapRelation, ItemPointerGetBlockNumber(tid), &node->ioss_VMBuffer)) { /* * Rats, we have to visit the heap to check visibility. */ InstrCountTuples2(node, 1); if (!index_fetch_heap(scandesc, node->ioss_TableSlot)) continue; /* no visible tuple, try next index entry */
Evidence PageSetAllVisible(page); MarkBufferDirty(buf); old_vmbits = visibilitymap_set(vacrel->rel, blkno, buf, InvalidXLogRecPtr, vmbuffer, presult.vm_conflict_horizon, flags);
Evidence For partitioned tables, <command>ANALYZE</command> gathers statistics by sampling rows from all partitions. By default, <command>ANALYZE</command> will also recursively collect and update the statistics for each partition. The <literal>ONLY</literal> keyword may be used to disable this. </para>
Evidence <term><literal>\gexec</literal></term> <listitem> <para> Sends the current query buffer to the server, then treats each column of each row of the query's output (if any) as an SQL statement to be executed. For example, to create an index on each column of <structname>my_table</structname>: <programlisting>
F3

Imported relallvisible does not replace the visibility map

ACCURATEFactual

Claim ledger

Article says
It also carries the source's relallvisible…
What is true
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.
Charitable reading
The article distinguishes planner estimates from executor visibility checks.

Source

Source · REL_18_6 · src/bin/pg_dump/pg_dump.c:11048-11052appendPQExpBuffer(out, "\t'relallvisible', '%d'::integer", rsinfo->relallvisible); if (fout->remoteVersion >= 180000) appendPQExpBuffer(out, ",\n\t'relallfrozen', '%d'::integer", rsinfo->relallfrozen);
In the article · section “One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE”

In the article

excerpt · section “One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE

The --statistics option. Postgres 18 can put optimizer statistics in the archive with pg_dump --statistics . With this archive, the query took 6.1 s right after pg_restore, the same as after ANALYZE. The archive carries the column statistics, but not the visibility map. On 18, the archive has the CREATE STATISTICS definitions but not their collected data; from 19, pg_dump --statistics dumps that data too. It also carries the source's relallvisible : here, all 4,098,361 pages, while the new map is empty. So the planner expects no heap fetches, and the scan makes 24,983. I call this a gap, not a bug: the value is correct for pg_upgrade , which keeps the map. In my tests, the imported value stayed only with autovacuum off; with autovacuum on, CREATE INDEX usually resets it to 0 during pg_restore.

All sources and excerpts · 4
Evidence appendPQExpBuffer(out, "\t'relallvisible', '%d'::integer", rsinfo->relallvisible); if (fout->remoteVersion >= 180000) appendPQExpBuffer(out, ",\n\t'relallfrozen', '%d'::integer", rsinfo->relallfrozen);
Evidence if (!VM_ALL_VISIBLE(scandesc->heapRelation, ItemPointerGetBlockNumber(tid), &node->ioss_VMBuffer)) { /* * Rats, we have to visit the heap to check visibility. */ InstrCountTuples2(node, 1); if (!index_fetch_heap(scandesc, node->ioss_TableSlot)) continue; /* no visible tuple, try next index entry */
Evidence if (relallvisible == 0 || curpages <= 0) *allvisfrac = 0; else if ((double) relallvisible >= curpages) *allvisfrac = 1; else *allvisfrac = (double) relallvisible / curpages;
Evidence if (dopt->dump_inserts == 0) { /* Dump/restore using COPY */ dumpFn = dumpTableData_copy; /* must use 2 steps here 'cause fmtId is nonreentrant */ printfPQExpBuffer(copyBuf, "COPY %s ", copyFrom); appendPQExpBuffer(copyBuf, "%s FROM stdin;\n", fmtCopyColumnList(tbinfo, clistBuf)); copyStmt = copyBuf->data;
F4

CREATE INDEX conditionally refreshes relation statistics

ACCURATEFactual

Claim ledger

Article says
…with autovacuum on, CREATE INDEX usually resets it to 0 during pg_restore.
What is true
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.
Charitable reading
We checked the stated autovacuum condition instead of treating the reset as unconditional.

Source

Source · REL_18_6 · src/backend/catalog/index.c:2883-2891if (AutoVacuumingActive()) { StdRdOptions *options = (StdRdOptions *) rel->rd_options; if (options != NULL && !options->autovacuum.enabled) update_stats = false; } else update_stats = false;
In the article · section “One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE”

In the article

excerpt · section “One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE

The --statistics option. Postgres 18 can put optimizer statistics in the archive with pg_dump --statistics . With this archive, the query took 6.1 s right after pg_restore, the same as after ANALYZE. The archive carries the column statistics, but not the visibility map. On 18, the archive has the CREATE STATISTICS definitions but not their collected data; from 19, pg_dump --statistics dumps that data too. It also carries the source's relallvisible : here, all 4,098,361 pages, while the new map is empty. So the planner expects no heap fetches, and the scan makes 24,983. I call this a gap, not a bug: the value is correct for pg_upgrade , which keeps the map. In my tests, the imported value stayed only with autovacuum off; with autovacuum on, CREATE INDEX usually resets it to 0 during pg_restore.

All sources and excerpts · 2
Evidence if (AutoVacuumingActive()) { StdRdOptions *options = (StdRdOptions *) rel->rd_options; if (options != NULL && !options->autovacuum.enabled) update_stats = false; } else update_stats = false;
Evidence if (update_stats) { relpages = RelationGetNumberOfBlocks(rel); if (rel->rd_rel->relkind != RELKIND_INDEX) visibilitymap_count(rel, &relallvisible, &relallfrozen);
F5

Index builds can set committed-row hint bits

ACCURATEFactual

Claim ledger

Article says
heapam_index_build_range_scan calls HeapTupleSatisfiesVacuum…
What is true
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.
Charitable reading
The claim concerns ordinary index builds over already committed restored rows.

Source

Source · REL_18_6 · src/backend/access/heap/heapam_handler.c:1415-1416switch (HeapTupleSatisfiesVacuum(heapTuple, OldestXmin, hscan->rs_cbuf))
In the article · section “Small test: ANALYZE fixes a join, VACUUM fixes a range query”

In the article

excerpt · section “Small test: ANALYZE fixes a join, VACUUM fixes a range query” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Small test: ANALYZE fixes a join, VACUUM fixes a range query

On indexed tables, pg_restore's ordinary CREATE INDEX scans already set most hint bits on committed rows. heapam_index_build_range_scan calls HeapTupleSatisfiesVacuum , which sets those bits. This does not apply to rows still uncommitted under pg_restore --single-transaction , or to tables without indexes. It does not build the visibility map. Postgres 19 additionally lets eligible reads set visibility-map bits through on-access pruning ( commit 378a216187a ).

All sources and excerpts · 3
Evidence switch (HeapTupleSatisfiesVacuum(heapTuple, OldestXmin, hscan->rs_cbuf))
Evidence else if (TransactionIdDidCommit(HeapTupleHeaderGetRawXmin(tuple))) SetHintBits(tuple, buffer, HEAP_XMIN_COMMITTED, HeapTupleHeaderGetRawXmin(tuple));
Evidence tuple->t_infomask |= infomask; MarkBufferDirtyHint(buffer, true); }
F6

Hint-bit updates can produce full-page WAL images

ACCURATEFactual

Claim ledger

Article says
…the first hint-bit change after a checkpoint can require a full-page image.
What is true
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.
Charitable reading
The article says can require an image. It also states full_page_writes is enabled in its tests.

Source

Source · REL_18_6 · src/backend/storage/buffer/bufmgr.c:5493-5496* If we need to protect hint bit updates from torn writes, WAL-log a * full page image of the page. This full page image is only necessary * if the hint bit update is the first change to the page since the * last checkpoint.
In the article · section “Small test: ANALYZE fixes a join, VACUUM fixes a range query”

In the article

excerpt · section “Small test: ANALYZE fixes a join, VACUUM fixes a range query” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Small test: ANALYZE fixes a join, VACUUM fixes a range query

The small test also showed that a SELECT can write. On a table with no index, the first count(*) after a checkpoint dirtied 3,449 blocks and wrote 26.9 MiB of WAL, for a 27 MiB table. These are hint bits. This first-read work exists across Postgres 14–19, not just 19: reads set missing hint bits on committed rows and dirty heap pages. With data checksums or wal_log_hints enabled, the first hint-bit change after a checkpoint can require a full-page image. See MarkBufferDirtyHint and XLogSaveBufferForHint ; the experiments used full_page_writes = on .

All sources and excerpts · 2
Evidence * If we need to protect hint bit updates from torn writes, WAL-log a * full page image of the page. This full page image is only necessary * if the hint bit update is the first change to the page since the * last checkpoint.
Evidence#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints)
F9

Insert-triggered autovacuum exists at PostgreSQL 13's release floor

ACCURATEFactual

Claim ledger

Article says
…Since Postgres 13, inserts trigger autovacuum…
What is true
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.
Charitable reading
The surrounding text explicitly mentions thresholds and worker availability.

Source

Source · REL_18_6 · src/backend/postmaster/autovacuum.c:3145-3147*dovacuum = force_vacuum || (vactuples > vacthresh) || (vac_ins_base_thresh >= 0 && instuples > vacinsthresh); *doanalyze = (anltuples > anlthresh);
In the article · section “Autovacuum can take minutes and never analyzes partitioned parents”

In the article

excerpt · section “Autovacuum can take minutes and never analyzes partitioned parents” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Autovacuum can take minutes and never analyzes partitioned parents

Since Postgres 13, inserts trigger autovacuum ( Laurenz Albe and Darafei Praliaskouski ). My tables loaded from the dump crossed the insert threshold immediately. On an idle cluster, stock autovacuum processed my small tables 6 to 67 s after pg_restore. In a separate 1,820 MiB database test, with earlier test databases occupying the workers, the main table (about 1,350 MiB of heap) waited about 286 s for a worker; its vacuum took 96 s and finished about 382 s after pg_restore exited. These three timings are approximate; the experiment-code section explains why. Two smaller tables were done before pg_restore exited.

All sources and excerpts · 3
Evidence *dovacuum = force_vacuum || (vactuples > vacthresh) || (vac_ins_base_thresh >= 0 && instuples > vacinsthresh); *doanalyze = (anltuples > anlthresh);
Evidence /* Determine if this table needs vacuum or analyze. */ *dovacuum = force_vacuum || (vactuples > vacthresh) || (vac_ins_base_thresh >= 0 && instuples > vacinsthresh); *doanalyze = (anltuples > anlthresh);
EvidenceAllow inserts, not only updates and deletes, to trigger vacuuming activity in autovacuum (Laurenz Albe, Darafei Praliaskouski)
F10

Autovacuum skips partitioned parents

ACCURATEFactual

Claim ledger

Article says
It never builds statistics for partitioned parents, at any level…
What is true
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.
Charitable reading
The claim concerns partitioned parents. Ordinary inheritance parents follow different rules.

Source

Source · REL_18_6 · src/backend/postmaster/autovacuum.c:2004-2006if (classForm->relkind != RELKIND_RELATION && classForm->relkind != RELKIND_MATVIEW) continue;
In the article · section “Autovacuum can take minutes and never analyzes partitioned parents”

In the article

excerpt · section “Autovacuum can take minutes and never analyzes partitioned parents” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Autovacuum can take minutes and never analyzes partitioned parents

Autovacuum vacuums and analyzes each leaf partition when it reaches its thresholds: this builds their statistics and visibility maps. It never builds statistics for partitioned parents, at any level, and queries on a parent need them. In my test, autovacuum analyzed all 8 partitions within 15 s, and the parent had no statistics after 480 s. The parent's query used 403,072 buffers before a manual ANALYZE and 4,400 after.

All sources and excerpts · 3
Evidence if (classForm->relkind != RELKIND_RELATION && classForm->relkind != RELKIND_MATVIEW) continue;
Evidence For partitioned tables, <command>ANALYZE</command> gathers statistics by sampling rows from all partitions. By default, <command>ANALYZE</command> will also recursively collect and update the statistics for each partition. The <literal>ONLY</literal> keyword may be used to disable this. </para>
Evidence The autovacuum daemon does not issue <command>ANALYZE</command> commands for partitioned tables. Inheritance parents will only be analyzed if the parent itself is changed - changes to child tables do not trigger autoanalyze on the parent table. If your queries require statistics on parent tables for proper planning, it is necessary to periodically run a manual <command>ANALYZE</command> on those tables to keep the statistics up to date. </para>
F12

COPY FREEZE has the stated eligibility and map behavior

ACCURATEFactual

Claim ledger

Article says
COPY FREEZE does not run VACUUM.
What is true
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.
Charitable reading
The article also requires no older snapshots or open cursors. It does not claim COPY FREEZE gathers planner statistics.

Source

Source · REL_18_6 · doc/src/sgml/ref/copy.sgml:233-238Requests copying the data with rows already frozen, just as they would be after running the <command>VACUUM FREEZE</command> command. This is intended as a performance option for initial data loading. Rows will be frozen only if the table being loaded has been created or truncated in the current subtransaction, there are no cursors open and there are no older snapshots held by this transaction. It is
In the article · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM”

In the article

excerpt · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM

According to its documentation (0.18 development docs, read 2026-10-23; I did not test pgcopydb), pgcopydb by default runs VACUUM ANALYZE for each copied table and loads with COPY FREEZE where it is eligible (not when several workers copy one table). COPY FREEZE does not run VACUUM. It writes the rows already frozen and, since Postgres 14, sets the all-visible and all-frozen bits in the visibility map. It works only if the table was created or truncated in the current subtransaction, with no open cursors or older snapshots in that transaction; it cannot target a partitioned parent or a foreign table, and it does not collect statistics. pg_restore does not use it.

All sources and excerpts · 5
Evidence Requests copying the data with rows already frozen, just as they would be after running the <command>VACUUM FREEZE</command> command. This is intended as a performance option for initial data loading. Rows will be frozen only if the table being loaded has been created or truncated in the current subtransaction, there are no cursors open and there are no older snapshots held by this transaction. It is
Evidence visibilitymap_set(relation, BufferGetBlockNumber(buffer), buffer, InvalidXLogRecPtr, vmbuffer, InvalidTransactionId, VISIBILITYMAP_ALL_VISIBLE | VISIBILITYMAP_ALL_FROZEN);
Evidence visibilitymap_set(relation, BufferGetBlockNumber(buffer), buffer, InvalidXLogRecPtr, vmbuffer, InvalidTransactionId, VISIBILITYMAP_ALL_VISIBLE | VISIBILITYMAP_ALL_FROZEN);
Evidence if (dopt->dump_inserts == 0) { /* Dump/restore using COPY */ dumpFn = dumpTableData_copy; /* must use 2 steps here 'cause fmtId is nonreentrant */ printfPQExpBuffer(copyBuf, "COPY %s ", copyFrom); appendPQExpBuffer(copyBuf, "%s FROM stdin;\n", fmtCopyColumnList(tbinfo, clistBuf)); copyStmt = copyBuf->data;
Evidence if (cstate->rel->rd_createSubid != GetCurrentSubTransactionId() && cstate->rel->rd_newRelfilelocatorSubid != GetCurrentSubTransactionId()) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), errmsg("cannot perform COPY FREEZE because the table was not created or truncated in the current subtransaction"))); ti_options |= TABLE_INSERT_FROZEN;
F13

Heap truncation takes an ACCESS EXCLUSIVE lock

ACCURATEFactual

Claim ledger

Article says
…add --no-truncate to avoid the ACCESS EXCLUSIVE lock of heap truncation.
What is true
vacuumlazy.c:3255 requests AccessExclusiveLock before heap truncation. Disabling truncation avoids this lock request.
Charitable reading
The advice concerns truncation during ordinary VACUUM on a database serving traffic.

Source

Source · REL_18_6 · src/backend/access/heap/vacuumlazy.c:3252-3257lock_retry = 0; while (true) { if (ConditionalLockRelation(vacrel->rel, AccessExclusiveLock)) break;
In the article · section “Recommendations for Postgres 19 and older”

In the article

excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Recommendations for Postgres 19 and older

Add --freeze if you choose to freeze now. Choose a --jobs value that the host can support. Parallel workers can increase I/O and WAL generation. Physical standbys and the WAL archive receive this WAL. On a database already serving traffic, add --no-truncate to avoid the ACCESS EXCLUSIVE lock of heap truncation. ANALYZE on a parent also samples its partitions. Select parents whose partitions received data and whose statistics your queries need.

All sources and excerpts · 2
Evidence lock_retry = 0; while (true) { if (ConditionalLockRelation(vacrel->rel, AccessExclusiveLock)) break;
Evidence * The truncate param allows user to avoid attempting relation truncation, * though it can't force truncation to happen. */ Assert(params->index_cleanup != VACOPTVALUE_UNSPECIFIED); Assert(params->truncate != VACOPTVALUE_UNSPECIFIED && params->truncate != VACOPTVALUE_AUTO); /* * While VacuumFailSafeActive is reset to false before calling this, we * still need to reset it here due to recursive calls. */ VacuumFailsafeActive = false; vacrel->consider_bypass_optimization = true; vacrel->do_index_vacuuming = true; vacrel->do_index_cleanup = true; vacrel->do_rel_truncate = (params->truncate != VACOPTVALUE_DISABLED);
F15

EXPLAIN ANALYZE executes its statement

ACCURATEFactual

Claim ledger

Article says
EXPLAIN ANALYZE executes the statement…
What is true
explain.sgml:82 says ANALYZE executes the statement and reports actual rows and elapsed time. Comparing estimates and actual rows checks planner estimates.
Charitable reading
The article restricts readiness checks to read-only SELECT statements.

Source

Source · REL_18_6 · doc/src/sgml/ref/explain.sgml:82-88 The <literal>ANALYZE</literal> option causes the statement to be actually executed, not only planned. Then actual run time statistics are added to the display, including the total elapsed time expended within each plan node (in milliseconds) and the total number of rows it actually returned. This is useful for seeing whether the planner's estimates are close to reality. </para>
In the article · section “Recommendations for Postgres 19 and older”

In the article

excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Recommendations for Postgres 19 and older

Before cutover, run key read-only SELECTs with EXPLAIN (ANALYZE, BUFFERS) on the database loaded from the dump. EXPLAIN ANALYZE executes the statement, so do not use it on writes. Compare estimated and actual row counts. Check Heap Fetches on Index Only Scan nodes.

All sources and excerpts · 1
Evidence The <literal>ANALYZE</literal> option causes the statement to be actually executed, not only planned. Then actual run time statistics are added to the display, including the total elapsed time expended within each plan node (in milliseconds) and the total number of rows it actually returned. This is useful for seeing whether the planner's estimates are close to reality. </para>
F16

pg_upgrade preserves map files and transfers most statistics on PostgreSQL 18

ACCURATEFactual

Claim ledger

Article says
Statistics transfer needs Postgres 18 or later on the new cluster only…
What is true
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.
Charitable reading
We checked the transport mechanism. We did not reproduce the author's two upgrades.

Source

Source · REL_18_6 · doc/src/sgml/ref/pgupgrade.sgml:834-839Unless the <option>--no-statistics</option> option is specified, <command>pg_upgrade</command> will transfer most optimizer statistics from the old cluster to the new cluster. This does not transfer all statistics, such as those created explicitly with <xref linkend="sql-createstatistics"/>, custom statistics added by an extension, or statistics collected by the cumulative statistics system.
In the article · section “Recommendations for Postgres 19 and older”

In the article

excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Recommendations for Postgres 19 and older

If an in-place upgrade is possible, consider pg_upgrade . My two 17.11 to 18.6 upgrades with --link preserved column statistics and the visibility map. The queries retained their plans. Statistics transfer needs Postgres 18 or later on the new cluster only; the old cluster can be older, even 14 ( PG18 preserves planner statistics on upgrade, even from PG14 ). Postgres 18 does not transfer extended statistics (19 does), so on 18 follow the post-upgrade ANALYZE instructions. With --link , the old cluster cannot start again once the new one has started. --clone or copy mode keeps a usable copy of the old cluster.

All sources and excerpts · 3
Evidence Unless the <option>--no-statistics</option> option is specified, <command>pg_upgrade</command> will transfer most optimizer statistics from the old cluster to the new cluster. This does not transfer all statistics, such as those created explicitly with <xref linkend="sql-createstatistics"/>, custom statistics added by an extension, or statistics collected by the cumulative statistics system.
Evidence /* transfer primary file */ transfer_relfile(&maps[mapnum], "", vm_must_add_frozenbit); /* * Copy/link any fsm and vm files, if they exist */ transfer_relfile(&maps[mapnum], "_fsm", vm_must_add_frozenbit); transfer_relfile(&maps[mapnum], "_vm", vm_must_add_frozenbit);
Evidence appendPQExpBufferStr(out, "SELECT * FROM pg_catalog.pg_restore_attribute_stats(\n"); appendPQExpBuffer(out, "\t'version', '%d'::integer,\n", fout->remoteVersion); appendPQExpBufferStr(out, "\t'schemaname', "); appendStringLiteralAH(out, rsinfo->dobj.namespace->dobj.name, fout); appendPQExpBufferStr(out, ",\n\t'relname', ");
F17

Starting a linked upgraded cluster prevents safe reuse of the old cluster

ACCURATEFactual

Claim ledger

Article says
With --link , the old cluster cannot start again once the new one has started.
What is true
pgupgrade.sgml:926 says the new cluster writes shared files after startup. The old cluster then requires restoration from backup before reuse.
Charitable reading
The article describes whether reuse is safe.

Source

Source · REL_18_6 · doc/src/sgml/ref/pgupgrade.sgml:926-929 If you did start the new cluster, it has written to shared files and it is unsafe to use the old cluster. The old cluster will need to be restored from backup in this case. </para>
In the article · section “Recommendations for Postgres 19 and older”

In the article

excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Recommendations for Postgres 19 and older

If an in-place upgrade is possible, consider pg_upgrade . My two 17.11 to 18.6 upgrades with --link preserved column statistics and the visibility map. The queries retained their plans. Statistics transfer needs Postgres 18 or later on the new cluster only; the old cluster can be older, even 14 ( PG18 preserves planner statistics on upgrade, even from PG14 ). Postgres 18 does not transfer extended statistics (19 does), so on 18 follow the post-upgrade ANALYZE instructions. With --link , the old cluster cannot start again once the new one has started. --clone or copy mode keeps a usable copy of the old cluster.

All sources and excerpts · 2
Evidence If you did start the new cluster, it has written to shared files and it is unsafe to use the old cluster. The old cluster will need to be restored from backup in this case. </para>
Evidence <para> If you did start the new cluster, it has written to shared files and it is unsafe to use the old cluster. The old cluster will need to be restored from backup in this case.
F18

Physical backups preserve database files

ACCURATEFactual

Claim ledger

Article says
…copies the data files as they are…
What is true
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.
Charitable reading
This checks physical file preservation. It does not guarantee the source statistics were current.

Source

Source · REL_18_6 · doc/src/sgml/ref/pg_basebackup.sgml:41-43<application>pg_basebackup</application> can take a full or incremental base backup of the database. When used to take a full backup, it makes an exact copy of the database cluster's files. When used to take an incremental
In the article · section “Dump/restore done. Now what?”

In the article

excerpt · section “Dump/restore done. Now what?” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Dump/restore done. Now what?

Is the database ready for queries? Not yet. This post is about logical dump/restore with pg_dump and pg_restore . A physical restore, from pg_basebackup , WAL-G or pgBackRest, copies the data files as they are, so the statistics and the visibility map arrive with them. By default, a restore from a logical dump copies the rows but not the column statistics; on Postgres 18 and later, pg_dump --statistics can carry them. The visibility map is never copied: on the new server it starts empty. ANALYZE supplies missing planner statistics; --statistics can supply them from Postgres 18. VACUUM builds the visibility map. Postgres 19 reads can also set map bits, but that work then delays the first queries.

All sources and excerpts · 2
Evidence <application>pg_basebackup</application> can take a full or incremental base backup of the database. When used to take a full backup, it makes an exact copy of the database cluster's files. When used to take an incremental
Evidence ioWriteOpen(storageWriteIo(pgFileWrite)); ioCopyP(storageReadMultiIo(repoFileRead), storageWriteIo(pgFileWrite), .limit = file->limit); ioWriteClose(storageWriteIo(pgFileWrite));
F19

pgcopydb documents VACUUM ANALYZE after copying tables

ACCURATEFactual

Claim ledger

Article says
…pgcopydb by default runs VACUUM ANALYZE for each copied table…
What is true
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.
Charitable reading
The article attributes this statement to documentation and disclaims testing pgcopydb.

Source

Source · https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.htmlAs many as --table-jobs VACUUM ANALYZE sub-processes are started to share the workload. As soon as a table data COPY has completed, the table is queued for processing by the VACUUM ANALYZE sub-processes.
In the article · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM”

In the article

excerpt · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM

According to its documentation (0.18 development docs, read 2026-10-23; I did not test pgcopydb), pgcopydb by default runs VACUUM ANALYZE for each copied table and loads with COPY FREEZE where it is eligible (not when several workers copy one table). COPY FREEZE does not run VACUUM. It writes the rows already frozen and, since Postgres 14, sets the all-visible and all-frozen bits in the visibility map. It works only if the table was created or truncated in the current subtransaction, with no open cursors or older snapshots in that transaction; it cannot target a partitioned parent or a foreign table, and it does not collect statistics. pg_restore does not use it.

All sources and excerpts · 1
EvidenceAs many as --table-jobs VACUUM ANALYZE sub-processes are started to share the workload. As soon as a table data COPY has completed, the table is queued for processing by the VACUUM ANALYZE sub-processes.
F20

autovacuum changes apply through configuration reload

ACCURATEFactual

Claim ledger

Article says
…autovacuum is PGC_SIGHUP: reload suffices…
What is true
guc_tables.c:1542 declares autovacuum as PGC_SIGHUP. Its default is on. Changing this parameter does not require a server restart.
Charitable reading
The comment concerns the cluster-level autovacuum setting.

Source

Source · REL_18_6 · src/backend/utils/misc/guc_tables.c:1542-1548{"autovacuum", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Starts the autovacuum subprocess."), NULL }, &autovacuum_start_daemon, true, NULL, NULL, NULL
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…autovacuum is PGC_SIGHUP: reload suffices…
All sources and excerpts · 1
Evidence {"autovacuum", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Starts the autovacuum subprocess."), NULL }, &autovacuum_start_daemon, true, NULL, NULL, NULL
F22

The cited commit supports read-time visibility-map updates

ACCURATEFactual

Claim ledger

Article says
Postgres 19 reads can also set map bits…
What is true
Commit 378a216187aea1b488ce60ed07dd1ac5c14a9984 sets insertion prune hints to enable visibility-map updates during later reads.
Charitable reading
The article says eligible reads can update the map, not that every read does.

Source

Source · https://github.com/postgres/postgres/commit/378a216187aea1b488ce60ed07dd1ac5c14a9984Now that on-access pruning can update the visibility map (VM) during read-only queries, set the page’s pd_prune_xid hint during INSERT and on the new page during UPDATE.
In the article · section “Dump/restore done. Now what?”

In the article

excerpt · section “Dump/restore done. Now what?” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Dump/restore done. Now what?

Is the database ready for queries? Not yet. This post is about logical dump/restore with pg_dump and pg_restore . A physical restore, from pg_basebackup , WAL-G or pgBackRest, copies the data files as they are, so the statistics and the visibility map arrive with them. By default, a restore from a logical dump copies the rows but not the column statistics; on Postgres 18 and later, pg_dump --statistics can carry them. The visibility map is never copied: on the new server it starts empty. ANALYZE supplies missing planner statistics; --statistics can supply them from Postgres 18. VACUUM builds the visibility map. Postgres 19 reads can also set map bits, but that work then delays the first queries.

All sources and excerpts · 1
EvidenceNow that on-access pruning can update the visibility map (VM) during read-only queries, set the page’s pd_prune_xid hint during INSERT and on the new page during UPDATE.
How the review tested this

Review: The pinned commit supports the described capability. It does not verify the displayed timings or WAL volumes.

F25

PostgreSQL 14 changed COPY FREEZE visibility-bit handling

ACCURATEFactual

Claim ledger

Article says
…since Postgres 14, sets the all-visible and all-frozen bits in the visibility map.
What is true
PostgreSQL 14 release notes document COPY FREEZE updating page visibility bits. The stated version boundary matches those notes.
Charitable reading
The article applies this statement to eligible COPY FREEZE operations.

Source

Source · REL_14_0 · doc/src/sgml/release-14.sgml:894-897 Have <link linkend="sql-copy"><command>COPY FREEZE</command></link> appropriately update page visibility bits (Anastasia Lubennikova, Pavan Deolasee, Jeff Janes) </para>
In the article · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM”

In the article

excerpt · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM

According to its documentation (0.18 development docs, read 2026-10-23; I did not test pgcopydb), pgcopydb by default runs VACUUM ANALYZE for each copied table and loads with COPY FREEZE where it is eligible (not when several workers copy one table). COPY FREEZE does not run VACUUM. It writes the rows already frozen and, since Postgres 14, sets the all-visible and all-frozen bits in the visibility map. It works only if the table was created or truncated in the current subtransaction, with no open cursors or older snapshots in that transaction; it cannot target a partitioned parent or a foreign table, and it does not collect statistics. pg_restore does not use it.

All sources and excerpts · 1
Evidence Have <link linkend="sql-copy"><command>COPY FREEZE</command></link> appropriately update page visibility bits (Anastasia Lubennikova, Pavan Deolasee, Jeff Janes) </para>
How the review tested this

Review: Checked the PostgreSQL 14.0 release boundary. This check does not establish pgcopydb behavior.

F26

The 2025 --include-analyze proposal exists

ACCURATEFactual

Claim ledger

Article says
In 2025, Jian He proposed an opt-in --include-analyze option…
What is true
Jian He's January 14, 2025 message proposes --include-analyze for pg_dump, pg_dumpall, and pg_restore.
Charitable reading
The article describes a proposal, not a released option.

Source

Source · https://www.postgresql.org/message-id/CACJufxGx_YLLxmnZVMuUApiVYqjKrydvEQqD3qxhwM6e0_8jrQ%40mail.gmail.comSubject: Support --include-analyze in pg_dump, pg_dumpall, pg_restore Date: 2025-01-14 12:54:02
In the article · section “Ideas for Postgres development”

In the article

excerpt · section “Ideas for Postgres development” · as fetched 2026-10-30 · open in article ↗ (opens in new tab)

Ideas for Postgres development

Hackers have discussed this since 2002 . Since then, autovacuum and, in 18, statistics transport each addressed a part of it. In 2025, Jian He proposed an opt-in --include-analyze option and credited Andrey Borodin, Kirk Wolak and me ( thread ). As of 2026-10-23 it is not committed, and I found no CommitFest entry for it. My suggestions:

All sources and excerpts · 1
EvidenceSubject: Support --include-analyze in pg_dump, pg_dumpall, pg_restore Date: 2025-01-14 12:54:02
How the review tested this

Review: The January 14, 2025 message confirms the proposal. This check does not establish its later disposition.

Notes

1 not graded: findings no reader would act on differently
F27

The script comment estimates 28 GiB where the prose reports 31 GiB

NOTE

Claim ledger

Article says
…250M rows, ~28 GiB heap…
What is true
The script comment estimates a 28 GiB heap for 250 million events. The main text reports 31 GiB for that fixture. This disagreement does not change the fixture's row count or the maintenance recommendation.
Charitable reading
The script comment gives an approximate size. Both passages describe the default 250-million-row events fixture.

Not graded: knowing this would not change what a reader does.

Checked for internal consistency: the evidence is the article itself.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…250M rows, ~28 GiB heap…
How the review tested this

Review: The disagreement affects a script comment. The main text consistently reports the 31 GiB heap.

More in this report

Section checks · 12 sections

Section checks

AspectGradeFindingsCoverage
IntroductionA1 verified-accurate90% of claims (9 of 10, plus 2 that need data we do not have)
SummaryA1 verified-accurate100% of claims (3 of 3, plus 2 that need data we do not have)
Statistics transportA2 verified-accurate83% of claims (5 of 6, plus 8 that need data we do not have)
Postgres 19 readsA1 verified-accurate80% of claims (4 of 5, plus 15 that need data we do not have)
Small test and hint bitsA2 verified-accurate75% of claims (9 of 12, plus 12 that need data we do not have)
Autovacuum and partitionsA2 verified-accurate90% of claims (9 of 10, plus 10 that need data we do not have)
Guides and COPY FREEZEA3 verified-accurate92% of claims (12 of 13, plus 1 that need data we do not have)
RecommendationsA2 verified-accurate93% of claims (31 of 33, plus 2 that need data we do not have)
Upgrade alternativeA2 verified-accurate85% of claims (6 of 7, plus 3 that need data we do not have)
Development ideasA1 verified-accurate100% of claims (2 of 2, plus 1 that need data we do not have)
Autovacuum scriptsA1 verified-accurate100% of claims (1 of 1, plus 1 that need data we do not have)
Large-test scriptAnone85% of claims (6 of 7, plus 4 that need data we do not have)
Coverage and assessment · Checked 238 of 257 Postgres claims across 29 sections; 1 section below half

A — the findings address the article's main subject. What we did not check is listed below. The findings directly check ANALYZE, VACUUM, statistics transport, and partition maintenance after logical restore.

We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.

We held back some findings this audit's coverage rested on, because we could not stand behind their sources. The letter rests on the findings that remain.

What we did not check

  • We did not reproduce the timings, query plans, WAL volumes, or autovacuum waits.
  • We did not execute the reproduction scripts or validate all dependencies, permissions, setup steps, and runtime effects.
  • We did not inspect the chart images or original EXPLAIN and server-log files.
  • We did not verify pgcopydb's COPY FREEZE behavior or WAL-G's implementation.
  • We did not verify the master build at ddd468cacf0d5d6f124c39439505ab93d31ac65b.
  • We did not reproduce the measurements the article displays.
  • We did not verify the recorded packages, development build, or host configuration against installation logs.
  • We did not check runtime behavior, permissions, dependencies, or cleanup for the 15 experiment scripts.
  • We did not check 22 of the 28 documentation pages in the survey.
  • We did not establish the complete development and CommitFest history of --include-analyze.
  • We did not check changes after PostgreSQL 19rc1.
  • We did not verify the pgcopydb COPY FREEZE claim from the retrieved clone documentation.
  • We did not reproduce the article's query timings, WAL volumes, buffer counts, or maintenance results.
  • We did not verify the reported medians against individual run records or the figures' plotted points.
  • We checked the documentation table's totals, but did not verify all 28 pages' recommendation classifications.
  • We did not execute the recipes or verify their dependencies, permissions, setup, embedded SQL, or runtime effects.
  • We did not finish checking whether the benchmark names its versions.
  • We did not finish checking whether the benchmark describes its data.
  • We did not finish checking whether the benchmark publishes its raw results.
  • Transparent: we did not complete every applicable check.
  • Safe: we did not complete every applicable check.
  • Section “Reproduction and limits”: we checked 4 of 47 checkable claims.
  • We could not decide whether the article discloses the vendor's interest.
  • We could not decide whether the published benchmark details are complete.
  • We hold no source mapping for “postgres-ai/docs”, so we did not check the article's claims about its code.

Script checks

  • We checked 2 SQL blocks with PostgreSQL 18 grammar and 17 shell blocks for syntax.
  • We did not execute any scripts or check dependencies, setup, permissions, embedded SQL, function bodies, inline snippets, or run-time effects.
Checked 238 of 257 Postgres claims across 29 sections; 1 section below half
  • Introduction: 9 of 10 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 duplicate, 5 not a claim; not checked: 1 for other reasons
  • Summary: 3 of 3 Postgres claims checked, plus 2 that need data we do not have; not counted: 3 product or opinion, 2 duplicate
  • Large test: 16 of 16 Postgres claims checked, plus 11 that need data we do not have; not counted: 2 duplicate, 2 not a claim
  • Planner estimates: 1 of 1 Postgres claims checked, plus 6 that need data we do not have
  • Visibility map: 3 of 3 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 2 duplicate
  • Statistics transport: 5 of 6 Postgres claims checked, plus 8 that need data we do not have; not counted: 1 product or opinion, 2 duplicate; not checked: 1 for other reasons
  • Postgres 19 reads: 4 of 5 Postgres claims checked, plus 15 that need data we do not have; not counted: 2 duplicate; not checked: 1 for other reasons
  • Small test and hint bits: 9 of 12 Postgres claims checked, plus 12 that need data we do not have; not checked: 3 for other reasons
  • Freezing: 4 of 5 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate; not checked: 1 for other reasons
  • Autovacuum and partitions: 9 of 10 Postgres claims checked, plus 10 that need data we do not have; not checked: 1 for other reasons
  • Guides and COPY FREEZE: 12 of 13 Postgres claims checked, plus 1 that need data we do not have; not counted: 4 product or opinion, 1 not a claim; not checked: 1 for other reasons
  • Recommendations: 31 of 33 Postgres claims checked, plus 2 that need data we do not have; not counted: 13 duplicate; not checked: 2 for other reasons
  • Upgrade alternative: 6 of 7 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 duplicate, 1 not a claim; not checked: 1 for other reasons
  • Development ideas: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 7 product or opinion, 1 duplicate, 1 not a claim
  • Reproduction and limits: 4 of 9 Postgres claims checked, plus 38 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 7 not a claim; not checked: 5 for other reasons
  • Setup scripts: 18 claims are the author's own account; nothing checkable
  • Small-test harness: 14 of 15 Postgres claims checked, plus 9 that need data we do not have; not checked: 1 for other reasons
  • Diagnostic objects: 27 of 27 Postgres claims checked
  • Large-test script: 6 of 7 Postgres claims checked, plus 4 that need data we do not have; not checked: 1 for other reasons
  • First-read script: 5 of 5 Postgres claims checked, plus 1 that need data we do not have
  • Autovacuum scripts: 1 of 1 Postgres claims checked, plus 1 that need data we do not have
  • Freeze scripts: 23 of 23 Postgres claims checked, plus 5 that need data we do not have
  • Larger-fixture script: 6 of 6 Postgres claims checked
  • Partition script: 17 of 17 Postgres claims checked
  • COPY FREEZE script: 7 of 7 Postgres claims checked, plus 1 that need data we do not have
  • Autovacuum diagnostics: 3 of 3 Postgres claims checked, plus 1 that need data we do not have
  • Prune-hint script: 11 of 11 Postgres claims checked, plus 3 that need data we do not have
  • Parent-selection script: 2 claims are the author's own account; nothing checkable
  • Documentation sample: no checkable claims; not counted: 10 product or opinion, 1 not a claim

Average of 5 axes: 4 · result A

Some explanatory text is not shown in this edition; the grade and findings are complete.

Scorecard · the five axes
FACTS scorecard Scorecard radar, 5 axes, bigger is better. Overall A. Factual A · 0 wrong of 18 checked · 0 caveats. Applicable A · 0 wrong of 18 checked · 0 caveats. Consistent A · 0 wrong of 18 checked · 0 caveats. Transparent A · 0 wrong of 7 checked · 0 caveats · reproducibility: A (full method and results published). Safe A · 0 wrong of 26 checked · 0 caveats. A 0 wrong of 18 checked · 0 caveatsFactual A0 wrong of 180 caveats A 0 wrong of 18 checked · 0 caveatsApplicable A0 wrong of 180 caveats A 0 wrong of 18 checked · 0 caveatsConsistent A0 wrong of 180 caveats A 0 wrong of 7 checked · 0 caveats reproducibility: A (full method and results published)Transparent A0 wrong of 70 caveatsreproducibility: A(full method andresults published) A 0 wrong of 26 checked · 0 caveatsSafe A0 wrong of 260 caveats A

By topic: Introduction — 1 finding, 0 wrong · Summary — 1 finding, 0 wrong · Statistics transport — 2 findings, 0 wrong · Postgres 19 reads — 1 finding, 0 wrong · Small test and hint bits — 2 findings, 0 wrong · Autovacuum and partitions — 2 findings, 0 wrong · Guides and COPY FREEZE — 3 findings, 0 wrong · Recommendations — 2 findings, 0 wrong · Upgrade alternative — 2 findings, 0 wrong · Development ideas — 1 finding, 0 wrong · Autovacuum scripts — 1 finding, 0 wrong

Further out is better. Each axis has its own letter, from the wrong claims and caveats among the claims we checked of that kind.

Checked on the FACTS: Factual, Applicable, Consistent, Transparent, Safe. Clockwise: Factual (is it true?), Applicable (does it apply to my setup, today?), Consistent (does it agree with itself?), Transparent (can I check it myself?), Safe (can I run this on prod?).

We checked 18 claims, 696 commands scanned.

AxisLetterWrongCaveatsCheckedCoverage
FactualA0018assessed: A · 0 wrong of 18 checked · 0 caveats
ApplicableA0018assessed: A · 0 wrong of 18 checked · 0 caveats
ConsistentA0018assessed: A · 0 wrong of 18 checked · 0 caveats
TransparentA007partly assessed: A · 0 wrong of 7 checked · 0 caveats · reproducibility: A (full method and results published) · partly assessed
SafeA0026partly assessed: A · 0 wrong of 26 checked · 0 caveats · partly assessed
Topics · 12 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Introduction0 issues 1 checked F180 issues 1 checked0 issues 1 checked0 issues 1 checked
Summary0 issues 1 checked F10 issues 1 checked0 issues 1 checked
Statistics transport0 issues 2 checked F3 F40 issues 1 checked0 issues 2 checked
Postgres 19 reads0 issues 1 checked F220 issues 1 checked0 issues 1 checked0 issues 1 checked
Small test and hint bits0 issues 2 checked F5 F60 issues 1 checked0 issues 2 checked
Autovacuum and partitions0 issues 2 checked F9 F100 issues 1 checked0 issues 2 checked
Guides and COPY FREEZE0 issues 3 checked F12 F19 F250 issues 3 checked0 issues 3 checked0 issues 2 checked
Recommendations0 issues 2 checked F13 F150 issues 1 checked0 issues 2 checked0 issues 1 checked
Upgrade alternative0 issues 2 checked F16 F170 issues 1 checked0 issues 2 checked0 issues 1 checked
Development ideas0 issues 1 checked F260 issues 1 checked0 issues 1 checked
Autovacuum scripts0 issues 1 checked F200 issues 1 checked0 issues 1 checked
Large-test script

Issues found among the claims checked, per topic and axis. Each link goes to the finding behind the count.

Revisions: 2 · A -> A

We audited this article 2 times. Each row is the final edition of one audit. Letters and findings of earlier revisions stay readable at their own address.

  1. Revision 1 · 2026-10-29 00:57 UTC · A · audited with v1.0.20 (approx.)

    Article as first submitted. 24 accurate · 0 wrong · 0 caveats.

    ElephantSeal: A.

    Changes: First audit. Open: none.

  2. Revision 2 · this page · 2026-10-30 11:12 UTC · A · audited with v1.1.3

    Same article text, re-audited. 18 accurate · 0 wrong · 0 caveats.

    ElephantSeal: A.

    Changes: No change in findings.

Questions and answers

Questions and answers

What is pgTrue?

pgTrue is an independent fact-check of technical Postgres articles, made by PostgresAI. It helps you check advice before you use it.

What does the letter grade mean?

The letter grade summarizes the claims we checked. Five axes show what we checked:

  • Factual: is it true?
  • Applicable: does it apply to my setup, today?
  • Consistent: does it agree with itself?
  • Transparent: can I check it myself?
  • Safe: can I run this in production?

What is the ElephantSeal?

The ElephantSeal is the mark an article earns. It always shows the latest edition. “Open:” lists what is still open.

Can an author reply?

Authors can ask us to correct a finding, reply to it, or withdraw it. Right-of-reply policy.

Paste into your AI assistant to fix the article, then ask for a re-review.

Show the text
Fix the article with this report, then ask pgTrue for a re-review.

# pgTrue report: Dump/restore done. Now what?

Article title: Dump/restore done. Now what?
Article URL: https://postgres.ai/blog/20261028-dump-restore-now-what
Report URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb
Audited revision: 2 of 2, 2026-10-30 11:12:09 UTC
Overall letter: A

## Axes

- Factual: A · 0 wrong · 18 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 18 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 18 checked · 0 caveats · assessed
- Transparent: A · 0 wrong · 7 checked · 0 caveats · partly assessed
- Safe: A · 0 wrong · 26 checked · 0 caveats · partly assessed

ElephantSeal: A.

## Report metadata

- Report: Technical fact-check, edition 1
- pgTrue version: audited with v1.1.3
- Issued: 2026-10-30
- Edition: Preliminary — under independent review.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).

## Findings needing a change (0)

None.

## Verified accurate claims (18)

### F1 · Accurate · Factual · ANALYZE and VACUUM repair different restore omissions
Location: excerpt · section “Dump/restore done. Now what?” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=run%20VACUUM%20ANALYZE%20before%20traffic%2C,query%20plans%20to%20confirm%20it.)
Article says:
```text
…run VACUUM ANALYZE before traffic, then check the key query plans to confirm it.
```
What is true:
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.
Charitable reading:
The recommendation targets a fresh logical restore before application traffic.

Sources:
- [REL_18_6 · doc/src/sgml/ref/pg_dump.sgml:1702-1708](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pg_dump.sgml#L1702-L1708)
  Excerpt:
  ```text
  When <option>--statistics</option> is specified,
   <command>pg_dump</command> will include most optimizer statistics in the
   resulting dump file.  This does not include all statistics, such as
   those created explicitly with <xref linkend="sql-createstatistics"/>,
   custom statistics added by an extension, or statistics collected by the
   cumulative statistics system. Therefore, it may still be useful to
   run <command>ANALYZE</command> after restoring from a dump file to ensure
  ```
- [REL_18_6 · src/backend/executor/nodeIndexonlyscan.c:162-171](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeIndexonlyscan.c#L162-L171)
  Excerpt:
  ```text
  if (!VM_ALL_VISIBLE(scandesc->heapRelation,
							ItemPointerGetBlockNumber(tid),
							&node->ioss_VMBuffer))
		{
			/*
			 * Rats, we have to visit the heap to check visibility.
			 */
			InstrCountTuples2(node, 1);
			if (!index_fetch_heap(scandesc, node->ioss_TableSlot))
				continue;		/* no visible tuple, try next index entry */
  ```
- [REL_18_6 · src/backend/access/heap/vacuumlazy.c:2102-2107](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L2102-L2107)
  Excerpt:
  ```text
  PageSetAllVisible(page);
		MarkBufferDirty(buf);
		old_vmbits = visibilitymap_set(vacrel->rel, blkno, buf,
									   InvalidXLogRecPtr,
									   vmbuffer, presult.vm_conflict_horizon,
									   flags);
  ```
- [REL_18_6 · doc/src/sgml/ref/analyze.sgml:302-307](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/analyze.sgml#L302-L307)
  Excerpt:
  ```text
  For partitioned tables, <command>ANALYZE</command> gathers statistics by
    sampling rows from all partitions.  By default,
    <command>ANALYZE</command> will also recursively collect and update the
    statistics for each partition.  The <literal>ONLY</literal> keyword may be
    used to disable this.
  </para>
  ```
- [REL_18_6 · doc/src/sgml/ref/psql-ref.sgml:2525-2533](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/psql-ref.sgml#L2525-L2533)
  Excerpt:
  ```text
  <term><literal>\gexec</literal></term>

        <listitem>
        <para>
         Sends the current query buffer to the server, then treats
         each column of each row of the query's output (if any) as an SQL
         statement to be executed.  For example, to create an index on each
         column of <structname>my_table</structname>:
<programlisting>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F1

### F3 · Accurate · Factual · Imported relallvisible does not replace the visibility map
Location: excerpt · section “One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=It%20also%20carries%20the%20source%27s%20relallvisible)
Article says:
```text
It also carries the source's relallvisible…
```
What is true:
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.
Charitable reading:
The article distinguishes planner estimates from executor visibility checks.

Sources:
- [REL_18_6 · src/bin/pg_dump/pg_dump.c:11048-11052](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L11048-L11052)
  Excerpt:
  ```text
  appendPQExpBuffer(out, "\t'relallvisible', '%d'::integer",
					  rsinfo->relallvisible);

	if (fout->remoteVersion >= 180000)
		appendPQExpBuffer(out, ",\n\t'relallfrozen', '%d'::integer", rsinfo->relallfrozen);
  ```
- [REL_18_6 · src/backend/executor/nodeIndexonlyscan.c:162-171](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeIndexonlyscan.c#L162-L171)
  Excerpt:
  ```text
  if (!VM_ALL_VISIBLE(scandesc->heapRelation,
							ItemPointerGetBlockNumber(tid),
							&node->ioss_VMBuffer))
		{
			/*
			 * Rats, we have to visit the heap to check visibility.
			 */
			InstrCountTuples2(node, 1);
			if (!index_fetch_heap(scandesc, node->ioss_TableSlot))
				continue;		/* no visible tuple, try next index entry */
  ```
- [REL_18_6 · src/backend/optimizer/util/plancat.c:1164-1169](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/util/plancat.c#L1164-L1169)
  Excerpt:
  ```text
  if (relallvisible == 0 || curpages <= 0)
			*allvisfrac = 0;
		else if ((double) relallvisible >= curpages)
			*allvisfrac = 1;
		else
			*allvisfrac = (double) relallvisible / curpages;
  ```
- [REL_18_6 · src/bin/pg_dump/pg_dump.c:2854-2863](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L2854-L2863)
  Excerpt:
  ```text
  if (dopt->dump_inserts == 0)
	{
		/* Dump/restore using COPY */
		dumpFn = dumpTableData_copy;
		/* must use 2 steps here 'cause fmtId is nonreentrant */
		printfPQExpBuffer(copyBuf, "COPY %s ",
						  copyFrom);
		appendPQExpBuffer(copyBuf, "%s FROM stdin;\n",
						  fmtCopyColumnList(tbinfo, clistBuf));
		copyStmt = copyBuf->data;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F3

### F4 · Accurate · Factual · CREATE INDEX conditionally refreshes relation statistics
Location: excerpt · section “One query: 32.6 s after pg_restore, 23 ms after VACUUM ANALYZE” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=with%20autovacuum%20on%2C%20CREATE%20INDEX,it%20to%200%20during%20pg_restore.)
Article says:
```text
…with autovacuum on, CREATE INDEX usually resets it to 0 during pg_restore.
```
What is true:
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.
Charitable reading:
We checked the stated autovacuum condition instead of treating the reset as unconditional.

Sources:
- [REL_18_6 · src/backend/catalog/index.c:2883-2891](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L2883-L2891)
  Excerpt:
  ```text
  if (AutoVacuumingActive())
		{
			StdRdOptions *options = (StdRdOptions *) rel->rd_options;

			if (options != NULL && !options->autovacuum.enabled)
				update_stats = false;
		}
		else
			update_stats = false;
  ```
- [REL_18_6 · src/backend/catalog/index.c:2901-2906](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L2901-L2906)
  Excerpt:
  ```text
  if (update_stats)
	{
		relpages = RelationGetNumberOfBlocks(rel);

		if (rel->rd_rel->relkind != RELKIND_INDEX)
			visibilitymap_count(rel, &relallvisible, &relallfrozen);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F4

### F5 · Accurate · Factual · Index builds can set committed-row hint bits
Location: excerpt · section “Small test: ANALYZE fixes a join, VACUUM fixes a range query” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=heapam_index_build_range_scan%20calls%20HeapTupleSatisfiesVacuum)
Article says:
```text
heapam_index_build_range_scan calls HeapTupleSatisfiesVacuum…
```
What is true:
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.
Charitable reading:
The claim concerns ordinary index builds over already committed restored rows.

Sources:
- [REL_18_6 · src/backend/access/heap/heapam_handler.c:1415-1416](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam_handler.c#L1415-L1416)
  Excerpt:
  ```text
  switch (HeapTupleSatisfiesVacuum(heapTuple, OldestXmin,
											 hscan->rs_cbuf))
  ```
- [REL_18_6 · src/backend/access/heap/heapam_visibility.c:1288-1290](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam_visibility.c#L1288-L1290)
  Excerpt:
  ```text
  else if (TransactionIdDidCommit(HeapTupleHeaderGetRawXmin(tuple)))
			SetHintBits(tuple, buffer, HEAP_XMIN_COMMITTED,
						HeapTupleHeaderGetRawXmin(tuple));
  ```
- [REL_18_6 · src/backend/access/heap/heapam_visibility.c:130-132](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam_visibility.c#L130-L132)
  Excerpt:
  ```text
  tuple->t_infomask |= infomask;
	MarkBufferDirtyHint(buffer, true);
}
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F5

### F6 · Accurate · Factual · Hint-bit updates can produce full-page WAL images
Location: excerpt · section “Small test: ANALYZE fixes a join, VACUUM fixes a range query” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=the%20first%20hint%2Dbit%20change%20after,can%20require%20a%20full%2Dpage%20image.)
Article says:
```text
…the first hint-bit change after a checkpoint can require a full-page image.
```
What is true:
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.
Charitable reading:
The article says can require an image. It also states full_page_writes is enabled in its tests.

Sources:
- [REL_18_6 · src/backend/storage/buffer/bufmgr.c:5493-5496](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L5493-L5496)
  Excerpt:
  ```text
  * If we need to protect hint bit updates from torn writes, WAL-log a
		 * full page image of the page. This full page image is only necessary
		 * if the hint bit update is the first change to the page since the
		 * last checkpoint.
  ```
- [REL_18_6 · src/include/access/xlog.h:120-120](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/xlog.h#L120-L120)
  Excerpt:
  ```text
  #define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F6

### F9 · Accurate · Factual · Insert-triggered autovacuum exists at PostgreSQL 13's release floor
Location: excerpt · section “Autovacuum can take minutes and never analyzes partitioned parents” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=Since%20Postgres%2013%2C%20inserts%20trigger%20autovacuum)
Article says:
```text
…Since Postgres 13, inserts trigger autovacuum…
```
What is true:
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.
Charitable reading:
The surrounding text explicitly mentions thresholds and worker availability.

Sources:
- [REL_18_6 · src/backend/postmaster/autovacuum.c:3145-3147](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L3145-L3147)
  Excerpt:
  ```text
  *dovacuum = force_vacuum || (vactuples > vacthresh) ||
			(vac_ins_base_thresh >= 0 && instuples > vacinsthresh);
		*doanalyze = (anltuples > anlthresh);
  ```
- [REL_13_0 · src/backend/postmaster/autovacuum.c:3097-3100](https://github.com/postgres/postgres/blob/29be9983a64c011eac0b9ee29895cce71e15ea77/src/backend/postmaster/autovacuum.c#L3097-L3100)
  Excerpt:
  ```text
  /* Determine if this table needs vacuum or analyze. */
		*dovacuum = force_vacuum || (vactuples > vacthresh) ||
			(vac_ins_base_thresh >= 0 && instuples > vacinsthresh);
		*doanalyze = (anltuples > anlthresh);
  ```
- [https://www.postgresql.org/docs/13/release-13.html](https://www.postgresql.org/docs/13/release-13.html)
  Excerpt:
  ```text
  Allow inserts, not only updates and deletes, to trigger vacuuming activity in autovacuum (Laurenz Albe, Darafei Praliaskouski)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F9

### F10 · Accurate · Factual · Autovacuum skips partitioned parents
Location: excerpt · section “Autovacuum can take minutes and never analyzes partitioned parents” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=It%20never%20builds%20statistics%20for%20partitioned%20parents%2C%20at%20any%20level)
Article says:
```text
It never builds statistics for partitioned parents, at any level…
```
What is true:
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.
Charitable reading:
The claim concerns partitioned parents. Ordinary inheritance parents follow different rules.

Sources:
- [REL_18_6 · src/backend/postmaster/autovacuum.c:2004-2006](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L2004-L2006)
  Excerpt:
  ```text
  if (classForm->relkind != RELKIND_RELATION &&
			classForm->relkind != RELKIND_MATVIEW)
			continue;
  ```
- [REL_18_6 · doc/src/sgml/ref/analyze.sgml:302-307](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/analyze.sgml#L302-L307)
  Excerpt:
  ```text
  For partitioned tables, <command>ANALYZE</command> gathers statistics by
    sampling rows from all partitions.  By default,
    <command>ANALYZE</command> will also recursively collect and update the
    statistics for each partition.  The <literal>ONLY</literal> keyword may be
    used to disable this.
  </para>
  ```
- [REL_18_6 · doc/src/sgml/maintenance.sgml:362-369](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L362-L369)
  Excerpt:
  ```text
  The autovacuum daemon does not issue <command>ANALYZE</command> commands
     for partitioned tables.  Inheritance parents will only be analyzed if the
     parent itself is changed - changes to child tables do not trigger
     autoanalyze on the parent table.  If your queries require statistics on
     parent tables for proper planning, it is necessary to periodically run
     a manual <command>ANALYZE</command> on those tables to keep the statistics
     up to date.
    </para>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F10

### F12 · Accurate · Factual · COPY FREEZE has the stated eligibility and map behavior
Location: excerpt · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=COPY%20FREEZE%20does%20not%20run%20VACUUM.)
Article says:
```text
COPY FREEZE does not run VACUUM.
```
What is true:
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.
Charitable reading:
The article also requires no older snapshots or open cursors. It does not claim COPY FREEZE gathers planner statistics.

Sources:
- [REL_18_6 · doc/src/sgml/ref/copy.sgml:233-238](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/copy.sgml#L233-L238)
  Excerpt:
  ```text
  Requests copying the data with rows already frozen, just as they
      would be after running the <command>VACUUM FREEZE</command> command.
      This is intended as a performance option for initial data loading.
      Rows will be frozen only if the table being loaded has been created
      or truncated in the current subtransaction, there are no cursors
      open and there are no older snapshots held by this transaction.  It is
  ```
- [REL_14_0 · src/backend/access/heap/heapam.c:2577-2580](https://github.com/postgres/postgres/blob/86a4dc1e6f29d1992a2afa3fac1a0b0a6e84568c/src/backend/access/heap/heapam.c#L2577-L2580)
  Excerpt:
  ```text
  visibilitymap_set(relation, BufferGetBlockNumber(buffer), buffer,
							  InvalidXLogRecPtr, vmbuffer,
							  InvalidTransactionId,
							  VISIBILITYMAP_ALL_VISIBLE | VISIBILITYMAP_ALL_FROZEN);
  ```
- [REL_18_6 · src/backend/access/heap/heapam.c:2705-2708](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L2705-L2708)
  Excerpt:
  ```text
  visibilitymap_set(relation, BufferGetBlockNumber(buffer), buffer,
							  InvalidXLogRecPtr, vmbuffer,
							  InvalidTransactionId,
							  VISIBILITYMAP_ALL_VISIBLE | VISIBILITYMAP_ALL_FROZEN);
  ```
- [REL_18_6 · src/bin/pg_dump/pg_dump.c:2854-2863](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L2854-L2863)
  Excerpt:
  ```text
  if (dopt->dump_inserts == 0)
	{
		/* Dump/restore using COPY */
		dumpFn = dumpTableData_copy;
		/* must use 2 steps here 'cause fmtId is nonreentrant */
		printfPQExpBuffer(copyBuf, "COPY %s ",
						  copyFrom);
		appendPQExpBuffer(copyBuf, "%s FROM stdin;\n",
						  fmtCopyColumnList(tbinfo, clistBuf));
		copyStmt = copyBuf->data;
  ```
- [REL_18_6 · src/backend/commands/copyfrom.c:902-908](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfrom.c#L902-L908)
  Excerpt:
  ```text
  if (cstate->rel->rd_createSubid != GetCurrentSubTransactionId() &&
			cstate->rel->rd_newRelfilelocatorSubid != GetCurrentSubTransactionId())
			ereport(ERROR,
					(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
					 errmsg("cannot perform COPY FREEZE because the table was not created or truncated in the current subtransaction")));

		ti_options |= TABLE_INSERT_FROZEN;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F12

### F13 · Accurate · Factual · Heap truncation takes an ACCESS EXCLUSIVE lock
Location: excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=add%20%2D%2Dno%2Dtruncate%20to%20avoid%20the,EXCLUSIVE%20lock%20of%20heap%20truncation.)
Article says:
```text
…add --no-truncate to avoid the ACCESS EXCLUSIVE lock of heap truncation.
```
What is true:
vacuumlazy.c:3255 requests AccessExclusiveLock before heap truncation. Disabling truncation avoids this lock request.
Charitable reading:
The advice concerns truncation during ordinary VACUUM on a database serving traffic.

Sources:
- [REL_18_6 · src/backend/access/heap/vacuumlazy.c:3252-3257](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L3252-L3257)
  Excerpt:
  ```text
  lock_retry = 0;
		while (true)
		{
			if (ConditionalLockRelation(vacrel->rel, AccessExclusiveLock))
				break;
  ```
- [REL_18_6 · src/backend/access/heap/vacuumlazy.c:699-714](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L699-L714)
  Excerpt:
  ```text
  * The truncate param allows user to avoid attempting relation truncation,
	 * though it can't force truncation to happen.
	 */
	Assert(params->index_cleanup != VACOPTVALUE_UNSPECIFIED);
	Assert(params->truncate != VACOPTVALUE_UNSPECIFIED &&
		   params->truncate != VACOPTVALUE_AUTO);

	/*
	 * While VacuumFailSafeActive is reset to false before calling this, we
	 * still need to reset it here due to recursive calls.
	 */
	VacuumFailsafeActive = false;
	vacrel->consider_bypass_optimization = true;
	vacrel->do_index_vacuuming = true;
	vacrel->do_index_cleanup = true;
	vacrel->do_rel_truncate = (params->truncate != VACOPTVALUE_DISABLED);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F13

### F15 · Accurate · Factual · EXPLAIN ANALYZE executes its statement
Location: excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=EXPLAIN%20ANALYZE%20executes%20the%20statement)
Article says:
```text
EXPLAIN ANALYZE executes the statement…
```
What is true:
explain.sgml:82 says ANALYZE executes the statement and reports actual rows and elapsed time. Comparing estimates and actual rows checks planner estimates.
Charitable reading:
The article restricts readiness checks to read-only SELECT statements.

Sources:
- [REL_18_6 · doc/src/sgml/ref/explain.sgml:82-88](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/explain.sgml#L82-L88)
  Excerpt:
  ```text
  The <literal>ANALYZE</literal> option causes the statement to be actually
   executed, not only planned.  Then actual run time statistics are added to
   the display, including the total elapsed time expended within each plan
   node (in milliseconds) and the total number of rows it actually returned.
   This is useful for seeing whether the planner's estimates
   are close to reality.
  </para>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F15

### F16 · Accurate · Factual · pg_upgrade preserves map files and transfers most statistics on PostgreSQL 18
Location: excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=Statistics%20transfer%20needs%20Postgres%2018,on%20the%20new%20cluster%20only)
Article says:
```text
Statistics transfer needs Postgres 18 or later on the new cluster only…
```
What is true:
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.
Charitable reading:
We checked the transport mechanism. We did not reproduce the author's two upgrades.

Sources:
- [REL_18_6 · doc/src/sgml/ref/pgupgrade.sgml:834-839](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgupgrade.sgml#L834-L839)
  Excerpt:
  ```text
  Unless the <option>--no-statistics</option> option is specified,
     <command>pg_upgrade</command> will transfer most optimizer statistics
     from the old cluster to the new cluster.  This does not transfer
     all statistics, such as those created explicitly with
     <xref linkend="sql-createstatistics"/>, custom statistics added by
     an extension, or statistics collected by the cumulative statistics system.
  ```
- [REL_18_6 · src/bin/pg_upgrade/relfilenumber.c:532-539](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_upgrade/relfilenumber.c#L532-L539)
  Excerpt:
  ```text
  /* transfer primary file */
			transfer_relfile(&maps[mapnum], "", vm_must_add_frozenbit);

			/*
			 * Copy/link any fsm and vm files, if they exist
			 */
			transfer_relfile(&maps[mapnum], "_fsm", vm_must_add_frozenbit);
			transfer_relfile(&maps[mapnum], "_vm", vm_must_add_frozenbit);
  ```
- [REL_18_0 · src/bin/pg_dump/pg_dump.c:11083-11088](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/bin/pg_dump/pg_dump.c#L11083-L11088)
  Excerpt:
  ```text
  appendPQExpBufferStr(out, "SELECT * FROM pg_catalog.pg_restore_attribute_stats(\n");
		appendPQExpBuffer(out, "\t'version', '%d'::integer,\n",
						  fout->remoteVersion);
		appendPQExpBufferStr(out, "\t'schemaname', ");
		appendStringLiteralAH(out, rsinfo->dobj.namespace->dobj.name, fout);
		appendPQExpBufferStr(out, ",\n\t'relname', ");
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F16

### F17 · Accurate · Factual · Starting a linked upgraded cluster prevents safe reuse of the old cluster
Location: excerpt · section “Recommendations for Postgres 19 and older” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=With%20%2D%2Dlink%20%2C%20the%20old,the%20new%20one%20has%20started.)
Article says:
```text
With --link , the old cluster cannot start again once the new one has started.
```
What is true:
pgupgrade.sgml:926 says the new cluster writes shared files after startup. The old cluster then requires restoration from backup before reuse.
Charitable reading:
The article describes whether reuse is safe.

Sources:
- [REL_18_6 · doc/src/sgml/ref/pgupgrade.sgml:926-929](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgupgrade.sgml#L926-L929)
  Excerpt:
  ```text
  If you did start the new cluster, it has written to shared files
           and it is unsafe to use the old cluster.  The old cluster will
           need to be restored from backup in this case.
          </para>
  ```
- [REL_18_6 · doc/src/sgml/ref/pgupgrade.sgml:925-928](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgupgrade.sgml#L925-L928)
  Excerpt:
  ```text
  <para>
           If you did start the new cluster, it has written to shared files
           and it is unsafe to use the old cluster.  The old cluster will
           need to be restored from backup in this case.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F17

### F18 · Accurate · Factual · Physical backups preserve database files
Location: excerpt · section “Dump/restore done. Now what?” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=copies%20the%20data%20files%20as%20they%20are)
Article says:
```text
…copies the data files as they are…
```
What is true:
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.
Charitable reading:
This checks physical file preservation. It does not guarantee the source statistics were current.

Sources:
- [REL_18_6 · doc/src/sgml/ref/pg_basebackup.sgml:41-43](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pg_basebackup.sgml#L41-L43)
  Excerpt:
  ```text
  <application>pg_basebackup</application> can take a full or incremental
   base backup of the database. When used to take a full backup, it makes an
   exact copy of the database cluster's files. When used to take an incremental
  ```
- [pgbackrest@release/2.60.0 · src/command/restore/file.c.inc:358-360](https://github.com/pgbackrest/pgbackrest/blob/2e1c4f2ba727c45a0a23d4b326905088dc15b1a1/src/command/restore/file.c.inc#L358-L360)
  Excerpt:
  ```text
  ioWriteOpen(storageWriteIo(pgFileWrite));
                        ioCopyP(storageReadMultiIo(repoFileRead), storageWriteIo(pgFileWrite), .limit = file->limit);
                        ioWriteClose(storageWriteIo(pgFileWrite));
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F18

### F19 · Accurate · Factual · pgcopydb documents VACUUM ANALYZE after copying tables
Location: excerpt · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=pgcopydb%20by%20default%20runs%20VACUUM%20ANALYZE%20for%20each%20copied%20table)
Article says:
```text
…pgcopydb by default runs VACUUM ANALYZE for each copied table…
```
What is true:
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.
Charitable reading:
The article attributes this statement to documentation and disclaims testing pgcopydb.

Sources:
- [https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.html](https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.html)
  Excerpt:
  ```text
  As many as --table-jobs VACUUM ANALYZE sub-processes are started to
share the workload. As soon as a table data COPY has completed, the
table is queued for processing by the VACUUM ANALYZE sub-processes.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F19

### F20 · Accurate · Factual · autovacuum changes apply through configuration reload
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=autovacuum%20is%20PGC_SIGHUP%3A%20reload%20suffices)
Article says:
```text
…autovacuum is PGC_SIGHUP: reload suffices…
```
What is true:
guc_tables.c:1542 declares autovacuum as PGC_SIGHUP. Its default is on. Changing this parameter does not require a server restart.
Charitable reading:
The comment concerns the cluster-level autovacuum setting.

Sources:
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:1542-1548](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L1542-L1548)
  Excerpt:
  ```text
  {"autovacuum", PGC_SIGHUP, VACUUM_AUTOVACUUM,
			gettext_noop("Starts the autovacuum subprocess."),
			NULL
		},
		&autovacuum_start_daemon,
		true,
		NULL, NULL, NULL
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F20

### F22 · Accurate · Factual · The cited commit supports read-time visibility-map updates
Location: excerpt · section “Dump/restore done. Now what?” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=Postgres%2019%20reads%20can%20also%20set%20map%20bits)
Article says:
```text
Postgres 19 reads can also set map bits…
```
What is true:
Commit 378a216187aea1b488ce60ed07dd1ac5c14a9984 sets insertion prune hints to enable visibility-map updates during later reads.
Charitable reading:
The article says eligible reads can update the map, not that every read does.
Review: The pinned commit supports the described capability. It does not verify the displayed timings or WAL volumes.

Sources:
- [https://github.com/postgres/postgres/commit/378a216187aea1b488ce60ed07dd1ac5c14a9984](https://github.com/postgres/postgres/commit/378a216187aea1b488ce60ed07dd1ac5c14a9984)
  Excerpt:
  ```text
  Now that on-access pruning can update the visibility map (VM) during
read-only queries, set the page’s pd_prune_xid hint during INSERT and on
the new page during UPDATE.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F22

### F25 · Accurate · Factual · PostgreSQL 14 changed COPY FREEZE visibility-bit handling
Location: excerpt · section “Of 28 guides, 8 say to run ANALYZE and 3 say to run VACUUM” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=since%20Postgres%2014%2C%20sets%20the,bits%20in%20the%20visibility%20map.)
Article says:
```text
…since Postgres 14, sets the all-visible and all-frozen bits in the visibility map.
```
What is true:
PostgreSQL 14 release notes document COPY FREEZE updating page visibility bits. The stated version boundary matches those notes.
Charitable reading:
The article applies this statement to eligible COPY FREEZE operations.
Review: Checked the PostgreSQL 14.0 release boundary. This check does not establish pgcopydb behavior.

Sources:
- [REL_14_0 · doc/src/sgml/release-14.sgml:894-897](https://github.com/postgres/postgres/blob/86a4dc1e6f29d1992a2afa3fac1a0b0a6e84568c/doc/src/sgml/release-14.sgml#L894-L897)
  Excerpt:
  ```text
  Have <link linkend="sql-copy"><command>COPY FREEZE</command></link>
        appropriately update page visibility bits (Anastasia Lubennikova,
        Pavan Deolasee, Jeff Janes)
       </para>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F25

### F26 · Accurate · Factual · The 2025 --include-analyze proposal exists
Location: excerpt · section “Ideas for Postgres development” · as fetched 2026-10-30 · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=In%202025%2C%20Jian%20He%20proposed%20an%20opt%2Din%20%2D%2Dinclude%2Danalyze%20option)
Article says:
```text
In 2025, Jian He proposed an opt-in --include-analyze option…
```
What is true:
Jian He's January 14, 2025 message proposes --include-analyze for pg_dump, pg_dumpall, and pg_restore.
Charitable reading:
The article describes a proposal, not a released option.
Review: The January 14, 2025 message confirms the proposal. This check does not establish its later disposition.

Sources:
- [https://www.postgresql.org/message-id/CACJufxGx_YLLxmnZVMuUApiVYqjKrydvEQqD3qxhwM6e0_8jrQ%40mail.gmail.com](https://www.postgresql.org/message-id/CACJufxGx_YLLxmnZVMuUApiVYqjKrydvEQqD3qxhwM6e0_8jrQ%40mail.gmail.com)
  Excerpt:
  ```text
  Subject: Support --include-analyze in pg_dump, pg_dumpall, pg_restore Date: 2025-01-14 12:54:02
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F26

## Notes (not graded) (1)

### F27 · Note ·  · The script comment estimates 28 GiB where the prose reports 31 GiB
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261028-dump-restore-now-what#:~:text=250M%20rows%2C%20~28%20GiB%20heap)
Article says:
```text
…250M rows, ~28 GiB heap…
```
What is true:
The script comment estimates a 28 GiB heap for 250 million events. The main text reports 31 GiB for that fixture. This disagreement does not change the fixture's row count or the maintenance recommendation.
Charitable reading:
The script comment gives an approximate size. Both passages describe the default 250-million-row events fixture.
Explanation: Not graded: knowing this would not change what a reader does.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: The disagreement affects a script comment. The main text consistently reports the 31 GiB heap.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb#F27

## Withdrawn findings (0)

None.

## Section checks

- Introduction · A · 1 verified-accurate · 90% of claims (9 of 10, plus 2 that need data we do not have)
- Summary · A · 1 verified-accurate · 100% of claims (3 of 3, plus 2 that need data we do not have)
- Statistics transport · A · 2 verified-accurate · 83% of claims (5 of 6, plus 8 that need data we do not have)
- Postgres 19 reads · A · 1 verified-accurate · 80% of claims (4 of 5, plus 15 that need data we do not have)
- Small test and hint bits · A · 2 verified-accurate · 75% of claims (9 of 12, plus 12 that need data we do not have)
- Autovacuum and partitions · A · 2 verified-accurate · 90% of claims (9 of 10, plus 10 that need data we do not have)
- Guides and COPY FREEZE · A · 3 verified-accurate · 92% of claims (12 of 13, plus 1 that need data we do not have)
- Recommendations · A · 2 verified-accurate · 93% of claims (31 of 33, plus 2 that need data we do not have)
- Upgrade alternative · A · 2 verified-accurate · 85% of claims (6 of 7, plus 3 that need data we do not have)
- Development ideas · A · 1 verified-accurate · 100% of claims (2 of 2, plus 1 that need data we do not have)
- Autovacuum scripts · A · 1 verified-accurate · 100% of claims (1 of 1, plus 1 that need data we do not have)
- Large-test script · A · none · 85% of claims (6 of 7, plus 4 that need data we do not have)

## Claim coverage

- Introduction: 9 of 10 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 duplicate, 5 not a claim; not checked: 1 for other reasons
- Summary: 3 of 3 Postgres claims checked, plus 2 that need data we do not have; not counted: 3 product or opinion, 2 duplicate
- Large test: 16 of 16 Postgres claims checked, plus 11 that need data we do not have; not counted: 2 duplicate, 2 not a claim
- Planner estimates: 1 of 1 Postgres claims checked, plus 6 that need data we do not have
- Visibility map: 3 of 3 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 2 duplicate
- Statistics transport: 5 of 6 Postgres claims checked, plus 8 that need data we do not have; not counted: 1 product or opinion, 2 duplicate; not checked: 1 for other reasons
- Postgres 19 reads: 4 of 5 Postgres claims checked, plus 15 that need data we do not have; not counted: 2 duplicate; not checked: 1 for other reasons
- Small test and hint bits: 9 of 12 Postgres claims checked, plus 12 that need data we do not have; not checked: 3 for other reasons
- Freezing: 4 of 5 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate; not checked: 1 for other reasons
- Autovacuum and partitions: 9 of 10 Postgres claims checked, plus 10 that need data we do not have; not checked: 1 for other reasons
- Guides and COPY FREEZE: 12 of 13 Postgres claims checked, plus 1 that need data we do not have; not counted: 4 product or opinion, 1 not a claim; not checked: 1 for other reasons
- Recommendations: 31 of 33 Postgres claims checked, plus 2 that need data we do not have; not counted: 13 duplicate; not checked: 2 for other reasons
- Upgrade alternative: 6 of 7 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 duplicate, 1 not a claim; not checked: 1 for other reasons
- Development ideas: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 7 product or opinion, 1 duplicate, 1 not a claim
- Reproduction and limits: 4 of 9 Postgres claims checked, plus 38 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 7 not a claim; not checked: 5 for other reasons
- Setup scripts: 18 claims are the author's own account; nothing checkable
- Small-test harness: 14 of 15 Postgres claims checked, plus 9 that need data we do not have; not checked: 1 for other reasons
- Diagnostic objects: 27 of 27 Postgres claims checked
- Large-test script: 6 of 7 Postgres claims checked, plus 4 that need data we do not have; not checked: 1 for other reasons
- First-read script: 5 of 5 Postgres claims checked, plus 1 that need data we do not have
- Autovacuum scripts: 1 of 1 Postgres claims checked, plus 1 that need data we do not have
- Freeze scripts: 23 of 23 Postgres claims checked, plus 5 that need data we do not have
- Larger-fixture script: 6 of 6 Postgres claims checked
- Partition script: 17 of 17 Postgres claims checked
- COPY FREEZE script: 7 of 7 Postgres claims checked, plus 1 that need data we do not have
- Autovacuum diagnostics: 3 of 3 Postgres claims checked, plus 1 that need data we do not have
- Prune-hint script: 11 of 11 Postgres claims checked, plus 3 that need data we do not have
- Parent-selection script: 2 claims are the author's own account; nothing checkable
- Documentation sample: no checkable claims; not counted: 10 product or opinion, 1 not a claim

## What we did not check

- We did not reproduce the timings, query plans, WAL volumes, or autovacuum waits.
- We did not execute the reproduction scripts or validate all dependencies, permissions, setup steps, and runtime effects.
- We did not inspect the chart images or original EXPLAIN and server-log files.
- We did not verify pgcopydb's COPY FREEZE behavior or WAL-G's implementation.
- We did not verify the master build at ddd468cacf0d5d6f124c39439505ab93d31ac65b.
- We did not reproduce the measurements the article displays.
- We did not verify the recorded packages, development build, or host configuration against installation logs.
- We did not check runtime behavior, permissions, dependencies, or cleanup for the 15 experiment scripts.
- We did not check 22 of the 28 documentation pages in the survey.
- We did not establish the complete development and CommitFest history of --include-analyze.
- We did not check changes after PostgreSQL 19rc1.
- We did not verify the pgcopydb COPY FREEZE claim from the retrieved clone documentation.
- We did not reproduce the article's query timings, WAL volumes, buffer counts, or maintenance results.
- We did not verify the reported medians against individual run records or the figures' plotted points.
- We checked the documentation table's totals, but did not verify all 28 pages' recommendation classifications.
- We did not execute the recipes or verify their dependencies, permissions, setup, embedded SQL, or runtime effects.
- reproducibility: versions check did not finish
- reproducibility: data check did not finish
- reproducibility: raw results check did not finish
- Transparent: we did not complete every applicable check.
- Safe: we did not complete every applicable check.
- Section “Reproduction and limits”: we checked 4 of 47 checkable claims.
- We could not decide whether the article discloses the vendor's interest.
- We could not decide whether the published benchmark details are complete.
- We hold no source mapping for “postgres-ai/docs”, so we did not check the article's claims about its code.
- We checked 2 SQL blocks with PostgreSQL 18 grammar and 17 shell blocks for syntax.
- We did not execute any scripts or check dependencies, setup, permissions, embedded SQL, function bodies, inline snippets, or run-time effects.

## Notes

- A — the findings address the article's main subject. What we did not check is listed below. The findings directly check ANALYZE, VACUUM, statistics transport, and partition maintenance after logical restore.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- We held back some findings this audit's coverage rested on, because we could not stand behind their sources. The letter rests on the findings that remain.
- Average of 5 axes: 4 · result A
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); github.com/pgbackrest/pgbackrest release/2.60.0 at commit 2e1c4f2ba727c45a0a23d4b326905088dc15b1a1 (pinned target); https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Procedural.Importing.EC2.html (fetched 2026-10-30T11:13:28.354436Z); https://github.com/postgres/postgres/commit/378a216187aea1b488ce60ed07dd1ac5c14a9984 (fetched 2026-10-30T11:12:48.899285Z); https://neon.com/postgresql/administration/restore-database (fetched 2026-10-30T11:13:25.695047Z); https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.html (fetched 2026-10-30T11:12:59.398482Z); https://postgres.ai/blog/20260324-pg18-stats-upgrade-across-versions (fetched 2026-10-30T11:13:00.809028Z); https://postgres.fm/episodes/dump-restore-done-now-what (fetched 2026-10-30T11:12:38.146664Z); https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore (fetched 2026-10-30T11:13:26.525936Z); https://www.postgresql.org/docs/13/release-13.html (fetched 2026-10-30T11:12:51.478914Z); https://www.postgresql.org/docs/18/app-pgdump.html (fetched 2026-10-30T11:13:14.468920Z); https://www.postgresql.org/docs/18/app-pgrestore.html (fetched 2026-10-30T11:12:57.873369Z); https://www.postgresql.org/docs/18/backup-dump.html (fetched 2026-10-30T11:13:24.869105Z); https://www.postgresql.org/docs/18/populate.html (fetched 2026-10-30T11:12:55.657795Z); https://www.postgresql.org/docs/19/release-19.html (fetched 2026-10-30T11:12:53.983089Z); https://www.postgresql.org/message-id/20130125152433.GY21914%40momjian.us (fetched 2026-10-30T11:13:21.243825Z); https://www.postgresql.org/message-id/CACJufxGx_YLLxmnZVMuUApiVYqjKrydvEQqD3qxhwM6e0_8jrQ%40mail.gmail.com (fetched 2026-10-30T11:13:19.626988Z); https://www.postgresql.org/message-id/GNELIHDDFBOCMGBFGEFOOEOPCBAA.chriskl%40familyhealth.com.au (fetched 2026-10-30T11:13:18.173926Z); https://www.postgresql.org/message-id/ff258f33-00d3-a944-9517-b3cccb662722%40gmx.net (fetched 2026-10-30T11:13:22.975039Z); https://www.tigerdata.com/docs/migrate/migrate-with-downtime (fetched 2026-10-30T11:13:27.484473Z).
- Article captured 2026-10-30T11:12:09.982059Z · SHA-256 d7ee8556150e936a49c42eaf4498159b221b583b9fa7a38001ed96055f83fe16 · Text extracted from the article's HTML.
- Policy SHA-256 ac98e820c920d2d79f329fe56e06c688b46df8f0b6172209bdadee9c307d65c2 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not reproduce query timings, query plans, WAL volumes, buffer counts, freezing results, or autovacuum waits.
- We did not inspect chart images or original EXPLAIN and server-log files, or verify medians against individual runs.
- The recorded syntax checks passed for 2 SQL blocks under PostgreSQL 18 grammar and 17 shell blocks.
- We did not execute the scripts or verify dependencies, permissions, setup, embedded SQL, function bodies, cleanup, or runtime effects.
- We did not verify recorded packages, the development build, or host configuration against installation logs.
- We did not check changes after PostgreSQL 19rc1.
- We did not verify pgcopydb's implementation or COPY FREEZE behavior, or WAL-G's implementation.
- We did not verify all 28 documentation pages' recommendation classifications.
- We did not establish the complete development and CommitFest history of --include-analyze.
- The article gives October 28, 2026 without a time. We list that date at midnight UTC.
- article target version: bound to the most-cited major; also named 19 (8×), 19rc1 (3×), 14 (3×), 17 (2×), 13 (2×), 1 (2×), 2002 (1×)
- source: postgres 18 was read at REL_18_6, its newest release when the article was published
- source: the article names no pgbackrest release, so it was read at release/2.60.0, the latest release when it was published
- source: we did not check the article's claims about a linked GitLab project against its source code, because we keep no copy of it
- 10 fetched pages are not listed above, because our policy does not allow linking them.
- withheld: F11 — this finding failed a check this edition requires.
- withheld: F14 — this finding failed a check this edition requires.
- withheld: F2 — this finding failed a check this edition requires.
- withheld: F21 — this finding failed a check this edition requires.
- withheld: F23 — this finding failed a check this edition requires.
- withheld: F24 — this finding failed a check this edition requires.
- withheld: F7 — this finding failed a check this edition requires.
- withheld: F8 — this finding failed a check this edition requires.
- 12 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 2 pinned source trees, and 18 fetched pages.
- Adversarial review pending.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb?v=1) · 2026-10-29 00:57 UTC · A · audited with v1.0.20 (approx.)
  Article as first submitted. 24 accurate · 0 wrong · 0 caveats.
  ElephantSeal: A.
  Changes: First audit. Open: none.
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/ce0e6b53-02f9-4244-aa4a-87fe06e64fbb?v=2) · this page · 2026-10-30 11:12 UTC · A · audited with v1.1.3
  Same article text, re-audited. 18 accurate · 0 wrong · 0 caveats.
  ElephantSeal: A.
  Changes: No change in findings.