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 BLimited coverageOpen: the benchmark cannot yet be rerun from what is published

Embed

The ElephantSeal always shows this report's latest edition and links here. Copies cached elsewhere may update later.

[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98)
<a href="https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98"><img src="https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/7970ccc5-4405-4c5a-95d6-5d77dc9eee98/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
   :alt: pgTrue fact-check
   :width: 480
   :height: 240

Click the snippet to select all of it, then copy. Where SVG is stripped, as in some email clients and feed readers, change .svg to .png. PNG uses the light theme for Auto. For Markdown PNG embeds, use the HTML snippet where supported to preserve the display size.

Optional colours: append &color=26798E or &labelColor=333C47 after a theme query (use ? for the first parameter). Use 3- or 6-digit hex.

For pages with a light background.

For pages with a dark background. The ElephantSeal gets a thin edge so it does not blend in.

Auto follows the reader's light or dark setting where the host supports it, and shows the light ElephantSeal where it does not.

On a light page
On a dark page

What deleting rows does to a PostgreSQL table (opens in new tab)

explainmeasured.com
Sound as far as we checked.
0
inaccuracy
0
dangerous-recipe
0
misleading
0
imprecise
0
transcription
0
aged
0
withdrawn
15
verified-accurate

Factual A · Applicable A · Consistent A · Transparent C · Safe —

ReportTechnical fact-check, edition 3 pgTrue versionaudited with v1.0.17 (approx.) · regraded with v1.1.3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. We re-audited this article 4 times; 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

Ordinary VACUUM makes dead-row storage reusable

ACCURATEFactual · holds up after review

Claim ledger

Article says
VACUUM makes their space reusable…
What is true
PostgreSQL 18.6 records free heap-page space after vacuuming. Ordinary VACUUM can also truncate empty trailing pages. The documentation requires an obtainable exclusive lock for truncation. The article distinguishes reuse from returning storage to the operating system.
Charitable reading
The explanation concerns ordinary VACUUM after committed deletions in the benchmark.

Source

Source · REL_18_6 · doc/src/sgml/maintenance.sgml:169-174The standard form of <command>VACUUM</command> removes dead row versions in tables and indexes and marks the space available for future reuse. However, it will not return the space to the operating system, except in the special case where one or more pages at the end of a table become entirely free and an exclusive table lock can be easily obtained. In contrast, <command>VACUUM FULL</command> actively compacts
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)VACUUM makes their space reusable…
All sources and excerpts · 3
Evidence The standard form of <command>VACUUM</command> removes dead row versions in tables and indexes and marks the space available for future reuse. However, it will not return the space to the operating system, except in the special case where one or more pages at the end of a table become entirely free and an exclusive table lock can be easily obtained. In contrast, <command>VACUUM FULL</command> actively compacts

Version note: The benchmark targets PostgreSQL 18.6.

Evidence /* Now that we've vacuumed the page, record its available space */ page = BufferGetPage(buf); freespace = PageGetHeapFreeSpace(page); UnlockReleaseBuffer(buf); RecordPageWithFreeSpace(vacrel->rel, blkno, freespace);
Evidence RelationTruncate(vacrel->rel, new_rel_pages);
How the review tested this

Review: We tested whether trailing-page truncation contradicts the reuse explanation. F1 preserves that exception and its lock requirement. We tested whether truncation contradicts the reuse explanation. PostgreSQL 18.6 confirms both reuse and conditional trailing-page truncation.

F2

VACUUM FULL rewrites storage under ACCESS EXCLUSIVE

ACCURATEFactual · holds up after review

Claim ledger

Article says
VACUUM FULL writes a new copy of the table and drops the old one.
What is true
PostgreSQL 18.6 copies heap data, swaps physical files, rebuilds indexes, and removes the transient relation. vacuum.c selects ACCESS EXCLUSIVE for VACUUM FULL. The article correctly states that the operation blocks reads and writes.
Charitable reading
The article describes the normal VACUUM FULL rewrite rather than its catalog implementation.

Source

Source · REL_18_6 · src/backend/commands/cluster.c:655-693/* * Swap the physical files of the target and transient tables, then * rebuild the target's indexes and throw away the transient table. */
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)VACUUM FULL writes a new copy of the table and drops the old one.
All sources and excerpts · 2
Evidence /* * Swap the physical files of the target and transient tables, then * rebuild the target's indexes and throw away the transient table. */
Evidence lmode = (params->options & VACOPT_FULL) ? AccessExclusiveLock : ShareUpdateExclusiveLock;
How the review tested this

Review: We checked whether file swapping undermines the new-copy description. cluster.c copies data and swaps storage. vacuum.c selects ACCESS EXCLUSIVE. We checked whether file swapping invalidates the article's description. cluster.c confirms copying and replacing storage. vacuum.c selects AccessExclusiveLock.

F3

The TRUNCATE caveats match PostgreSQL 18.6

ACCURATEFactual · holds up after review

Claim ledger

Article says
TRUNCATE is not a drop-in replacement.
What is true
TRUNCATE acquires ACCESS EXCLUSIVE and does not fire ON DELETE triggers. Referencing tables must join the same command, directly or through CASCADE. PostgreSQL 18.6 documents each distinction the article lists.
Charitable reading
The article warns against replacing DELETE with TRUNCATE without checking the listed differences.

Source

Source · REL_18_6 · doc/src/sgml/ref/truncate.sgml:120-126<command>TRUNCATE</command> cannot be used on a table that has foreign-key references from other tables, unless all such tables are also truncated in the same command. Checking validity in such cases would require table scans, and the whole point is not to do one. The <literal>CASCADE</literal> option can be used to automatically include all dependent tables &mdash;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)TRUNCATE is not a drop-in replacement.
All sources and excerpts · 3
Evidence <command>TRUNCATE</command> cannot be used on a table that has foreign-key references from other tables, unless all such tables are also truncated in the same command. Checking validity in such cases would require table scans, and the whole point is not to do one. The <literal>CASCADE</literal> option can be used to automatically include all dependent tables &mdash;
Evidence <command>TRUNCATE</command> will not fire any <literal>ON DELETE</literal> triggers that might exist for the tables. But it will fire <literal>ON TRUNCATE</literal> triggers.
Evidence LOCKMODE lockmode = AccessExclusiveLock;
How the review tested this

Review: We checked CASCADE and trigger exceptions. F3 distinguishes ON DELETE from ON TRUNCATE and includes referencing tables. We checked each listed TRUNCATE distinction. PostgreSQL 18.6 confirms the lock, trigger behavior, and referencing-table requirement.

F4

DELETE marks tuple versions and logs heap deletions

ACCURATEFactual · holds up after review

Claim ledger

Article says
…The DELETE marks rows dead.
What is true
PostgreSQL 18.6 records deletion transaction information in each deleted tuple version. heapam.c emits XLOG_HEAP_DELETE for logged relations. The article's description matches its logged-table benchmark.
Charitable reading
The logging statement concerns the ordinary logged table created by the benchmark.

Source

Source · REL_18_6 · src/backend/access/heap/heapam.c:3117-3137HeapTupleHeaderSetXmax(tp.t_data, new_xmax); HeapTupleHeaderSetCmax(tp.t_data, cid, iscombo);
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…The DELETE marks rows dead.
All sources and excerpts · 2
Evidence HeapTupleHeaderSetXmax(tp.t_data, new_xmax); HeapTupleHeaderSetCmax(tp.t_data, cid, iscombo);
Evidence recptr = XLogInsert(RM_HEAP_ID, XLOG_HEAP_DELETE);
How the review tested this

Review: We tested the unlogged-table exception. F4 limits its logging statement to the benchmark's logged relation. We tested the unlogged-table exception against the benchmark. Its ordinary table supports the finding's scope. heapam.c confirms tuple metadata and deletion WAL.

F6

Verified accurate: “If the new version fits on the same page and no indexed column changed…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
If the new version fits on the same page and no indexed column changed…
What is true
PostgreSQL 18.6 creates another row version for UPDATE. heapam.c permits HOT when that version occupies the original page and no HOT-blocking indexed attributes change. The article's stronger unchanged-index condition is sufficient. Its benchmark uses ordinary indexes and updates an unindexed column.

Source

Source · REL_18_6 · src/backend/access/heap/heapam.c:4116-4125if (newbuf == buffer) { /* * Since the new tuple is going into the same page, we might be able * to do a HOT update. Check if any of the index columns have been * changed. */ if (!bms_overlap(modified_attrs, hot_attrs)) { use_hot_update = true;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)If the new version fits on the same page and no indexed column changed…
All sources and excerpts · 4
Evidence if (newbuf == buffer) { /* * Since the new tuple is going into the same page, we might be able * to do a HOT update. Check if any of the index columns have been * changed. */ if (!bms_overlap(modified_attrs, hot_attrs)) { use_hot_update = true;
Evidence Specifically, updates require new versions of rows to be added to tables. This can also require new index entries for each updated row,
Evidencefor ff in (100, 90): psql(f"DROP TABLE IF EXISTS h; CREATE TABLE h (id int PRIMARY KEY, k int, v text) WITH (fillfactor={ff});" "CREATE INDEX h_k ON h (k); INSERT INTO h SELECT g, g, md5(g::text) FROM generate_series(1,200000) g; VACUUM ANALYZE h; SELECT pg_stat_reset()")
Evidence for _ in range(3): psql("UPDATE h SET v = md5(v)")
How the review tested this

Review: We tested whether F6 mistakes sufficient conditions for necessary conditions. It explicitly preserves that distinction. The benchmark updates unindexed v. We tested whether the article incorrectly states necessary HOT conditions. Its conditional states sufficient conditions. The benchmark updates an unindexed column.

F8

Verified accurate: “…each on a freshly built table…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…each on a freshly built table…
What is true
run2.py rebuilds tables for the timed DELETE and TRUNCATE trials. Section 6 measures pg_table_size after each maintenance step. Section 11 creates 200,000 rows with fillfactor 100 or 90 and indexes id and k. Its updates change v. We checked the procedures, without reproducing their measurements.

Source

Source · https://explainmeasured.com/posts/deleting-rows/run2.pyfor _ in range(3): psql("DROP TABLE IF EXISTS d1; CREATE TABLE d1 AS SELECT g AS id, md5(g::text) AS v FROM generate_series(1,1000000) g; CHECKPOINT") D["delete"].append(wal_of("DELETE FROM d1"))
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…each on a freshly built table…
All sources and excerpts · 4
Evidencefor _ in range(3): psql("DROP TABLE IF EXISTS d1; CREATE TABLE d1 AS SELECT g AS id, md5(g::text) AS v FROM generate_series(1,1000000) g; CHECKPOINT") D["delete"].append(wal_of("DELETE FROM d1"))
Evidences0 = int(q1("select pg_table_size('b1')")) psql("DELETE FROM b1 WHERE id % 2 = 0") s1 = int(q1("select pg_table_size('b1')")) psql("VACUUM b1"); s2 = int(q1("select pg_table_size('b1')")) psql("VACUUM FULL b1"); s3 = int(q1("select pg_table_size('b1')"))
Evidencefor ff in (100, 90): psql(f"DROP TABLE IF EXISTS h; CREATE TABLE h (id int PRIMARY KEY, k int, v text) WITH (fillfactor={ff});" "CREATE INDEX h_k ON h (k); INSERT INTO h SELECT g, g, md5(g::text) FROM generate_series(1,200000) g; VACUUM ANALYZE h; SELECT pg_stat_reset()")
Evidence for _ in range(3): psql("UPDATE h SET v = md5(v)")
How the review tested this

Review: We checked whether fresh-table trials apply to every measurement. F8 confines that statement to timed DELETE and TRUNCATE trials. We checked whether the fresh-table statement incorrectly covers every measurement. It describes timed trials. The script rebuilds those tables and implements the stated procedures.

F12

Verified accurate: “…it refuses to run on a table that other tables reference with foreign keys…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…it refuses to run on a table that other tables reference with foreign keys…
What is true
TRUNCATE requires referencing tables in the same command. PostgreSQL documents this at doc/src/sgml/ref/truncate.sgml:120. The article correctly identifies the restriction.

Source

Source · REL_18_6 · doc/src/sgml/ref/truncate.sgml:120-126<command>TRUNCATE</command> cannot be used on a table that has foreign-key references from other tables, unless all such tables are also truncated in the same command. Checking validity in such cases would require table scans, and the whole point is not to do one. The <literal>CASCADE</literal> option can be used to automatically include all dependent tables &mdash;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…it refuses to run on a table that other tables reference with foreign keys…
All sources and excerpts · 2
Evidence <command>TRUNCATE</command> cannot be used on a table that has foreign-key references from other tables, unless all such tables are also truncated in the same command. Checking validity in such cases would require table scans, and the whole point is not to do one. The <literal>CASCADE</literal> option can be used to automatically include all dependent tables &mdash;
Evidence <command>TRUNCATE</command> cannot be used on a table that has foreign-key references from other tables, unless all such tables are also truncated in the same command. Checking validity in such cases would require table
How the review tested this

Review: We challenged the PostgreSQL 19 citation against the 18.6 benchmark. E-15 confirms the same restriction in 18.6. We challenged the PostgreSQL 19 citation against the 18.6 benchmark. E-15 confirms identical behavior in 18.6. The article supplies the exceptions.

F13

PostgreSQL 19 introduces REPACK

ACCURATEFactual · holds up after review

Claim ledger

Article says
…the new REPACK command in PostgreSQL 19 as alternatives to VACUUM FULL…
What is true
PostgreSQL 19 introduces REPACK as a replacement for VACUUM FULL and CLUSTER. Its release notes confirm this at doc/src/sgml/release-19.sgml:1755.
Charitable reading
The article identifies REPACK as an untested alternative and makes no concurrency guarantee.

Source

Source · REL_19_STABLE@48b43081e5 · doc/src/sgml/release-19.sgml:1755-1755Add <link linkend="sql-repack"><command>REPACK</command></link> command which replaces <link linkend="sql-vacuum"><command>VACUUM FULL</command></link> and <link linkend="sql-cluster"><command>CLUSTER</command></link> (Antonin Houska)
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…the new REPACK command in PostgreSQL 19 as alternatives to VACUUM FULL…
All sources and excerpts · 1
EvidenceAdd <link linkend="sql-repack"><command>REPACK</command></link> command which replaces <link linkend="sql-vacuum"><command>VACUUM FULL</command></link> and <link linkend="sql-cluster"><command>CLUSTER</command></link> (Antonin Houska)
How the review tested this

Review: We checked whether F13 attributes REPACK to the 18.6 benchmark. It correctly addresses the separate PostgreSQL 19 statement. We checked whether REPACK belongs to PostgreSQL 19. Its pinned release notes explicitly introduce the command as replacing VACUUM FULL and CLUSTER.

F14

Verified accurate: “…empty pages at the very end of the file get cut off…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…empty pages at the very end of the file get cut off…
What is true
Ordinary VACUUM can return empty trailing pages when it obtains the required exclusive lock. PostgreSQL documents this at doc/src/sgml/maintenance.sgml:169. The article states this exception.

Source

Source · REL_18_6 · doc/src/sgml/maintenance.sgml:169-174The standard form of <command>VACUUM</command> removes dead row versions in tables and indexes and marks the space available for future reuse. However, it will not return the space to the operating system, except in the special case where one or more pages at the end of a table become entirely free and an exclusive table lock can be easily obtained. In contrast, <command>VACUUM FULL</command> actively compacts
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…empty pages at the very end of the file get cut off…
All sources and excerpts · 2
Evidence The standard form of <command>VACUUM</command> removes dead row versions in tables and indexes and marks the space available for future reuse. However, it will not return the space to the operating system, except in the special case where one or more pages at the end of a table become entirely free and an exclusive table lock can be easily obtained. In contrast, <command>VACUUM FULL</command> actively compacts

Version note: The benchmark targets PostgreSQL 18.6.

Evidence The standard form of <command>VACUUM</command> removes dead row versions in tables and indexes and marks the space available for future reuse. However, it will not return the space to the operating system, except in the special case where one or more pages at the end of a table become entirely free and an exclusive table lock can be easily obtained. In contrast, table-rewriting commands such as
How the review tested this

Review: We challenged the version and unconditional truncation reading. E-10 confirms the 18.6 behavior. F14 retains the lock condition. We checked version applicability and the exclusive-lock qualification. PostgreSQL 18.6 confirms the same exception. The finding correctly describes truncation as conditional.

F16

DELETE and VACUUM sizes match the recorded byte counts

ACCURATEFactual · holds up after review

Claim ledger

Article says
…137 MB after VACUUM, and 68 MB after VACUUM FULL.
What is true
The results record 136,912,896 bytes before deletion, after deletion, and after VACUUM. VACUUM FULL leaves 68,280,320 bytes. These round to 137 MB and 68 MB. Section 6 creates 2,000,000 sequential IDs and deletes the even IDs.
Charitable reading
MB denotes decimal megabytes. The article presents rounded measurements from this workload.

Source

Source · https://explainmeasured.com/posts/deleting-rows/results2.json"delete_size": { "before": 136912896, "after_delete": 136912896, "after_vacuum": 136912896, "after_vacuum_full": 68280320 },
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…137 MB after VACUUM, and 68 MB after VACUUM FULL.
All sources and excerpts · 3
Evidence "delete_size": { "before": 136912896, "after_delete": 136912896, "after_vacuum": 136912896, "after_vacuum_full": 68280320 },
EvidenceCREATE TABLE b1 AS SELECT g AS id, md5(g::text) AS v FROM generate_series(1,2000000) g;
Evidencepsql("DELETE FROM b1 WHERE id % 2 = 0")
How the review tested this

Review: We tested decimal versus binary units and checked the deletion predicate. The recorded bytes round to 137 MB and 68 MB. We checked decimal units and the deletion predicate. The byte counts round to 137 MB and 68 MB. The script deletes even IDs.

F17

DELETE timing and WAL values round correctly

ACCURATEFactual · holds up after review

Claim ledger

Article says
…DELETE FROM d1 (1M rows) 3.5 s 125 MB…
What is true
The linked results give median elapsed time of 3.484 seconds and median WAL generation of 125,043,768 bytes. These round to 3.5 seconds and 125 MB. The timer includes the psql call.
Charitable reading
The time measures elapsed time around psql, including client overhead. MB denotes decimal megabytes.

Source

Source · https://explainmeasured.com/posts/deleting-rows/run2.pydef timed(sql): t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…DELETE FROM d1 (1M rows) 3.5 s 125 MB…
All sources and excerpts · 3
Evidencedef timed(sql): t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
Evidence "median_s": 3.484, "median_wal_bytes": 125043768,
EvidenceD = {"delete": [], "truncate": []} for _ in range(3):
How the review tested this

Review: We recalculated both medians from three trials. They equal 3.484 seconds and 125,043,768 bytes. F17 preserves client overhead. We recalculated both medians from the recorded trials. They equal 3.484 seconds and 125,043,768 bytes. The displayed rounding is correct.

F18

TRUNCATE timing and WAL values round correctly

ACCURATEFactual · holds up after review

Claim ledger

Article says
…TRUNCATE d1 0.05 s 44 kB…
What is true
The linked results give median elapsed time of 0.047 seconds and median WAL generation of 44,480 bytes. These round to 0.05 seconds and 44 kB.
Charitable reading
The time measures elapsed time around psql. kB denotes 1,000 bytes.

Source

Source · https://explainmeasured.com/posts/deleting-rows/run2.pydef timed(sql): t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…TRUNCATE d1 0.05 s 44 kB…
All sources and excerpts · 3
Evidencedef timed(sql): t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
Evidence "median_s": 0.047, "median_wal_bytes": 44480,
EvidenceD = {"delete": [], "truncate": []} for _ in range(3):
How the review tested this

Review: We recalculated both medians from three trials. They equal 0.047 seconds and 44,480 bytes. Decimal rounding supports both displayed values. We recalculated the TRUNCATE medians and checked decimal kilobytes. The recorded values round correctly to 0.05 seconds and 44 kB.

F19

Fillfactor 100 counters and sizes match the results

ACCURATEFactual · holds up after review

Claim ledger

Article says
…fillfactor 100 64 of 600,000 61 MB 10.4 MB…
What is true
The results record 64 HOT updates among 600,000 updates. The final table contains 61,300,736 bytes. The k index contains 10,354,688 bytes. Those sizes round to 61 MB and 10.4 MB.
Charitable reading
The article reports workload-specific counters and decimal storage sizes.

Source

Source · https://explainmeasured.com/posts/deleting-rows/results2.json"hot": { "ff100": { "updates": 600000, "hot": 64, "index_k_before": 4513792, "index_k_after": 10354688, "table_after": 61300736 }, "ff90": { "updates": 600000, "hot": 127353, "index_k_before": 4513792, "index_k_after": 9003008, "table_after": 46604288 } },
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…fillfactor 100 64 of 600,000 61 MB 10.4 MB…
All sources and excerpts · 2
Evidence "hot": { "ff100": { "updates": 600000, "hot": 64, "index_k_before": 4513792, "index_k_after": 10354688, "table_after": 61300736 }, "ff90": { "updates": 600000, "hot": 127353, "index_k_before": 4513792, "index_k_after": 9003008, "table_after": 46604288 } },
Evidence for _ in range(3): psql("UPDATE h SET v = md5(v)")
How the review tested this

Review: We checked configuration labels, update counts, and storage rounding. The ff100 record supports all four displayed values. We checked the fillfactor 100 counters and storage rounding. All four displayed values match the recorded results.

F20

Fillfactor 90 counters and sizes match the results

ACCURATEFactual · holds up after review

Claim ledger

Article says
…fillfactor 90 127,353 of 600,000 47 MB 9.0 MB…
What is true
The results record 127,353 HOT updates among 600,000 updates. The final table contains 46,604,288 bytes. The k index contains 9,003,008 bytes. Those sizes round to 47 MB and 9.0 MB.
Charitable reading
The article reports workload-specific counters and decimal storage sizes.

Source

Source · https://explainmeasured.com/posts/deleting-rows/results2.json"hot": { "ff100": { "updates": 600000, "hot": 64, "index_k_before": 4513792, "index_k_after": 10354688, "table_after": 61300736 }, "ff90": { "updates": 600000, "hot": 127353, "index_k_before": 4513792, "index_k_after": 9003008, "table_after": 46604288 } },
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…fillfactor 90 127,353 of 600,000 47 MB 9.0 MB…
All sources and excerpts · 2
Evidence "hot": { "ff100": { "updates": 600000, "hot": 64, "index_k_before": 4513792, "index_k_after": 10354688, "table_after": 61300736 }, "ff90": { "updates": 600000, "hot": 127353, "index_k_before": 4513792, "index_k_after": 9003008, "table_after": 46604288 } },
Evidence for _ in range(3): psql("UPDATE h SET v = md5(v)")
How the review tested this

Review: We checked configuration labels and decimal rounding. The ff90 record supports 127,353 HOT updates and both displayed storage sizes. We checked the fillfactor 90 counters and storage rounding. The recorded 46,604,288-byte table rounds to 47 MB. The remaining values also match.

F21

The HOT share and 24% storage reduction follow from the results

ACCURATEFactual · holds up after review

Claim ledger

Article says
…about a fifth of the updates did, and the table ended 24% smaller.
What is true
HOT updates account for 21.2% of 600,000 updates at fillfactor 90 (derived: 127,353 / 600,000). The table shrinks 24.0% against fillfactor 100 (derived: 1 − 46,604,288 / 61,300,736). Both descriptions match the recorded measurements.
Charitable reading
The article calculates the reduction from unrounded byte counts. About a fifth permits normal rounding.

Source

Source · https://explainmeasured.com/posts/deleting-rows/results2.json"hot": { "ff100": { "updates": 600000, "hot": 64, "index_k_before": 4513792, "index_k_after": 10354688, "table_after": 61300736 }, "ff90": { "updates": 600000, "hot": 127353, "index_k_before": 4513792, "index_k_after": 9003008, "table_after": 46604288 } },
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…about a fifth of the updates did, and the table ended 24% smaller.
All sources and excerpts · 1
Evidence "hot": { "ff100": { "updates": 600000, "hot": 64, "index_k_before": 4513792, "index_k_after": 10354688, "table_after": 61300736 }, "ff90": { "updates": 600000, "hot": 127353, "index_k_before": 4513792, "index_k_after": 9003008, "table_after": 46604288 } },
How the review tested this

Review: We recalculated both ratios using unrounded counts. HOT accounts for 21.2% of updates. Storage falls 24.0% against fillfactor 100. We recalculated using unrounded counters and bytes. The HOT share is 21.2%. The table-size reduction is 24.0%. Both descriptions hold.

Notes

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

The timings include psql startup and connection overhead

NOTEholds up after review

Claim ledger

Article says
…wall clock for the statement…
What is true
run2.py starts its timer before calling psql(sql). That function launches a new psql process. The 0.05-second TRUNCATE result includes process startup, connection setup, execution, and process exit. The script does not isolate server execution time.
Charitable reading
Wall-clock timing can reasonably include the client command. The article does not claim server execution timing.

Source

Source · https://explainmeasured.com/posts/deleting-rows/run2.pydef timed(sql): t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)

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

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…wall clock for the statement…
All sources and excerpts · 2
Evidencedef timed(sql): t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
Evidence p = subprocess.run(BASE + args, capture_output=True, text=True)
How the review tested this

Review: We tested the charitable wall-clock reading. The timer includes the subprocess. F15 remains a note and assigns no overhead magnitude. We tested the charitable interpretation of wall-clock timing. Client overhead fits that description. The finding correctly remains a note without alleging numerical error.

More in this report

Section checks · 5 sections

Section checks

AspectGradeFindingsCoverage
SetupA1 verified-accurate100% of claims (3 of 3, plus 3 that need data we do not have)
Deleting half the rowsA4 verified-accurate100% of claims (13 of 13, plus 3 that need data we do not have)
DELETE or TRUNCATEA5 verified-accurate100% of claims (13 of 13, plus 2 that need data we do not have)
Updates and fillfactorA4 verified-accurate100% of claims (17 of 17)
What I did not testA1 verified-accurate100% of claims (3 of 3, plus 1 that need data we do not have)
Coverage and assessment · Checked 56 of 56 Postgres claims across 8 sections

B — the findings address the article's main subject. What we did not check is listed below. We checked PostgreSQL storage reclamation and HOT mechanisms against source, and the displayed measurements against run2.py and results2.json.

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 storage sizes, timings, WAL volumes, or HOT counts.
  • We did not verify that the benchmark cluster used default settings throughout.
  • We did not verify the predicted HOT rate for workloads that update fewer rows between cleanup opportunities.
  • We did not reproduce the measurements the article displays.
  • We did not independently verify the benchmark's PostgreSQL version, autovacuum setting, or page occupancy.
  • We did not check the predicted insertion reuse, performance scaling, or HOT rate under smaller update workloads.
  • We did not verify the article's pg_repack claim against that project's documentation or implementation.
  • We did not verify the claimed 125 MB of replication or archive transfer traffic.
  • We could not decide whether the published benchmark details are complete.
Checked 56 of 56 Postgres claims across 8 sections
  • Overview: 7 of 7 Postgres claims checked; not counted: 1 product or opinion, 3 not a claim
  • Setup: 3 of 3 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 not a claim
  • Deleting half the rows: 13 of 13 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 not a claim
  • DELETE or TRUNCATE: 13 of 13 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 not a claim
  • Updates and fillfactor: 17 of 17 Postgres claims checked; not counted: 1 duplicate, 2 not a claim
  • What surprised me: 3 claims are the author's own account; nothing checkable; not counted: 1 product or opinion, 2 not a claim
  • What I did not test: 3 of 3 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 3 not a claim
  • Reproduce it: no checkable claims; not counted: 3 not a claim

Average of 4 axes: 3.5 · benchmark not reproducible, one step off (no code or raw results) · result B

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 B. Factual A · 0 wrong of 15 checked · 0 caveats. Applicable A · 0 wrong of 11 checked · 0 caveats. Consistent A · 0 wrong of 15 checked · 0 caveats. Transparent C · 0 wrong of 10 checked · 0 caveats · reproducibility: C (no code or raw results). Safe not applicable (n/a). A 0 wrong of 15 checked · 0 caveatsFactual A0 wrong of 150 caveats A 0 wrong of 11 checked · 0 caveatsApplicable A0 wrong of 110 caveats A 0 wrong of 15 checked · 0 caveatsConsistent A0 wrong of 150 caveats C 0 wrong of 10 checked · 0 caveats reproducibility: C (no code or raw results)Transparent C0 wrong of 100 caveatsreproducibility: C(no code or rawresults) not applicable (n/a), nothing to checkSafe n/anothingto check B

By topic: Setup — 1 finding, 0 wrong · Deleting half the rows — 4 findings, 0 wrong · DELETE or TRUNCATE — 5 findings, 0 wrong · Updates and fillfactor — 4 findings, 0 wrong · What I did not test — 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 15 claims.

AxisLetterWrongCaveatsCheckedCoverage
FactualA0015assessed: A · 0 wrong of 15 checked · 0 caveats
ApplicableA0011assessed: A · 0 wrong of 11 checked · 0 caveats
ConsistentA0015assessed: A · 0 wrong of 15 checked · 0 caveats
TransparentC0010assessed: C · 0 wrong of 10 checked · 0 caveats · reproducibility: C (no code or raw results)
Safe—000not applicable
Topics · 5 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Setup0 issues 1 checked F80 issues 1 checked0 issues 1 checked
Deleting half the rows0 issues 4 checked F1 F2 F14 F160 issues 2 checked0 issues 4 checked0 issues 2 checked
DELETE or TRUNCATE0 issues 5 checked F3 F4 F12 F17 F180 issues 4 checked0 issues 5 checked0 issues 3 checked
Updates and fillfactor0 issues 4 checked F6 F19 F20 F210 issues 4 checked0 issues 4 checked0 issues 3 checked
What I did not test0 issues 1 checked F130 issues 1 checked0 issues 1 checked0 issues 1 checked

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

Revisions: 5 · B -> B -> B -> B -> B

We audited this article 5 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-16 15:55 UTC · B · audited with v1.0.7 (approx.)

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

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    Changes: First audit. Open: none.

  2. Revision 2 · 2026-10-18 18:03 UTC · B · audited with v1.0.11 (approx.)

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

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    Changes: No change in findings.

  3. Revision 3 · 2026-10-18 21:56 UTC · B · audited with v1.0.12 (approx.)

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

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    Changes: No change in findings.

  4. Revision 4 · 2026-10-19 03:40 UTC · B · audited with v1.0.13 (approx.)

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

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    Changes: No change in findings.

  5. Revision 5 · this page · 2026-10-21 04:06 UTC · B · audited with v1.0.17 (approx.) · regraded with v1.1.3

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

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    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: What deleting rows does to a PostgreSQL table

Article title: What deleting rows does to a PostgreSQL table
Article URL: https://explainmeasured.com/posts/deleting-rows
Report URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98
Audited revision: 5 of 5, 2026-10-21 04:06:52 UTC
Overall letter: B

## Axes

- Factual: A · 0 wrong · 15 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 11 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 15 checked · 0 caveats · assessed
- Transparent: C · 0 wrong · 10 checked · 0 caveats · assessed
- Safe: — · 0 wrong · 0 checked · 0 caveats · not applicable

ElephantSeal: B.
Open conditions: the benchmark cannot yet be rerun from what is published.

## Report metadata

- Report: Technical fact-check, edition 3
- pgTrue version: audited with v1.0.17 (approx.) · regraded with v1.1.3
- Issued: 2026-10-21
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 4 times; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).

## Findings needing a change (0)

None.

## Verified accurate claims (15)

### F1 · Accurate · Factual · Ordinary VACUUM makes dead-row storage reusable
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=VACUUM%20makes%20their%20space%20reusable)
Article says:
```text
VACUUM makes their space reusable…
```
What is true:
PostgreSQL 18.6 records free heap-page space after vacuuming. Ordinary VACUUM can also truncate empty trailing pages. The documentation requires an obtainable exclusive lock for truncation. The article distinguishes reuse from returning storage to the operating system.
Charitable reading:
The explanation concerns ordinary VACUUM after committed deletions in the benchmark.
Review: We tested whether trailing-page truncation contradicts the reuse explanation. F1 preserves that exception and its lock requirement. We tested whether truncation contradicts the reuse explanation. PostgreSQL 18.6 confirms both reuse and conditional trailing-page truncation.

Sources:
- [REL_18_6 · doc/src/sgml/maintenance.sgml:169-174](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L169-L174)
  Qualification: Version note: The benchmark targets PostgreSQL 18.6.
  Excerpt:
  ```text
  The standard form of <command>VACUUM</command> removes dead row
    versions in tables and indexes and marks the space available for
    future reuse.  However, it will not return the space to the operating
    system, except in the special case where one or more pages at the
    end of a table become entirely free and an exclusive table lock can be
    easily obtained.  In contrast, <command>VACUUM FULL</command> actively compacts
  ```
- [REL_18_6 · src/backend/access/heap/vacuumlazy.c:2809-2815](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L2809-L2815)
  Excerpt:
  ```text
  /* Now that we've vacuumed the page, record its available space */
		page = BufferGetPage(buf);
		freespace = PageGetHeapFreeSpace(page);

		UnlockReleaseBuffer(buf);
		RecordPageWithFreeSpace(vacrel->rel, blkno, freespace);
  ```
- [REL_18_6 · src/backend/access/heap/vacuumlazy.c:3305-3330](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L3305-L3330)
  Excerpt:
  ```text
  RelationTruncate(vacrel->rel, new_rel_pages);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F1

### F2 · Accurate · Factual · VACUUM FULL rewrites storage under ACCESS EXCLUSIVE
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=VACUUM%20FULL%20writes%20a%20new,and%20drops%20the%20old%20one.)
Article says:
```text
VACUUM FULL writes a new copy of the table and drops the old one.
```
What is true:
PostgreSQL 18.6 copies heap data, swaps physical files, rebuilds indexes, and removes the transient relation. vacuum.c selects ACCESS EXCLUSIVE for VACUUM FULL. The article correctly states that the operation blocks reads and writes.
Charitable reading:
The article describes the normal VACUUM FULL rewrite rather than its catalog implementation.
Review: We checked whether file swapping undermines the new-copy description. cluster.c copies data and swaps storage. vacuum.c selects ACCESS EXCLUSIVE. We checked whether file swapping invalidates the article's description. cluster.c confirms copying and replacing storage. vacuum.c selects AccessExclusiveLock.

Sources:
- [REL_18_6 · src/backend/commands/cluster.c:655-693](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/cluster.c#L655-L693)
  Excerpt:
  ```text
  /*
	 * Swap the physical files of the target and transient tables, then
	 * rebuild the target's indexes and throw away the transient table.
	 */
  ```
- [REL_18_6 · src/backend/commands/vacuum.c:2092-2093](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/vacuum.c#L2092-L2093)
  Excerpt:
  ```text
  lmode = (params->options & VACOPT_FULL) ?
		AccessExclusiveLock : ShareUpdateExclusiveLock;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F2

### F3 · Accurate · Factual · The TRUNCATE caveats match PostgreSQL 18.6
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=TRUNCATE%20is%20not%20a%20drop%2Din%20replacement.)
Article says:
```text
TRUNCATE is not a drop-in replacement.
```
What is true:
TRUNCATE acquires ACCESS EXCLUSIVE and does not fire ON DELETE triggers. Referencing tables must join the same command, directly or through CASCADE. PostgreSQL 18.6 documents each distinction the article lists.
Charitable reading:
The article warns against replacing DELETE with TRUNCATE without checking the listed differences.
Review: We checked CASCADE and trigger exceptions. F3 distinguishes ON DELETE from ON TRUNCATE and includes referencing tables. We checked each listed TRUNCATE distinction. PostgreSQL 18.6 confirms the lock, trigger behavior, and referencing-table requirement.

Sources:
- [REL_18_6 · doc/src/sgml/ref/truncate.sgml:120-126](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/truncate.sgml#L120-L126)
  Excerpt:
  ```text
  <command>TRUNCATE</command> cannot be used on a table that has foreign-key
   references from other tables, unless all such tables are also truncated
   in the same command.  Checking validity in such cases would require table
   scans, and the whole point is not to do one.  The <literal>CASCADE</literal>
   option can be used to automatically include all dependent tables &mdash;
  ```
- [REL_18_6 · doc/src/sgml/ref/truncate.sgml:133-135](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/truncate.sgml#L133-L135)
  Excerpt:
  ```text
  <command>TRUNCATE</command> will not fire any <literal>ON DELETE</literal>
   triggers that might exist for the tables.  But it will fire
   <literal>ON TRUNCATE</literal> triggers.
  ```
- [REL_18_6 · src/backend/commands/tablecmds.c:1885-1915](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L1885-L1915)
  Excerpt:
  ```text
  LOCKMODE	lockmode = AccessExclusiveLock;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F3

### F4 · Accurate · Factual · DELETE marks tuple versions and logs heap deletions
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=The%20DELETE%20marks%20rows%20dead.)
Article says:
```text
…The DELETE marks rows dead.
```
What is true:
PostgreSQL 18.6 records deletion transaction information in each deleted tuple version. heapam.c emits XLOG_HEAP_DELETE for logged relations. The article's description matches its logged-table benchmark.
Charitable reading:
The logging statement concerns the ordinary logged table created by the benchmark.
Review: We tested the unlogged-table exception. F4 limits its logging statement to the benchmark's logged relation. We tested the unlogged-table exception against the benchmark. Its ordinary table supports the finding's scope. heapam.c confirms tuple metadata and deletion WAL.

Sources:
- [REL_18_6 · src/backend/access/heap/heapam.c:3117-3137](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L3117-L3137)
  Excerpt:
  ```text
  HeapTupleHeaderSetXmax(tp.t_data, new_xmax);
	HeapTupleHeaderSetCmax(tp.t_data, cid, iscombo);
  ```
- [REL_18_6 · src/backend/access/heap/heapam.c:3204-3204](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L3204-L3204)
  Excerpt:
  ```text
  recptr = XLogInsert(RM_HEAP_ID, XLOG_HEAP_DELETE);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F4

### F6 · Accurate · Factual · Verified accurate: “If the new version fits on the same page and no indexed column changed…”
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=If%20the%20new%20version%20fits,and%20no%20indexed%20column%20changed)
Article says:
```text
If the new version fits on the same page and no indexed column changed…
```
What is true:
PostgreSQL 18.6 creates another row version for UPDATE. heapam.c permits HOT when that version occupies the original page and no HOT-blocking indexed attributes change. The article's stronger unchanged-index condition is sufficient. Its benchmark uses ordinary indexes and updates an unindexed column.
Review: We tested whether F6 mistakes sufficient conditions for necessary conditions. It explicitly preserves that distinction. The benchmark updates unindexed v. We tested whether the article incorrectly states necessary HOT conditions. Its conditional states sufficient conditions. The benchmark updates an unindexed column.

Sources:
- [REL_18_6 · src/backend/access/heap/heapam.c:4116-4125](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L4116-L4125)
  Excerpt:
  ```text
  if (newbuf == buffer)
	{
		/*
		 * Since the new tuple is going into the same page, we might be able
		 * to do a HOT update.  Check if any of the index columns have been
		 * changed.
		 */
		if (!bms_overlap(modified_attrs, hot_attrs))
		{
			use_hot_update = true;
  ```
- [REL_18_6 · doc/src/sgml/storage.sgml:1085-1086](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L1085-L1086)
  Excerpt:
  ```text
  Specifically, updates require new versions of rows to be added to
  tables.  This can also require new index entries for each updated row,
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for ff in (100, 90):
    psql(f"DROP TABLE IF EXISTS h; CREATE TABLE h (id int PRIMARY KEY, k int, v text) WITH (fillfactor={ff});"
         "CREATE INDEX h_k ON h (k); INSERT INTO h SELECT g, g, md5(g::text) FROM generate_series(1,200000) g; VACUUM ANALYZE h; SELECT pg_stat_reset()")
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for _ in range(3):
        psql("UPDATE h SET v = md5(v)")
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F6

### F8 · Accurate · Factual · Verified accurate: “…each on a freshly built table…”
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=each%20on%20a%20freshly%20built%20table)
Article says:
```text
…each on a freshly built table…
```
What is true:
run2.py rebuilds tables for the timed DELETE and TRUNCATE trials. Section 6 measures pg_table_size after each maintenance step. Section 11 creates 200,000 rows with fillfactor 100 or 90 and indexes id and k. Its updates change v. We checked the procedures, without reproducing their measurements.
Review: We checked whether fresh-table trials apply to every measurement. F8 confines that statement to timed DELETE and TRUNCATE trials. We checked whether the fresh-table statement incorrectly covers every measurement. It describes timed trials. The script rebuilds those tables and implements the stated procedures.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for _ in range(3):
    psql("DROP TABLE IF EXISTS d1; CREATE TABLE d1 AS SELECT g AS id, md5(g::text) AS v FROM generate_series(1,1000000) g; CHECKPOINT")
    D["delete"].append(wal_of("DELETE FROM d1"))
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  s0 = int(q1("select pg_table_size('b1')"))
psql("DELETE FROM b1 WHERE id % 2 = 0")
s1 = int(q1("select pg_table_size('b1')"))
psql("VACUUM b1"); s2 = int(q1("select pg_table_size('b1')"))
psql("VACUUM FULL b1"); s3 = int(q1("select pg_table_size('b1')"))
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for ff in (100, 90):
    psql(f"DROP TABLE IF EXISTS h; CREATE TABLE h (id int PRIMARY KEY, k int, v text) WITH (fillfactor={ff});"
         "CREATE INDEX h_k ON h (k); INSERT INTO h SELECT g, g, md5(g::text) FROM generate_series(1,200000) g; VACUUM ANALYZE h; SELECT pg_stat_reset()")
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for _ in range(3):
        psql("UPDATE h SET v = md5(v)")
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F8

### F12 · Accurate · Factual · Verified accurate: “…it refuses to run on a table that other tables reference with foreign keys…”
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=it%20refuses%20to%20run%20on,tables%20reference%20with%20foreign%20keys)
Article says:
```text
…it refuses to run on a table that other tables reference with foreign keys…
```
What is true:
TRUNCATE requires referencing tables in the same command. PostgreSQL documents this at doc/src/sgml/ref/truncate.sgml:120. The article correctly identifies the restriction.
Review: We challenged the PostgreSQL 19 citation against the 18.6 benchmark. E-15 confirms the same restriction in 18.6. We challenged the PostgreSQL 19 citation against the 18.6 benchmark. E-15 confirms identical behavior in 18.6. The article supplies the exceptions.

Sources:
- [REL_18_6 · doc/src/sgml/ref/truncate.sgml:120-126](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/truncate.sgml#L120-L126)
  Excerpt:
  ```text
  <command>TRUNCATE</command> cannot be used on a table that has foreign-key
   references from other tables, unless all such tables are also truncated
   in the same command.  Checking validity in such cases would require table
   scans, and the whole point is not to do one.  The <literal>CASCADE</literal>
   option can be used to automatically include all dependent tables &mdash;
  ```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/ref/truncate.sgml:120-122](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/ref/truncate.sgml#L120-L122)
  Excerpt:
  ```text
  <command>TRUNCATE</command> cannot be used on a table that has foreign-key
   references from other tables, unless all such tables are also truncated
   in the same command.  Checking validity in such cases would require table
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F12

### F13 · Accurate · Factual · PostgreSQL 19 introduces REPACK
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=the%20new%20REPACK%20command%20in,as%20alternatives%20to%20VACUUM%20FULL)
Article says:
```text
…the new REPACK command in PostgreSQL 19 as alternatives to VACUUM FULL…
```
What is true:
PostgreSQL 19 introduces REPACK as a replacement for VACUUM FULL and CLUSTER. Its release notes confirm this at doc/src/sgml/release-19.sgml:1755.
Charitable reading:
The article identifies REPACK as an untested alternative and makes no concurrency guarantee.
Review: We checked whether F13 attributes REPACK to the 18.6 benchmark. It correctly addresses the separate PostgreSQL 19 statement. We checked whether REPACK belongs to PostgreSQL 19. Its pinned release notes explicitly introduce the command as replacing VACUUM FULL and CLUSTER.

Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/release-19.sgml:1755-1755](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/release-19.sgml#L1755-L1755)
  Excerpt:
  ```text
  Add <link linkend="sql-repack"><command>REPACK</command></link> command which replaces <link linkend="sql-vacuum"><command>VACUUM FULL</command></link> and <link linkend="sql-cluster"><command>CLUSTER</command></link> (Antonin Houska)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F13

### F14 · Accurate · Factual · Verified accurate: “…empty pages at the very end of the file get cut off…”
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=empty%20pages%20at%20the%20very,the%20file%20get%20cut%20off)
Article says:
```text
…empty pages at the very end of the file get cut off…
```
What is true:
Ordinary VACUUM can return empty trailing pages when it obtains the required exclusive lock. PostgreSQL documents this at doc/src/sgml/maintenance.sgml:169. The article states this exception.
Review: We challenged the version and unconditional truncation reading. E-10 confirms the 18.6 behavior. F14 retains the lock condition. We checked version applicability and the exclusive-lock qualification. PostgreSQL 18.6 confirms the same exception. The finding correctly describes truncation as conditional.

Sources:
- [REL_18_6 · doc/src/sgml/maintenance.sgml:169-174](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L169-L174)
  Qualification: Version note: The benchmark targets PostgreSQL 18.6.
  Excerpt:
  ```text
  The standard form of <command>VACUUM</command> removes dead row
    versions in tables and indexes and marks the space available for
    future reuse.  However, it will not return the space to the operating
    system, except in the special case where one or more pages at the
    end of a table become entirely free and an exclusive table lock can be
    easily obtained.  In contrast, <command>VACUUM FULL</command> actively compacts
  ```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/maintenance.sgml:169-174](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/maintenance.sgml#L169-L174)
  Excerpt:
  ```text
  The standard form of <command>VACUUM</command> removes dead row
    versions in tables and indexes and marks the space available for
    future reuse.  However, it will not return the space to the operating
    system, except in the special case where one or more pages at the
    end of a table become entirely free and an exclusive table lock can be
    easily obtained.  In contrast, table-rewriting commands such as
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F14

### F16 · Accurate · Factual · DELETE and VACUUM sizes match the recorded byte counts
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=137%20MB%20after%20VACUUM%2C%20and%2068%20MB%20after%20VACUUM%20FULL.)
Article says:
```text
…137 MB after VACUUM, and 68 MB after VACUUM FULL.
```
What is true:
The results record 136,912,896 bytes before deletion, after deletion, and after VACUUM. VACUUM FULL leaves 68,280,320 bytes. These round to 137 MB and 68 MB. Section 6 creates 2,000,000 sequential IDs and deletes the even IDs.
Charitable reading:
MB denotes decimal megabytes. The article presents rounded measurements from this workload.
Review: We tested decimal versus binary units and checked the deletion predicate. The recorded bytes round to 137 MB and 68 MB. We checked decimal units and the deletion predicate. The byte counts round to 137 MB and 68 MB. The script deletes even IDs.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/results2.json](https://explainmeasured.com/posts/deleting-rows/results2.json)
  Excerpt:
  ```text
  "delete_size": {
  "before": 136912896,
  "after_delete": 136912896,
  "after_vacuum": 136912896,
  "after_vacuum_full": 68280320
 },
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  CREATE TABLE b1 AS SELECT g AS id, md5(g::text) AS v FROM generate_series(1,2000000) g;
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  psql("DELETE FROM b1 WHERE id % 2 = 0")
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F16

### F17 · Accurate · Factual · DELETE timing and WAL values round correctly
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=DELETE%20FROM%20d1%20%281M%20rows%29%203.5%20s%20125%20MB)
Article says:
```text
…DELETE FROM d1 (1M rows) 3.5 s 125 MB…
```
What is true:
The linked results give median elapsed time of 3.484 seconds and median WAL generation of 125,043,768 bytes. These round to 3.5 seconds and 125 MB. The timer includes the psql call.
Charitable reading:
The time measures elapsed time around psql, including client overhead. MB denotes decimal megabytes.
Review: We recalculated both medians from three trials. They equal 3.484 seconds and 125,043,768 bytes. F17 preserves client overhead. We recalculated both medians from the recorded trials. They equal 3.484 seconds and 125,043,768 bytes. The displayed rounding is correct.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  def timed(sql):
    t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
  ```
- [https://explainmeasured.com/posts/deleting-rows/results2.json](https://explainmeasured.com/posts/deleting-rows/results2.json)
  Excerpt:
  ```text
  "median_s": 3.484,
   "median_wal_bytes": 125043768,
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  D = {"delete": [], "truncate": []}
for _ in range(3):
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F17

### F18 · Accurate · Factual · TRUNCATE timing and WAL values round correctly
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=TRUNCATE%20d1%200.05%20s%2044%20kB)
Article says:
```text
…TRUNCATE d1 0.05 s 44 kB…
```
What is true:
The linked results give median elapsed time of 0.047 seconds and median WAL generation of 44,480 bytes. These round to 0.05 seconds and 44 kB.
Charitable reading:
The time measures elapsed time around psql. kB denotes 1,000 bytes.
Review: We recalculated both medians from three trials. They equal 0.047 seconds and 44,480 bytes. Decimal rounding supports both displayed values. We recalculated the TRUNCATE medians and checked decimal kilobytes. The recorded values round correctly to 0.05 seconds and 44 kB.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  def timed(sql):
    t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
  ```
- [https://explainmeasured.com/posts/deleting-rows/results2.json](https://explainmeasured.com/posts/deleting-rows/results2.json)
  Excerpt:
  ```text
  "median_s": 0.047,
   "median_wal_bytes": 44480,
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  D = {"delete": [], "truncate": []}
for _ in range(3):
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F18

### F19 · Accurate · Factual · Fillfactor 100 counters and sizes match the results
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=fillfactor%20100%2064%20of%20600%2C000%2061%20MB%2010.4%20MB)
Article says:
```text
…fillfactor 100 64 of 600,000 61 MB 10.4 MB…
```
What is true:
The results record 64 HOT updates among 600,000 updates. The final table contains 61,300,736 bytes. The k index contains 10,354,688 bytes. Those sizes round to 61 MB and 10.4 MB.
Charitable reading:
The article reports workload-specific counters and decimal storage sizes.
Review: We checked configuration labels, update counts, and storage rounding. The ff100 record supports all four displayed values. We checked the fillfactor 100 counters and storage rounding. All four displayed values match the recorded results.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/results2.json](https://explainmeasured.com/posts/deleting-rows/results2.json)
  Excerpt:
  ```text
  "hot": {
  "ff100": {
   "updates": 600000,
   "hot": 64,
   "index_k_before": 4513792,
   "index_k_after": 10354688,
   "table_after": 61300736
  },
  "ff90": {
   "updates": 600000,
   "hot": 127353,
   "index_k_before": 4513792,
   "index_k_after": 9003008,
   "table_after": 46604288
  }
 },
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for _ in range(3):
        psql("UPDATE h SET v = md5(v)")
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F19

### F20 · Accurate · Factual · Fillfactor 90 counters and sizes match the results
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=fillfactor%2090%20127%2C353%20of%20600%2C000%2047%20MB%209.0%20MB)
Article says:
```text
…fillfactor 90 127,353 of 600,000 47 MB 9.0 MB…
```
What is true:
The results record 127,353 HOT updates among 600,000 updates. The final table contains 46,604,288 bytes. The k index contains 9,003,008 bytes. Those sizes round to 47 MB and 9.0 MB.
Charitable reading:
The article reports workload-specific counters and decimal storage sizes.
Review: We checked configuration labels and decimal rounding. The ff90 record supports 127,353 HOT updates and both displayed storage sizes. We checked the fillfactor 90 counters and storage rounding. The recorded 46,604,288-byte table rounds to 47 MB. The remaining values also match.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/results2.json](https://explainmeasured.com/posts/deleting-rows/results2.json)
  Excerpt:
  ```text
  "hot": {
  "ff100": {
   "updates": 600000,
   "hot": 64,
   "index_k_before": 4513792,
   "index_k_after": 10354688,
   "table_after": 61300736
  },
  "ff90": {
   "updates": 600000,
   "hot": 127353,
   "index_k_before": 4513792,
   "index_k_after": 9003008,
   "table_after": 46604288
  }
 },
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  for _ in range(3):
        psql("UPDATE h SET v = md5(v)")
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F20

### F21 · Accurate · Factual · The HOT share and 24% storage reduction follow from the results
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=about%20a%20fifth%20of%20the,the%20table%20ended%2024%25%20smaller.)
Article says:
```text
…about a fifth of the updates did, and the table ended 24% smaller.
```
What is true:
HOT updates account for 21.2% of 600,000 updates at fillfactor 90 (derived: 127,353 / 600,000). The table shrinks 24.0% against fillfactor 100 (derived: 1 − 46,604,288 / 61,300,736). Both descriptions match the recorded measurements.
Charitable reading:
The article calculates the reduction from unrounded byte counts. About a fifth permits normal rounding.
Review: We recalculated both ratios using unrounded counts. HOT accounts for 21.2% of updates. Storage falls 24.0% against fillfactor 100. We recalculated using unrounded counters and bytes. The HOT share is 21.2%. The table-size reduction is 24.0%. Both descriptions hold.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/results2.json](https://explainmeasured.com/posts/deleting-rows/results2.json)
  Excerpt:
  ```text
  "hot": {
  "ff100": {
   "updates": 600000,
   "hot": 64,
   "index_k_before": 4513792,
   "index_k_after": 10354688,
   "table_after": 61300736
  },
  "ff90": {
   "updates": 600000,
   "hot": 127353,
   "index_k_before": 4513792,
   "index_k_after": 9003008,
   "table_after": 46604288
  }
 },
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F21

## Notes (not graded) (1)

### F15 · Note ·  · The timings include psql startup and connection overhead
Location: Article · exact quote · [open in article](https://explainmeasured.com/posts/deleting-rows#:~:text=wall%20clock%20for%20the%20statement)
Article says:
```text
…wall clock for the statement…
```
What is true:
run2.py starts its timer before calling psql(sql). That function launches a new psql process. The 0.05-second TRUNCATE result includes process startup, connection setup, execution, and process exit. The script does not isolate server execution time.
Charitable reading:
Wall-clock timing can reasonably include the client command. The article does not claim server execution timing.
Explanation: Not graded: knowing this would not change what a reader does.
Review: We tested the charitable wall-clock reading. The timer includes the subprocess. F15 remains a note and assigns no overhead magnitude. We tested the charitable interpretation of wall-clock timing. Client overhead fits that description. The finding correctly remains a note without alleging numerical error.

Sources:
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  def timed(sql):
    t = time.perf_counter(); psql(sql); return round(time.perf_counter() - t, 3)
  ```
- [https://explainmeasured.com/posts/deleting-rows/run2.py](https://explainmeasured.com/posts/deleting-rows/run2.py)
  Excerpt:
  ```text
  p = subprocess.run(BASE + args, capture_output=True, text=True)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98#F15

## Withdrawn findings (0)

None.

## Section checks

- Setup · A · 1 verified-accurate · 100% of claims (3 of 3, plus 3 that need data we do not have)
- Deleting half the rows · A · 4 verified-accurate · 100% of claims (13 of 13, plus 3 that need data we do not have)
- DELETE or TRUNCATE · A · 5 verified-accurate · 100% of claims (13 of 13, plus 2 that need data we do not have)
- Updates and fillfactor · A · 4 verified-accurate · 100% of claims (17 of 17)
- What I did not test · A · 1 verified-accurate · 100% of claims (3 of 3, plus 1 that need data we do not have)

## Claim coverage

- Overview: 7 of 7 Postgres claims checked; not counted: 1 product or opinion, 3 not a claim
- Setup: 3 of 3 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 not a claim
- Deleting half the rows: 13 of 13 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 not a claim
- DELETE or TRUNCATE: 13 of 13 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 not a claim
- Updates and fillfactor: 17 of 17 Postgres claims checked; not counted: 1 duplicate, 2 not a claim
- What surprised me: 3 claims are the author's own account; nothing checkable; not counted: 1 product or opinion, 2 not a claim
- What I did not test: 3 of 3 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 3 not a claim
- Reproduce it: no checkable claims; not counted: 3 not a claim

## What we did not check

- We did not reproduce the storage sizes, timings, WAL volumes, or HOT counts.
- We did not verify that the benchmark cluster used default settings throughout.
- We did not verify the predicted HOT rate for workloads that update fewer rows between cleanup opportunities.
- We did not reproduce the measurements the article displays.
- We did not independently verify the benchmark's PostgreSQL version, autovacuum setting, or page occupancy.
- We did not check the predicted insertion reuse, performance scaling, or HOT rate under smaller update workloads.
- We did not verify the article's pg_repack claim against that project's documentation or implementation.
- We did not verify the claimed 125 MB of replication or archive transfer traffic.
- We could not decide whether the published benchmark details are complete.

## Notes

- B — the findings address the article's main subject. What we did not check is listed below. We checked PostgreSQL storage reclamation and HOT mechanisms against source, and the displayed measurements against run2.py and results2.json.
- 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 4 axes: 3.5 · benchmark not reproducible, one step off (no code or raw results) · result B
- 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_19_STABLE@48b43081e5 at commit 48b43081e550f9e4b04e1184ed6d3fed4f850691 (pinned target); https://explainmeasured.com/posts/deleting-rows/results2.json (fetched 2026-10-21T04:07:05.838607Z); https://explainmeasured.com/posts/deleting-rows/run2.py (fetched 2026-10-21T04:07:04.933161Z).
- Article captured 2026-10-21T04:06:52.243702Z · SHA-256 89ad11c1dfff1b36a5da1c956e03e49b5a62b925b68984c66aa704a75f07ebc9 · Text extracted from the article's HTML.
- Policy SHA-256 02a884945ae61bce852e3869c72bf96db59fcd721cf11953f6e0fa8ca656675e · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not reproduce the storage sizes, timings, WAL volumes, or HOT counts.
- We did not independently verify the benchmark's PostgreSQL version, default settings, autovacuum activity, or page occupancy.
- We did not test insertion reuse, performance scaling, or HOT rates under smaller update workloads.
- We did not verify the claimed replication or archive transfer volume.
- We did not check pg_repack against its documentation or implementation.
- The article names no author and gives no publication time. We list its date at midnight UTC.
- article target version: bound to the most-cited major; also named 18 (1×)
- withheld: F10 — this finding failed a check this edition requires.
- withheld: F11 — this finding failed a check this edition requires.
- withheld: F5 — this finding failed a check this edition requires.
- withheld: F7 — this finding failed a check this edition requires.
- withheld: F9 — this finding failed a check this edition requires.
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-30: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 2 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 2 fetched pages.
- 16 survived · 0 weakened · 0 withdrawn.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98?v=2) · 2026-10-16 15:55 UTC · B · audited with v1.0.7 (approx.)
  Article as first submitted. 14 accurate · 0 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: First audit. Open: none.
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98?v=4) · 2026-10-18 18:03 UTC · B · audited with v1.0.11 (approx.)
  Same article text, re-audited. 10 accurate · 0 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: No change in findings.
- [Revision 3](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98?v=6) · 2026-10-18 21:56 UTC · B · audited with v1.0.12 (approx.)
  Same article text, re-audited. 10 accurate · 0 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: No change in findings.
- [Revision 4](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98?v=8) · 2026-10-19 03:40 UTC · B · audited with v1.0.13 (approx.)
  Same article text, re-audited. 7 accurate · 0 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: No change in findings.
- [Revision 5](https://pgtrue.postgres.ai/shared/brief/7970ccc5-4405-4c5a-95d6-5d77dc9eee98?v=11) · this page · 2026-10-21 04:06 UTC · B · audited with v1.0.17 (approx.) · regraded with v1.1.3
  Same article text, re-audited. 15 accurate · 0 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: No change in findings.

Updated your article? Request a correction. A new edition appears at this address.