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 coverageOpen: the production risk is not yet fixed or warned about

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/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.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/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.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/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.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/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/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/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/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/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/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/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/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/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/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/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59)
<a href="https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59"><img src="https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/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/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/072fd433-ce8e-46d3-bd95-4330c40daa59/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
   :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

How we stopped xmin horizon blocking Postgres vacuuming: a deepdive (opens in new tab)

trigger.dev
Broadly sound as far as we checked. Read the caveats below.
0
inaccuracy
0
dangerous-recipe
0
misleading
2
imprecise
0
transcription
0
aged
0
withdrawn
16
verified-accurate

Central claim not verified: diagnosing blocked PostgreSQL vacuum cleanup and restoring cleanup through database failover. We could not verify this, and the article gives no method to reproduce it.

Factual A · Applicable A · Consistent A · Transparent A · Safe B+

ReportTechnical fact-check, edition 3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. The article changed 1 time after our first audit; we re-audited each version. See Revisions below. Policy: right-of-reply and corrections policy. pgTrue versionaudited with v1.0.14 (approx.) · regraded with v1.0.19 (approx.)

InaccuraciesNone in this edition.

Dangerous or recipe bugsNone in this edition.

Misleading / imprecise

F1

The cleanup horizon is not just the oldest running transaction ID

IMPRECISEFactual · holds up after review

Claim ledger

Article says
…The `oldest xmin` is the transaction ID of the oldest transaction that's still running.
What is true
VACUUM uses a cleanup horizon derived from transaction IDs, snapshot xmin values, and replication slots. procarray.c:1805-1811 compares xmin with xid. Lines 1896-1902 incorporate slot xmin. REL_16_4 does the same. Searching only running transaction IDs can miss the holder.
So what
Inspect backend_xmin and replication-slot xmin alongside backend_xid instead of searching only for a matching running transaction ID.
Charitable reading
The later checklist correctly includes replication slots and prepared transactions. That limits the defect to the definition.

Source

Source · REL_18_6 · src/backend/storage/ipc/procarray.c:1896-1902 * Check whether there are replication slots requiring an older xmin. */ h->shared_oldest_nonremovable = TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin); h->data_oldest_nonremovable = TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…The `oldest xmin` is the transaction ID of the oldest transaction that's still running.
All sources and excerpts · 3
Evidence * Check whether there are replication slots requiring an older xmin. */ h->shared_oldest_nonremovable = TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin); h->data_oldest_nonremovable = TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
Evidence * Check whether there are replication slots requiring an older xmin. */ h->shared_oldest_nonremovable = TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin); h->data_oldest_nonremovable = TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);

Version note: Publication-era comparison. The article does not identify its PostgreSQL version.

Evidence * Consider both the transaction's Xmin, and its Xid. * * We must check both because a transaction might have an Xmin but not * (yet) an Xid; conversely, if it has an Xid, that could determine * some not-yet-set Xmin. */ xmin = TransactionIdOlder(xmin, xid);
How the review tested this

Review: We tested the later checklist as a qualification. It limits the defect but does not fix the definition. Both releases incorporate slot xmin. The source also distinguishes snapshot xmin from transaction xid. Inspecting both changes the diagnostic search. We tested whether the later checklist repairs the definition. It limits the defect but leaves the definition incomplete. Snapshot xmin and slot xmin need not identify a running transaction. Inspecting those fields changes the investigation.

F2

UPDATE also produces dead tuples

IMPRECISEApplicable · holds up after review

Claim ledger

Article says
A dead tuple is a row that has been deleted but not yet vacuumed.
What is true
Dead tuples include obsolete row versions from UPDATE, not only deleted rows. pgstat_relation.c:582-584 counts both operations as dead-tuple producers. REL_16_4 maintenance.sgml:156-158 documents both. Restricting monitoring to deletion-heavy tables misses update-generated dead versions.
So what
Include UPDATE-heavy tables when selecting tables for dead-tuple monitoring and vacuum investigation.
Charitable reading
The jobs table may primarily accumulate deleted jobs. The sentence nevertheless defines dead tuples generally.

Source

Source · REL_18_6 · src/backend/utils/activity/pgstat_relation.c:576-588/* update and delete each create a dead tuple */ tabstat->counts.delta_dead_tuples += trans->tuples_updated + trans->tuples_deleted;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)A dead tuple is a row that has been deleted but not yet vacuumed.
All sources and excerpts · 2
Evidence /* update and delete each create a dead tuple */ tabstat->counts.delta_dead_tuples += trans->tuples_updated + trans->tuples_deleted;
Evidence In <productname>PostgreSQL</productname>, an <command>UPDATE</command> or <command>DELETE</command> of a row does not immediately remove the old version of the row.

Version note: Publication-era documentation confirms the same behavior.

How the review tested this

Review: We tested whether the deletion-heavy queue makes the definition adequate. The sentence defines dead tuples generally. REL_16_4 documents obsolete UPDATE versions, and REL_18_6 counts them. Including UPDATE-heavy tables is a concrete monitoring decision. We tested the deletion-heavy queue context. The quoted sentence still defines dead tuples generally. Publication-era documentation includes obsolete UPDATE versions. Adding UPDATE-heavy tables to monitoring is concrete and supports the limited severity.

Verified accurate

F3

pg_stat_user_tables provides dead-row estimates

ACCURATEFactual · holds up after review

Claim ledger

Article says
…You can run this query to see how many [dead tuples]…
What is true
pg_stat_user_tables exposes estimated live and dead row counts for user tables. system_views.sql:696-697 selects those counters. monitoring.sgml:3961-3964 identifies n_dead_tup as an estimate. The displayed percentages and ordering provide useful diagnostics.
Charitable reading
The article presents a diagnostic query. It does not explicitly promise an exact physical count.

Source

Source · REL_18_6 · src/backend/catalog/system_views.sql:691-704pg_stat_get_live_tuples(C.oid) AS n_live_tup, pg_stat_get_dead_tuples(C.oid) AS n_dead_tup,
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…You can run this query to see how many [dead tuples]…
All sources and excerpts · 3
Evidence pg_stat_get_live_tuples(C.oid) AS n_live_tup, pg_stat_get_dead_tuples(C.oid) AS n_dead_tup,
EvidenceCREATE VIEW pg_stat_user_tables AS SELECT * FROM pg_stat_all_tables WHERE schemaname NOT IN ('pg_catalog', 'information_schema') AND schemaname !~ '^pg_toast';
Evidence <structfield>n_dead_tup</structfield> <type>bigint</type> </para> <para> Estimated number of dead rows
How the review tested this

Review: We checked whether the finding mistakes estimates for physical counts. It explicitly calls them estimates. The view definitions and documentation support that qualification. The article's positive dead-count filter also avoids a zero denominator. We checked whether the finding promises exact counts. It explicitly describes estimates. The view definitions expose the documented counters. The article's diagnostic framing supports that reading.

F4

The size expression subtracts the main relation fork from total storage

ACCURATEFactual · holds up after review

Claim ledger

Article says
…pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) AS external_size,…
What is true
pg_total_relation_size includes table storage, indexes, and TOAST. One-argument pg_relation_size measures the main fork. Their difference includes indexes, TOAST, and auxiliary forks. pg_size_pretty formats the resulting byte count. dbsize.c and pg_proc.dat implement these operations.
Charitable reading
The alias external_size does not explicitly claim to measure TOAST alone.

Source

Source · REL_18_6 · doc/src/sgml/func.sgml:30273-30277Computes the total disk space used by the specified table, including all indexes and <acronym>TOAST</acronym> data.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) AS external_size,…
All sources and excerpts · 6
Evidence Computes the total disk space used by the specified table, including all indexes and <acronym>TOAST</acronym> data.
Evidence forks.) With one argument, this returns the size of the main data fork of the relation.
Evidence Converts a size in bytes into a more easily human-readable format with size units (bytes, kB, MB, GB, TB, or PB as appropriate).
Evidence size = calculate_table_size(rel); /* * Add size of all attached indexes as well */ size += calculate_indexes_size(rel);
Evidence descr => 'disk space usage for the main fork of the specified table or index', proname => 'pg_relation_size', prolang => 'sql', provolatile => 'v',
Evidence snprintf(buf, sizeof(buf), INT64_FORMAT " %s", size, unit->name);
How the review tested this

Review: We tested whether external_size excludes auxiliary forks or indexes. It does neither. dbsize.c explicitly includes heap, indexes, TOAST, FSM, and VM. Subtracting the main fork supports the finding's stated scope. We tested whether external_size means TOAST alone. The finding avoids that interpretation. Documentation and implementation support subtracting the main fork from total storage, including auxiliary forks and indexes.

F5

pg_cancel_backend targets the executing query

ACCURATEFactual · holds up after review

Claim ledger

Article says
We manually cancelled these transactions using `pg_cancel_backend`…
What is true
pg_cancel_backend sends SIGINT to the selected backend. func.sgml:28688-28689 specifies current-query cancellation. signalfuncs.c:138 implements that signal. This fits an attempt to cancel executing upserts. It does not establish that their sessions terminated.
Charitable reading
The sentence describes cancelling executing upserts during an incident, not a general guarantee that cancellation terminates sessions.

Source

Source · REL_18_6 · doc/src/sgml/func.sgml:28687-28690Cancels the current query of the session whose backend process has the specified process ID.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)We manually cancelled these transactions using `pg_cancel_backend`…
All sources and excerpts · 2
Evidence Cancels the current query of the session whose backend process has the specified process ID.
Evidence int r = pg_signal_backend(PG_GETARG_INT32(0), SIGINT);
How the review tested this

Review: We challenged the distinction between cancelling transactions and terminating sessions. The finding limits its endorsement to cancelling executing upserts. SIGINT and the current-query documentation support that reading without authenticating the incident. We challenged the difference between cancelling a query and terminating a session. The finding states that distinction and verifies only the attempted query cancellation. It does not authenticate the incident calls.

F6

Verified accurate: “Terminating long-running transactions using `pg_terminate_backend()`…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
Terminating long-running transactions using `pg_terminate_backend()`…
What is true
pg_terminate_backend targets the selected session. doc/src/sgml/func.sgml:28766-28767 documents session termination. src/backend/storage/ipc/signalfuncs.c:251 sends SIGTERM. These citations establish the termination mechanism. They do not establish its effect on the cleanup horizon.

Source

Source · REL_18_6 · doc/src/sgml/func.sgml:28766-28769Terminates the session whose backend process has the specified process ID.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Terminating long-running transactions using `pg_terminate_backend()`…
All sources and excerpts · 2
Evidence Terminates the session whose backend process has the specified process ID.
Evidence r = pg_signal_backend(pid, SIGTERM);
How the review tested this

Review: We checked session termination against statement cancellation. The cited ranges establish session termination and SIGTERM delivery. Neither establishes cleanup-horizon behavior.

F7

Disabling standby feedback can release its reported horizons

ACCURATEFactual · holds up after review

Claim ledger

Article says
`hot_standby_feedback = off`…
What is true
hot_standby_feedback can retain primary row versions. walreceiver.c:1286-1294 obtains replication horizons when enabled and reports invalid horizons when disabled. Disabling it addresses this retention mechanism. It does not remove unrelated transaction or replication-slot constraints.
Charitable reading
The article lists disabling feedback as an attempted remedy. It does not claim the setting clears every possible horizon holder.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:5235-5245can cause database bloat on the primary for some workloads. Feedback messages will not be sent more frequently than once per <varname>wal_receiver_status_interval</varname>.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)`hot_standby_feedback = off`…
All sources and excerpts · 2
Evidence can cause database bloat on the primary for some workloads. Feedback messages will not be sent more frequently than once per <varname>wal_receiver_status_interval</varname>.
Evidence if (hot_standby_feedback) { GetReplicationHorizons(&xmin, &catalog_xmin); } else { xmin = InvalidTransactionId; catalog_xmin = InvalidTransactionId; }
How the review tested this

Review: We tested whether disabling feedback guarantees release of every slot constraint. The finding explicitly excludes unrelated constraints. walreceiver.c selects invalid horizons when feedback is disabled. The documentation confirms feedback can cause primary bloat. We tested whether disabling feedback removes every retention constraint. The finding expressly excludes unrelated constraints. walreceiver.c selects invalid feedback horizons when the setting is disabled.

F8

Sequential scans skip invisible row versions

ACCURATEFactual · holds up after review

Claim ledger

Article says
Dead tuples matter when you do a sequential scan because Postgres has to skip over them…
What is true
Heap scans inspect tuple visibility and skip versions invisible to their snapshot. heapam.c:955-965 performs the visibility test and skip. Retained versions consume storage that scans traverse. This supports the stated scan-cost mechanism.
Charitable reading
The article explains scan overhead. It does not assert that dead versions appear in query results.

Source

Source · REL_18_6 · src/backend/access/heap/heapam.c:920-972/* skip tuples not visible to this snapshot */ if (!visible) continue;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Dead tuples matter when you do a sequential scan because Postgres has to skip over them…
All sources and excerpts · 1
Evidence /* skip tuples not visible to this snapshot */ if (!visible) continue;
How the review tested this

Review: We checked whether heap visibility code proves Graphile Worker's execution plan. It does not, and the finding makes no such claim. The cited loop visits pages and skips invisible tuples. We checked whether heap visibility code establishes Graphile Worker's execution plan. It does not, and the finding confines its conclusion to PostgreSQL scan behavior. The loop skips invisible versions.

F9

Graphile Worker uses PostgreSQL for its job queue

ACCURATEFactual · holds up after review

Claim ledger

Article says
Graphile Worker is a job queue built on Postgres…
What is true
Graphile Worker's official home page describes jobs built on PostgreSQL transactions. That supports the article's product definition. It does not verify the incident's job-selection plans.
Charitable reading
The definition concerns the queue's database foundation, not a guarantee about its access paths.

Source

Source · https://worker.graphile.org/built on Postgres' reliable transactions. Never lose a job.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Graphile Worker is a job queue built on Postgres…
All sources and excerpts · 2
Evidencebuilt on Postgres' reliable transactions. Never lose a job.
Evidencebuilt on Postgres' reliable transactions.
How the review tested this

Review: We tested whether the product page establishes sequential scans. The finding explicitly excludes execution-plan verification. The page supports only the PostgreSQL-backed queue description. E-31 and E-41 represent one source. We checked whether the product description proves sequential scans. The finding explicitly excludes that inference. The official page supports only the PostgreSQL-backed queue definition.

F10

Replication slots belong in a cleanup-horizon investigation

ACCURATEFactual · holds up after review

Claim ledger

Article says
Unused replication slots…
What is true
Replication slots can require an older cleanup horizon. procarray.c:1896-1902 incorporates slot xmin into data and shared horizons. REL_16_4 implements the same check. Investigating relevant slot xmin values fits this diagnosis.
Charitable reading
The checklist asks whether unused slots explain retention. It does not assert that every unused slot retains table rows.

Source

Source · REL_18_6 · src/backend/storage/ipc/procarray.c:1896-1902 * Check whether there are replication slots requiring an older xmin. */ h->shared_oldest_nonremovable = TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin); h->data_oldest_nonremovable = TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Unused replication slots…
All sources and excerpts · 2
Evidence * Check whether there are replication slots requiring an older xmin. */ h->shared_oldest_nonremovable = TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin); h->data_oldest_nonremovable = TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
Evidence * Check whether there are replication slots requiring an older xmin. */ h->shared_oldest_nonremovable = TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin); h->data_oldest_nonremovable = TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);

Version note: Publication-era comparison. The article does not identify its PostgreSQL version.

How the review tested this

Review: We tested whether unused slots necessarily retain table rows. The finding requires relevant slot xmin values. Both cited releases incorporate those values into cleanup horizons. We tested whether every unused slot retains table rows. The finding requires a relevant slot xmin. Both checked releases incorporate that xmin into cleanup horizons.

F11

Prepared transactions remain relevant to cleanup horizons

ACCURATEFactual · holds up after review

Claim ledger

Article says
Uncomitted PREPARED transactions…
What is true
Prepared transactions retain a dummy PGPROC that keeps their transaction ID considered running. twophase.c:24-26 documents that representation. Checking unresolved prepared transactions fits a retained-horizon investigation.
Charitable reading
The checklist identifies unresolved prepared transactions as possible holders. It does not claim they caused this incident.

Source

Source · REL_18_6 · src/backend/access/transam/twophase.c:21-27* A global transaction (gxact) also has dummy PGPROC; this is what keeps * the XID considered running by TransactionIdIsInProgress.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Uncomitted PREPARED transactions…
All sources and excerpts · 1
Evidence * A global transaction (gxact) also has dummy PGPROC; this is what keeps * the XID considered running by TransactionIdIsInProgress.
How the review tested this

Review: We tested whether preparation removes a transaction from the running-transaction representation. twophase.c states that its dummy PGPROC keeps the XID considered running. The finding does not attribute this incident to prepared transactions. We tested whether the finding identifies prepared transactions as the incident's cause. It does not. twophase.c documents the dummy PGPROC that keeps the transaction ID considered running.

F12

Repeated interruption can prevent autovacuum completion

ACCURATEFactual · holds up after review

Claim ledger

Article says
Was vacuuming getting terminated early?
What is true
Conflicting lock requests can interrupt ordinary autovacuum workers. maintenance.sgml:1032-1034 warns that repeated conflicting commands can prevent completion. Checking interrupted vacuum runs fits the article's diagnostic checklist.
Charitable reading
The checklist asks whether vacuum was interrupted. It does not assert that interruption caused this incident.

Source

Source · REL_18_6 · doc/src/sgml/maintenance.sgml:1010-1040Regularly running commands that acquire locks conflicting with a <literal>SHARE UPDATE EXCLUSIVE</literal> lock (e.g., ANALYZE) can effectively prevent autovacuums from ever completing.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Was vacuuming getting terminated early?
All sources and excerpts · 1
Evidence Regularly running commands that acquire locks conflicting with a <literal>SHARE UPDATE EXCLUSIVE</literal> lock (e.g., ANALYZE) can effectively prevent autovacuums from ever completing.
How the review tested this

Review: We checked the wraparound-prevention exception. maintenance.sgml distinguishes those workers from ordinary autovacuum. The finding limits its claim to ordinary workers and repeated conflicting commands. We checked the wraparound-worker exception. The finding confines interruption to ordinary autovacuum workers. The cited warning directly supports repeated interruptions preventing completion.

F13

Periodic autovacuum is the documented expectation

ACCURATEFactual · holds up after review

Claim ledger

Article says
Postgres should be auto-vacuuming these tables regularly.
What is true
PostgreSQL documents periodic vacuuming and ordinary use of autovacuum in doc/src/sgml/maintenance.sgml:70. It also warns that installations may require parameter changes. The article's expectation does not establish that cleanup succeeded.
Charitable reading
The sentence states an ordinary expectation for frequently modified tables, not a guaranteed schedule.

Source

Source · REL_18_6 · doc/src/sgml/maintenance.sgml:60-78<productname>PostgreSQL</productname> databases require periodic maintenance known as <firstterm>vacuuming</firstterm>. For many installations, it is sufficient to let vacuuming be performed by the <firstterm>autovacuum daemon</firstterm>, which is described in <xref linkend="autovacuum"/>. You might need to adjust the autovacuuming parameters described there to obtain best results for your situation.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Postgres should be auto-vacuuming these tables regularly.
All sources and excerpts · 1
Evidence <productname>PostgreSQL</productname> databases require periodic maintenance known as <firstterm>vacuuming</firstterm>. For many installations, it is sufficient to let vacuuming be performed by the <firstterm>autovacuum daemon</firstterm>, which is described in <xref linkend="autovacuum"/>. You might need to adjust the autovacuuming parameters described there to obtain best results for your situation.

Version note: Checks the documented expectation in PostgreSQL 18.6. The incident release is unspecified.

How the review tested this

Review: We tested whether periodic vacuuming implies guaranteed cleanup or an adequate default configuration. The finding expressly rejects both implications. maintenance.sgml supports periodic vacuuming and possible parameter adjustment. We tested whether the article promises an autovacuum schedule or successful cleanup. The finding treats the sentence as an expectation. It preserves the documented need for configuration changes.

F14

VACUUM VERBOSE produces detailed diagnostics

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Adding `VERBOSE` gives you useful output like this…
What is true
VACUUM VERBOSE prints a detailed activity report for each table at INFO level. PostgreSQL 18.6 documents this in doc/src/sgml/ref/vacuum.sgml:132.
Charitable reading
The sentence describes VERBOSE diagnostics rather than guaranteeing identical output across releases.

Source

Source · REL_18_6 · doc/src/sgml/ref/vacuum.sgml:129-137Prints a detailed vacuum activity report for each table at <literal>INFO</literal> level.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…Adding `VERBOSE` gives you useful output like this…
All sources and excerpts · 1
Evidence Prints a detailed vacuum activity report for each table at <literal>INFO</literal> level.

Version note: Checks the diagnostic option in PostgreSQL 18.6, not the historical transcript.

How the review tested this

Review: We tested whether VERBOSE documentation authenticates the displayed transcript. The finding endorses only detailed INFO-level diagnostics and identifies PostgreSQL 18.6. The cited option documentation supports that limited claim. We tested whether current documentation authenticates the displayed transcript. The finding verifies only the VERBOSE option. vacuum.sgml directly documents detailed reports at INFO level.

F15

Separate per-user concurrency remains supported

ACCURATEFactual · holds up after review

Claim ledger

Article says
…have separate concurrency for each of your users…
What is true
Trigger.dev documents separate concurrencyKey pools. Assigning different users different keys supports the capability the article describes.
Charitable reading
The article describes per-user concurrency as a capability rather than prescribing current SDK syntax.

Source

Source · https://trigger.dev/docs/queue-concurrencyperKey caps each concurrencyKey pool separately; runs triggered without a key share one pool.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…have separate concurrency for each of your users…
All sources and excerpts · 1
EvidenceperKey caps each concurrencyKey pool separately; runs triggered without a key share one pool.
How the review tested this

Review: We checked whether shared task limits invalidate per-user concurrency pools. The documentation supports separate keyed pools alongside aggregate limits. The finding verifies the capability, not historical SDK syntax. The page supplies no August 2024 version. We checked whether current concurrencyKey documentation establishes historical SDK syntax. The finding makes only a capability claim. Separate key pools support separate per-user concurrency.

F16

pganalyze documents configuration, query, and index advice

ACCURATEFactual · holds up after review

Claim ledger

Article says
It also provides proactive advice on config, queries and indexes.
What is true
pganalyze documents automated configuration checks, query tuning recommendations, and Index Advisor recommendations. These support the article's feature description.
Charitable reading
The sentence describes available advisory features, not guaranteed incident prevention.

Source

Source · https://pganalyze.com/Set up automated checks that analyze your Postgres configuration and suggest optimizations.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)It also provides proactive advice on config, queries and indexes.
All sources and excerpts · 3
EvidenceSet up automated checks that analyze your Postgres configuration and suggest optimizations.
Evidencepganalyze Index Advisor Automatically detects missing indexes and recommends single and multi-column indexes that improve query performance across your databases.
EvidenceFind root causes of slow queries Understand why a query is slow and get tuning recommendations on how to make the query faster.
How the review tested this

Review: We tested whether advertised features establish recommendation quality or incident prevention. The finding claims neither. The page separately documents configuration checks, query recommendations, and index advice. These quotations share one current source. We tested whether advertised features prove recommendation quality or incident prevention. The finding claims neither. The product page separately documents configuration checks, query advice, and index recommendations.

F17

The 1.15% page fraction rounds correctly

ACCURATEFactual · holds up after review

Claim ledger

Article says
…199 pages from table (1.15% of total)…
What is true
199 of 17,272 table pages is 1.15% after rounding (derived: 199 / 17,272 × 100).
Charitable reading
The percentage uses the full table's page count, rather than only scanned pages.

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)…199 pages from table (1.15% of total)…
How the review tested this

Review: We recalculated the percentage using total pages rather than scanned pages. The result rounds to 1.15% (derived: 199 / 17,272 × 100). This establishes arithmetic consistency only. We recomputed the percentage using total table pages. 199 / 17,272 × 100 rounds to 1.15%. The finding verifies arithmetic without authenticating the measurement.

F18

Scanned and skipped pages equal the table total

ACCURATEFactual · holds up after review

Claim ledger

Article says
…17202 out of 17272 pages…
What is true
17,202 scanned pages plus 70 skipped pages equals 17,272 total pages. The page counts contain no arithmetic discrepancy.
Charitable reading
The output distinguishes scanned pages from pages skipped because of buffer pins.

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)…17202 out of 17272 pages…
How the review tested this

Review: We checked whether skipped or frozen pages create an accounting discrepancy. The output lists 70 skipped pages and zero frozen pages. Adding 70 to 17,202 gives 17,272 pages. We checked whether skipped pages explain the difference. 17,202 scanned pages plus 70 skipped pages equals 17,272 pages. The finding claims only internal arithmetic consistency.

Notes

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

Note: “…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…”

NOTEholds up after review

Claim ledger

Article says
…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…
What is true
The command targets graphile_worker.job. The output names graphile_worker._private_jobs. The phrase 'like this' permits an illustrative example. Verify the installed relation before copying the command.
So what
Confirm the installed relation name before choosing the target of VACUUM (VERBOSE, ANALYZE).

Not graded: no reader would act differently on it.

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)…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…
How the review tested this

Review: We tested the illustrative reading permitted by 'like this'. The finding already accepts it and assigns no graded error. The relation names differ, but those names alone do not establish an impossible transcript. We tested the illustrative reading against the article's phrase 'like this'. The finding already accepts that reading. The relation names differ, and the note makes no claim about transcript authenticity.

More in this report

Section checks · 6 sections

Section checks

AspectGradeFindingsCoverage
Cause summaryA1 verified-accurate50% of claims (1 of 2, plus 3 that need data we do not have)provisional
TaskQueue transactionsA2 verified-accurate100% of claims (1 of 1, plus 6 that need data we do not have)
Dead tuplesA1 imprecise · 3 verified-accurate100% of claims (6 of 6, plus 4 that need data we do not have)
Vacuum diagnosticsA1 imprecise · 4 verified-accurate100% of claims (11 of 11, plus 5 that need data we do not have)
Attempted remediesA5 verified-accurate100% of claims (5 of 5, plus 1 that need data we do not have)
PreventionA1 verified-accurateno checkable claims
Coverage and assessment · Checked 25 of 26 Postgres claims across 17 sections

Central claim not verified. The findings check xmin diagnostics, but do not establish the incident’s causal diagnosis or test its failover remedy.

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.

What we did not check

  • We did not verify the incident's CPU measurements, transaction failures, lock waits, or failover outcome.
  • We did not verify Graphile Worker's job-selection plans or the application's Prisma schema and generated SQL.
  • We did not verify which relation graphile_worker.job names in the displayed VACUUM command.
  • We did not verify the RDS deployment type or its promotion and failover behavior.
  • The article does not identify its PostgreSQL version, so we could not match every check to that version.
  • We did not verify the August 15 incident's causal diagnosis, workload, or recovery from database logs.
  • We did not verify the RDS deployment type or the former primary's role after failover.
  • We did not establish which PostgreSQL release ran during the incident or whether a later release fixed its cause.
  • We could not verify Graphile Worker's job-selection plan from its introduction page.
  • We did not read the author's social profile or the linked dead-tuple cheatsheet.
  • We did not inspect the article's CPU, run-volume, or Performance Insights images.
  • We did not independently verify the incident's CPU, query latency, throughput, tuple counts, or failover duration.
  • We did not inspect the article's run-volume charts, Performance Insights images, or bulk-replay video.
  • We did not reproduce the SQL examples or verify the installed Graphile Worker schema.
  • Section “Cause summary”: we checked 1 of 5 checkable claims.
  • We could not decide whether the article contains a material benchmark.
Checked 25 of 26 Postgres claims across 17 sections
  • Incident overview: 3 claims are the author's own account; nothing checkable; not counted: 5 product or opinion, 6 not a claim
  • Impact: no checkable claims; not counted: 7 product or opinion, 1 duplicate, 1 not a claim
  • Bulk replay: no checkable claims; not counted: 3 product or opinion, 1 not a claim
  • Cause summary: 1 of 2 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 1 not a claim; not checked: 1 for other reasons
  • Timeline context: no checkable claims; not counted: 5 product or opinion, 1 not a claim
  • CPU spike: 2 claims are the author's own account; nothing checkable; not counted: 1 product or opinion, 1 not a claim
  • Run volume: no checkable claims; not counted: 4 product or opinion, 1 not a claim
  • Initial degradation: 2 claims are the author's own account; nothing checkable; not counted: 5 product or opinion, 1 not a claim
  • Performance Insights: 6 claims are the author's own account; nothing checkable; not counted: 3 product or opinion, 2 not a claim
  • TaskQueue transactions: 1 of 1 Postgres claims checked, plus 6 that need data we do not have; not counted: 4 product or opinion, 2 duplicate, 1 not a claim
  • Dead tuples: 6 of 6 Postgres claims checked, plus 4 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 1 not a claim
  • Vacuum diagnostics: 11 of 11 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate, 1 not a claim
  • Attempted remedies: 5 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 1 not a claim
  • Failover: 4 claims are the author's own account; nothing checkable; not counted: 4 product or opinion, 1 duplicate, 1 not a claim
  • Lessons: 1 of 1 Postgres claims checked; not counted: 4 product or opinion, 1 duplicate, 1 not a claim
  • Prevention: no checkable claims; not counted: 6 product or opinion, 2 duplicate, 1 not a claim
  • Closing: no checkable claims; not counted: 2 product or opinion, 1 not a claim

Average of 5 axes: 3.86 · 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 · 1 caveat. Applicable A · 0 wrong of 6 checked · 1 caveat. Consistent A · 0 wrong of 18 checked · 0 caveats. Transparent A · 0 wrong of 8 checked · 0 caveats. Safe B+ · 0 wrong of 5 checked · 0 caveats · 1 unwarned risk. A 0 wrong of 18 checked · 1 caveatFactual A0 wrong of 181 caveat A 0 wrong of 6 checked · 1 caveatApplicable A0 wrong of 61 caveat A 0 wrong of 18 checked · 0 caveatsConsistent A0 wrong of 180 caveats A 0 wrong of 8 checked · 0 caveatsTransparent A0 wrong of 80 caveats B+ 0 wrong of 5 checked · 0 caveats 1 unwarned riskSafe B+0 wrong of 50 caveats1 unwarned risk

By topic: Cause summary — 1 finding, 0 wrong · TaskQueue transactions — 2 findings, 0 wrong · Dead tuples — 4 findings, 0 wrong · Vacuum diagnostics — 5 findings, 0 wrong · Attempted remedies — 5 findings, 0 wrong · Prevention — 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.

AxisLetterWrongCaveatsCheckedCoverage
FactualA0118assessed: A · 0 wrong of 18 checked · 1 caveat
ApplicableA016assessed: A · 0 wrong of 6 checked · 1 caveat
ConsistentA0018assessed: A · 0 wrong of 18 checked · 0 caveats
TransparentA008assessed: A · 0 wrong of 8 checked · 0 caveats
SafeB+005assessed: B+ · 0 wrong of 5 checked · 0 caveats · 1 unwarned risk

Safe. Recommended for production with no warning about data loss, downtime or a missing prerequisite: “Terminating long-running transactions using `pg_terminate_backend()` 2.”

Topics · 6 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Cause summary0 issues 1 checked F90 issues 1 checked0 issues 1 checked
TaskQueue transactions0 issues 2 checked F5 F150 issues 2 checked0 issues 1 checked
Dead tuples0 issues 4 checked F3 F8 F131 issue 2 checked F20 issues 4 checked0 issues 1 checked
Vacuum diagnostics1 issue 5 checked F1 F4 F14 F17 F180 issues 1 checked0 issues 5 checked0 issues 3 checked
Attempted remedies0 issues 5 checked F6 F7 F10 F11 F120 issues 3 checked0 issues 5 checked0 issues 1 checked
Prevention0 issues 1 checked F160 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: 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-09-10 03:14 UTC · A- · audit version not recorded · regrade version not recorded

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

    ElephantSeal: A-.

    Changes: First audit. Open: F2 “The oldest xmin is the transaction ID of the oldest transaction that's still running.” (mostly accurate); F3 “A dead tuple is a row that has been deleted but not yet vacuumed.” (mostly accurate); F8 “…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…” (mostly accurate); F12 “Graphile Worker does a sequential scan to find the next job to run.” (mostly accurate); F14 “For the first few hours this didn't cause any major problems…” (mostly accurate); F9 “…DETAIL: 662319 dead row versions cannot be removed yet, oldest xmin: 1706280686…” (outdated).

  2. Revision 2 · this page · 2026-10-19 06:36 UTC · A · audited with v1.0.14 (approx.) · regraded with v1.0.19 (approx.)

    Article text changed. 16 accurate · 0 wrong · 2 caveats.

    ElephantSeal: A. Open: the production risk is not yet fixed or warned about.

    Changes: No longer reported: “The oldest xmin is the transaction ID of the oldest transaction that's still running.”; “…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…”; “Graphile Worker does a sequential scan to find the next job to run.”; “For the first few hours this didn't cause any major problems…”; “…DETAIL: 662319 dead row versions cannot be removed yet, oldest xmin: 1706280686…”. New: F1 “The cleanup horizon is not just the oldest running transaction ID” (mostly accurate).

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: How we stopped xmin horizon blocking Postgres vacuuming: a deepdive

Article title: How we stopped xmin horizon blocking Postgres vacuuming: a deepdive
Article URL: https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming
Report URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59
Audited revision: 2 of 2, 2026-10-19 06:36:20 UTC
Overall letter: A

## Axes

- Factual: A · 0 wrong · 18 checked · 1 caveats · assessed
- Applicable: A · 0 wrong · 6 checked · 1 caveats · assessed
- Consistent: A · 0 wrong · 18 checked · 0 caveats · assessed
- Transparent: A · 0 wrong · 8 checked · 0 caveats · assessed
- Safe: B+ · 0 wrong · 5 checked · 0 caveats · assessed

ElephantSeal: A.
Open conditions: the production risk is not yet fixed or warned about.

## Report metadata

- Report: Technical fact-check, edition 3
- Issued: 2026-10-19
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. The article changed 1 time after our first audit; we re-audited each version. See Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
- pgTrue version: audited with v1.0.14 (approx.) · regraded with v1.0.19 (approx.)

## Findings needing a change (2)

### F1 · Imprecise · Factual · The cleanup horizon is not just the oldest running transaction ID
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=The%20%60oldest%20xmin%60%20is%20the,oldest%20transaction%20that%27s%20still%20running.)
Article says:
```text
…The `oldest xmin` is the transaction ID of the oldest transaction that's still running.
```
What is true:
VACUUM uses a cleanup horizon derived from transaction IDs, snapshot xmin values, and replication slots. procarray.c:1805-1811 compares xmin with xid. Lines 1896-1902 incorporate slot xmin. REL_16_4 does the same. Searching only running transaction IDs can miss the holder.
So what:
Inspect backend_xmin and replication-slot xmin alongside backend_xid instead of searching only for a matching running transaction ID.
Charitable reading:
The later checklist correctly includes replication slots and prepared transactions. That limits the defect to the definition.
Review: We tested the later checklist as a qualification. It limits the defect but does not fix the definition. Both releases incorporate slot xmin. The source also distinguishes snapshot xmin from transaction xid. Inspecting both changes the diagnostic search. We tested whether the later checklist repairs the definition. It limits the defect but leaves the definition incomplete. Snapshot xmin and slot xmin need not identify a running transaction. Inspecting those fields changes the investigation.

Sources:
- [REL_18_6 · src/backend/storage/ipc/procarray.c:1896-1902](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/procarray.c#L1896-L1902)
  Excerpt:
  ```text
  * Check whether there are replication slots requiring an older xmin.
	 */
	h->shared_oldest_nonremovable =
		TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin);
	h->data_oldest_nonremovable =
		TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
  ```
- [REL_16_4 · src/backend/storage/ipc/procarray.c:1892-1898](https://github.com/postgres/postgres/blob/2caa85f4aae689e6f6721d7363b4c66a2a6417d6/src/backend/storage/ipc/procarray.c#L1892-L1898)
  Qualification: Version note: Publication-era comparison. The article does not identify its PostgreSQL version.
  Excerpt:
  ```text
  * Check whether there are replication slots requiring an older xmin.
	 */
	h->shared_oldest_nonremovable =
		TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin);
	h->data_oldest_nonremovable =
		TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
  ```
- [REL_18_6 · src/backend/storage/ipc/procarray.c:1800-1935](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/procarray.c#L1800-L1935)
  Excerpt:
  ```text
  * Consider both the transaction's Xmin, and its Xid.
		 *
		 * We must check both because a transaction might have an Xmin but not
		 * (yet) an Xid; conversely, if it has an Xid, that could determine
		 * some not-yet-set Xmin.
		 */
		xmin = TransactionIdOlder(xmin, xid);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F1

### F2 · Imprecise · Applicable · UPDATE also produces dead tuples
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=A%20dead%20tuple%20is%20a,deleted%20but%20not%20yet%20vacuumed.)
Article says:
```text
A dead tuple is a row that has been deleted but not yet vacuumed.
```
What is true:
Dead tuples include obsolete row versions from UPDATE, not only deleted rows. pgstat_relation.c:582-584 counts both operations as dead-tuple producers. REL_16_4 maintenance.sgml:156-158 documents both. Restricting monitoring to deletion-heavy tables misses update-generated dead versions.
So what:
Include UPDATE-heavy tables when selecting tables for dead-tuple monitoring and vacuum investigation.
Charitable reading:
The jobs table may primarily accumulate deleted jobs. The sentence nevertheless defines dead tuples generally.
Review: We tested whether the deletion-heavy queue makes the definition adequate. The sentence defines dead tuples generally. REL_16_4 documents obsolete UPDATE versions, and REL_18_6 counts them. Including UPDATE-heavy tables is a concrete monitoring decision. We tested the deletion-heavy queue context. The quoted sentence still defines dead tuples generally. Publication-era documentation includes obsolete UPDATE versions. Adding UPDATE-heavy tables to monitoring is concrete and supports the limited severity.

Sources:
- [REL_18_6 · src/backend/utils/activity/pgstat_relation.c:576-588](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/activity/pgstat_relation.c#L576-L588)
  Excerpt:
  ```text
  /* update and delete each create a dead tuple */
			tabstat->counts.delta_dead_tuples +=
				trans->tuples_updated + trans->tuples_deleted;
  ```
- [REL_16_4 · doc/src/sgml/maintenance.sgml:156-165](https://github.com/postgres/postgres/blob/2caa85f4aae689e6f6721d7363b4c66a2a6417d6/doc/src/sgml/maintenance.sgml#L156-L165)
  Qualification: Version note: Publication-era documentation confirms the same behavior.
  Excerpt:
  ```text
  In <productname>PostgreSQL</productname>, an
    <command>UPDATE</command> or <command>DELETE</command> of a row does not
    immediately remove the old version of the row.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F2

## Verified accurate claims (16)

### F3 · Accurate · Factual · pg_stat_user_tables provides dead-row estimates
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=You%20can%20run%20this%20query,see%20how%20many%20%5Bdead%20tuples%5D)
Article says:
```text
…You can run this query to see how many [dead tuples]…
```
What is true:
pg_stat_user_tables exposes estimated live and dead row counts for user tables. system_views.sql:696-697 selects those counters. monitoring.sgml:3961-3964 identifies n_dead_tup as an estimate. The displayed percentages and ordering provide useful diagnostics.
Charitable reading:
The article presents a diagnostic query. It does not explicitly promise an exact physical count.
Review: We checked whether the finding mistakes estimates for physical counts. It explicitly calls them estimates. The view definitions and documentation support that qualification. The article's positive dead-count filter also avoids a zero denominator. We checked whether the finding promises exact counts. It explicitly describes estimates. The view definitions expose the documented counters. The article's diagnostic framing supports that reading.

Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:691-704](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L691-L704)
  Excerpt:
  ```text
  pg_stat_get_live_tuples(C.oid) AS n_live_tup,
            pg_stat_get_dead_tuples(C.oid) AS n_dead_tup,
  ```
- [REL_18_6 · src/backend/catalog/system_views.sql:724-754](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L724-L754)
  Excerpt:
  ```text
  CREATE VIEW pg_stat_user_tables AS
    SELECT * FROM pg_stat_all_tables
    WHERE schemaname NOT IN ('pg_catalog', 'information_schema') AND
          schemaname !~ '^pg_toast';
  ```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:3948-3967](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L3948-L3967)
  Excerpt:
  ```text
  <structfield>n_dead_tup</structfield> <type>bigint</type>
      </para>
      <para>
       Estimated number of dead rows
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F3

### F4 · Accurate · Factual · The size expression subtracts the main relation fork from total storage
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=pg_size_pretty%28pg_total_relation_size%28relid%29%20%2D%20pg_relation_size%28relid%29%29%20AS%20external_size%2C)
Article says:
```text
…pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) AS external_size,…
```
What is true:
pg_total_relation_size includes table storage, indexes, and TOAST. One-argument pg_relation_size measures the main fork. Their difference includes indexes, TOAST, and auxiliary forks. pg_size_pretty formats the resulting byte count. dbsize.c and pg_proc.dat implement these operations.
Charitable reading:
The alias external_size does not explicitly claim to measure TOAST alone.
Review: We tested whether external_size excludes auxiliary forks or indexes. It does neither. dbsize.c explicitly includes heap, indexes, TOAST, FSM, and VM. Subtracting the main fork supports the finding's stated scope. We tested whether external_size means TOAST alone. The finding avoids that interpretation. Documentation and implementation support subtracting the main fork from total storage, including auxiliary forks and indexes.

Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:30273-30277](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L30273-L30277)
  Excerpt:
  ```text
  Computes the total disk space used by the specified table, including
        all indexes and <acronym>TOAST</acronym> data.
  ```
- [REL_18_6 · doc/src/sgml/func.sgml:30159-30164](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L30159-L30164)
  Excerpt:
  ```text
  forks.)  With one argument, this returns the size of the main data
        fork of the relation.
  ```
- [REL_18_6 · doc/src/sgml/func.sgml:30209-30227](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L30209-L30227)
  Excerpt:
  ```text
  Converts a size in bytes into a more easily human-readable format with
        size units (bytes, kB, MB, GB, TB, or PB as appropriate).
  ```
- [REL_18_6 · src/backend/utils/adt/dbsize.c:537-607](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/dbsize.c#L537-L607)
  Excerpt:
  ```text
  size = calculate_table_size(rel);

	/*
	 * Add size of all attached indexes as well
	 */
	size += calculate_indexes_size(rel);
  ```
- [REL_18_6 · src/include/catalog/pg_proc.dat:7743-7747](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/catalog/pg_proc.dat#L7743-L7747)
  Excerpt:
  ```text
  descr => 'disk space usage for the main fork of the specified table or index',
  proname => 'pg_relation_size', prolang => 'sql', provolatile => 'v',
  ```
- [REL_18_6 · src/backend/utils/adt/dbsize.c:537-607](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/dbsize.c#L537-L607)
  Excerpt:
  ```text
  snprintf(buf, sizeof(buf), INT64_FORMAT " %s", size, unit->name);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F4

### F5 · Accurate · Factual · pg_cancel_backend targets the executing query
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=We%20manually%20cancelled%20these%20transactions%20using%20%60pg_cancel_backend%60)
Article says:
```text
We manually cancelled these transactions using `pg_cancel_backend`…
```
What is true:
pg_cancel_backend sends SIGINT to the selected backend. func.sgml:28688-28689 specifies current-query cancellation. signalfuncs.c:138 implements that signal. This fits an attempt to cancel executing upserts. It does not establish that their sessions terminated.
Charitable reading:
The sentence describes cancelling executing upserts during an incident, not a general guarantee that cancellation terminates sessions.
Review: We challenged the distinction between cancelling transactions and terminating sessions. The finding limits its endorsement to cancelling executing upserts. SIGINT and the current-query documentation support that reading without authenticating the incident. We challenged the difference between cancelling a query and terminating a session. The finding states that distinction and verifies only the attempted query cancellation. It does not authenticate the incident calls.

Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:28687-28690](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L28687-L28690)
  Excerpt:
  ```text
  Cancels the current query of the session whose backend process has the
        specified process ID.
  ```
- [REL_18_6 · src/backend/storage/ipc/signalfuncs.c:134-139](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/signalfuncs.c#L134-L139)
  Excerpt:
  ```text
  int			r = pg_signal_backend(PG_GETARG_INT32(0), SIGINT);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F5

### F6 · Accurate · Factual · Verified accurate: “Terminating long-running transactions using \`pg_terminate_backend()\`…”
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Terminating%20long%2Drunning%20transactions%20using%20%60pg_terminate_backend%28%29%60)
Article says:
```text
Terminating long-running transactions using `pg_terminate_backend()`…
```
What is true:
pg_terminate_backend targets the selected session. doc/src/sgml/func.sgml:28766-28767 documents session termination. src/backend/storage/ipc/signalfuncs.c:251 sends SIGTERM. These citations establish the termination mechanism. They do not establish its effect on the cleanup horizon.
Review: We checked session termination against statement cancellation. The cited ranges establish session termination and SIGTERM delivery. Neither establishes cleanup-horizon behavior.

Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:28766-28769](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L28766-L28769)
  Excerpt:
  ```text
  Terminates the session whose backend process has the
        specified process ID.
  ```
- [REL_18_6 · src/backend/storage/ipc/signalfuncs.c:235-253](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/signalfuncs.c#L235-L253)
  Excerpt:
  ```text
  r = pg_signal_backend(pid, SIGTERM);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F6

### F7 · Accurate · Factual · Disabling standby feedback can release its reported horizons
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=%60hot_standby_feedback%20%3D%20off%60)
Article says:
```text
`hot_standby_feedback = off`…
```
What is true:
hot_standby_feedback can retain primary row versions. walreceiver.c:1286-1294 obtains replication horizons when enabled and reports invalid horizons when disabled. Disabling it addresses this retention mechanism. It does not remove unrelated transaction or replication-slot constraints.
Charitable reading:
The article lists disabling feedback as an attempted remedy. It does not claim the setting clears every possible horizon holder.
Review: We tested whether disabling feedback guarantees release of every slot constraint. The finding explicitly excludes unrelated constraints. walreceiver.c selects invalid horizons when feedback is disabled. The documentation confirms feedback can cause primary bloat. We tested whether disabling feedback removes every retention constraint. The finding expressly excludes unrelated constraints. walreceiver.c selects invalid feedback horizons when the setting is disabled.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:5235-5245](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L5235-L5245)
  Excerpt:
  ```text
  can cause database bloat on the primary for some workloads.
        Feedback messages will not be sent more frequently than once per
        <varname>wal_receiver_status_interval</varname>.
  ```
- [REL_18_6 · src/backend/replication/walreceiver.c:1283-1297](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/walreceiver.c#L1283-L1297)
  Excerpt:
  ```text
  if (hot_standby_feedback)
	{
		GetReplicationHorizons(&xmin, &catalog_xmin);
	}
	else
	{
		xmin = InvalidTransactionId;
		catalog_xmin = InvalidTransactionId;
	}
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F7

### F8 · Accurate · Factual · Sequential scans skip invisible row versions
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Dead%20tuples%20matter%20when%20you,has%20to%20skip%20over%20them)
Article says:
```text
Dead tuples matter when you do a sequential scan because Postgres has to skip over them…
```
What is true:
Heap scans inspect tuple visibility and skip versions invisible to their snapshot. heapam.c:955-965 performs the visibility test and skip. Retained versions consume storage that scans traverse. This supports the stated scan-cost mechanism.
Charitable reading:
The article explains scan overhead. It does not assert that dead versions appear in query results.
Review: We checked whether heap visibility code proves Graphile Worker's execution plan. It does not, and the finding makes no such claim. The cited loop visits pages and skips invisible tuples. We checked whether heap visibility code establishes Graphile Worker's execution plan. It does not, and the finding confines its conclusion to PostgreSQL scan behavior. The loop skips invisible versions.

Sources:
- [REL_18_6 · src/backend/access/heap/heapam.c:920-972](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L920-L972)
  Excerpt:
  ```text
  /* skip tuples not visible to this snapshot */
			if (!visible)
				continue;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F8

### F9 · Accurate · Factual · Graphile Worker uses PostgreSQL for its job queue
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Graphile%20Worker%20is%20a%20job%20queue%20built%20on%20Postgres)
Article says:
```text
Graphile Worker is a job queue built on Postgres…
```
What is true:
Graphile Worker's official home page describes jobs built on PostgreSQL transactions. That supports the article's product definition. It does not verify the incident's job-selection plans.
Charitable reading:
The definition concerns the queue's database foundation, not a guarantee about its access paths.
Review: We tested whether the product page establishes sequential scans. The finding explicitly excludes execution-plan verification. The page supports only the PostgreSQL-backed queue description. E-31 and E-41 represent one source. We checked whether the product description proves sequential scans. The finding explicitly excludes that inference. The official page supports only the PostgreSQL-backed queue definition.

Sources:
- [https://worker.graphile.org/](https://worker.graphile.org/)
  Excerpt:
  ```text
  built on Postgres' reliable transactions. Never lose a job.
  ```
- [https://worker.graphile.org/](https://worker.graphile.org/)
  Excerpt:
  ```text
  built on Postgres' reliable transactions.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F9

### F10 · Accurate · Factual · Replication slots belong in a cleanup-horizon investigation
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Unused%20replication%20slots)
Article says:
```text
Unused replication slots…
```
What is true:
Replication slots can require an older cleanup horizon. procarray.c:1896-1902 incorporates slot xmin into data and shared horizons. REL_16_4 implements the same check. Investigating relevant slot xmin values fits this diagnosis.
Charitable reading:
The checklist asks whether unused slots explain retention. It does not assert that every unused slot retains table rows.
Review: We tested whether unused slots necessarily retain table rows. The finding requires relevant slot xmin values. Both cited releases incorporate those values into cleanup horizons. We tested whether every unused slot retains table rows. The finding requires a relevant slot xmin. Both checked releases incorporate that xmin into cleanup horizons.

Sources:
- [REL_18_6 · src/backend/storage/ipc/procarray.c:1896-1902](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/procarray.c#L1896-L1902)
  Excerpt:
  ```text
  * Check whether there are replication slots requiring an older xmin.
	 */
	h->shared_oldest_nonremovable =
		TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin);
	h->data_oldest_nonremovable =
		TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
  ```
- [REL_16_4 · src/backend/storage/ipc/procarray.c:1892-1898](https://github.com/postgres/postgres/blob/2caa85f4aae689e6f6721d7363b4c66a2a6417d6/src/backend/storage/ipc/procarray.c#L1892-L1898)
  Qualification: Version note: Publication-era comparison. The article does not identify its PostgreSQL version.
  Excerpt:
  ```text
  * Check whether there are replication slots requiring an older xmin.
	 */
	h->shared_oldest_nonremovable =
		TransactionIdOlder(h->shared_oldest_nonremovable, h->slot_xmin);
	h->data_oldest_nonremovable =
		TransactionIdOlder(h->data_oldest_nonremovable, h->slot_xmin);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F10

### F11 · Accurate · Factual · Prepared transactions remain relevant to cleanup horizons
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Uncomitted%20PREPARED%20transactions)
Article says:
```text
Uncomitted PREPARED transactions…
```
What is true:
Prepared transactions retain a dummy PGPROC that keeps their transaction ID considered running. twophase.c:24-26 documents that representation. Checking unresolved prepared transactions fits a retained-horizon investigation.
Charitable reading:
The checklist identifies unresolved prepared transactions as possible holders. It does not claim they caused this incident.
Review: We tested whether preparation removes a transaction from the running-transaction representation. twophase.c states that its dummy PGPROC keeps the XID considered running. The finding does not attribute this incident to prepared transactions. We tested whether the finding identifies prepared transactions as the incident's cause. It does not. twophase.c documents the dummy PGPROC that keeps the transaction ID considered running.

Sources:
- [REL_18_6 · src/backend/access/transam/twophase.c:21-27](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/twophase.c#L21-L27)
  Excerpt:
  ```text
  *		A global transaction (gxact) also has dummy PGPROC; this is what keeps
 *		the XID considered running by TransactionIdIsInProgress.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F11

### F12 · Accurate · Factual · Repeated interruption can prevent autovacuum completion
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Was%20vacuuming%20getting%20terminated%20early%3F)
Article says:
```text
Was vacuuming getting terminated early?
```
What is true:
Conflicting lock requests can interrupt ordinary autovacuum workers. maintenance.sgml:1032-1034 warns that repeated conflicting commands can prevent completion. Checking interrupted vacuum runs fits the article's diagnostic checklist.
Charitable reading:
The checklist asks whether vacuum was interrupted. It does not assert that interruption caused this incident.
Review: We checked the wraparound-prevention exception. maintenance.sgml distinguishes those workers from ordinary autovacuum. The finding limits its claim to ordinary workers and repeated conflicting commands. We checked the wraparound-worker exception. The finding confines interruption to ordinary autovacuum workers. The cited warning directly supports repeated interruptions preventing completion.

Sources:
- [REL_18_6 · doc/src/sgml/maintenance.sgml:1010-1040](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L1010-L1040)
  Excerpt:
  ```text
  Regularly running commands that acquire locks conflicting with a
     <literal>SHARE UPDATE EXCLUSIVE</literal> lock (e.g., ANALYZE) can
     effectively prevent autovacuums from ever completing.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F12

### F13 · Accurate · Factual · Periodic autovacuum is the documented expectation
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Postgres%20should%20be%20auto%2Dvacuuming%20these%20tables%20regularly.)
Article says:
```text
Postgres should be auto-vacuuming these tables regularly.
```
What is true:
PostgreSQL documents periodic vacuuming and ordinary use of autovacuum in doc/src/sgml/maintenance.sgml:70. It also warns that installations may require parameter changes. The article's expectation does not establish that cleanup succeeded.
Charitable reading:
The sentence states an ordinary expectation for frequently modified tables, not a guaranteed schedule.
Review: We tested whether periodic vacuuming implies guaranteed cleanup or an adequate default configuration. The finding expressly rejects both implications. maintenance.sgml supports periodic vacuuming and possible parameter adjustment. We tested whether the article promises an autovacuum schedule or successful cleanup. The finding treats the sentence as an expectation. It preserves the documented need for configuration changes.

Sources:
- [REL_18_6 · doc/src/sgml/maintenance.sgml:60-78](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L60-L78)
  Qualification: Version note: Checks the documented expectation in PostgreSQL 18.6. The incident release is unspecified.
  Excerpt:
  ```text
  <productname>PostgreSQL</productname> databases require periodic
   maintenance known as <firstterm>vacuuming</firstterm>.  For many installations, it
   is sufficient to let vacuuming be performed by the <firstterm>autovacuum
   daemon</firstterm>, which is described in <xref linkend="autovacuum"/>.  You might
   need to adjust the autovacuuming parameters described there to obtain best
   results for your situation.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F13

### F14 · Accurate · Factual · VACUUM VERBOSE produces detailed diagnostics
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=Adding%20%60VERBOSE%60%20gives%20you%20useful%20output%20like%20this)
Article says:
```text
…Adding `VERBOSE` gives you useful output like this…
```
What is true:
VACUUM VERBOSE prints a detailed activity report for each table at INFO level. PostgreSQL 18.6 documents this in doc/src/sgml/ref/vacuum.sgml:132.
Charitable reading:
The sentence describes VERBOSE diagnostics rather than guaranteeing identical output across releases.
Review: We tested whether VERBOSE documentation authenticates the displayed transcript. The finding endorses only detailed INFO-level diagnostics and identifies PostgreSQL 18.6. The cited option documentation supports that limited claim. We tested whether current documentation authenticates the displayed transcript. The finding verifies only the VERBOSE option. vacuum.sgml directly documents detailed reports at INFO level.

Sources:
- [REL_18_6 · doc/src/sgml/ref/vacuum.sgml:129-137](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/vacuum.sgml#L129-L137)
  Qualification: Version note: Checks the diagnostic option in PostgreSQL 18.6, not the historical transcript.
  Excerpt:
  ```text
  Prints a detailed vacuum activity report for each table
      at <literal>INFO</literal> level.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F14

### F15 · Accurate · Factual · Separate per-user concurrency remains supported
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=have%20separate%20concurrency%20for%20each%20of%20your%20users)
Article says:
```text
…have separate concurrency for each of your users…
```
What is true:
Trigger.dev documents separate concurrencyKey pools. Assigning different users different keys supports the capability the article describes.
Charitable reading:
The article describes per-user concurrency as a capability rather than prescribing current SDK syntax.
Review: We checked whether shared task limits invalidate per-user concurrency pools. The documentation supports separate keyed pools alongside aggregate limits. The finding verifies the capability, not historical SDK syntax. The page supplies no August 2024 version. We checked whether current concurrencyKey documentation establishes historical SDK syntax. The finding makes only a capability claim. Separate key pools support separate per-user concurrency.

Sources:
- [https://trigger.dev/docs/queue-concurrency](https://trigger.dev/docs/queue-concurrency)
  Excerpt:
  ```text
  perKey caps each concurrencyKey pool separately; runs triggered without a key share one pool.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F15

### F16 · Accurate · Factual · pganalyze documents configuration, query, and index advice
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=It%20also%20provides%20proactive%20advice%20on%20config%2C%20queries%20and%20indexes.)
Article says:
```text
It also provides proactive advice on config, queries and indexes.
```
What is true:
pganalyze documents automated configuration checks, query tuning recommendations, and Index Advisor recommendations. These support the article's feature description.
Charitable reading:
The sentence describes available advisory features, not guaranteed incident prevention.
Review: We tested whether advertised features establish recommendation quality or incident prevention. The finding claims neither. The page separately documents configuration checks, query recommendations, and index advice. These quotations share one current source. We tested whether advertised features prove recommendation quality or incident prevention. The finding claims neither. The product page separately documents configuration checks, query advice, and index recommendations.

Sources:
- [https://pganalyze.com/](https://pganalyze.com/)
  Excerpt:
  ```text
  Set up automated checks that analyze your Postgres configuration and suggest optimizations.
  ```
- [https://pganalyze.com/](https://pganalyze.com/)
  Excerpt:
  ```text
  pganalyze Index Advisor Automatically detects missing indexes and recommends single and multi-column indexes that improve query performance across your databases.
  ```
- [https://pganalyze.com/](https://pganalyze.com/)
  Excerpt:
  ```text
  Find root causes of slow queries Understand why a query is slow and get tuning recommendations on how to make the query faster.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F16

### F17 · Accurate · Factual · The 1.15% page fraction rounds correctly
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=199%20pages%20from%20table%20%281.15%25%20of%20total%29)
Article says:
```text
…199 pages from table (1.15% of total)…
```
What is true:
199 of 17,272 table pages is 1.15% after rounding (derived: 199 / 17,272 × 100).
Charitable reading:
The percentage uses the full table's page count, rather than only scanned pages.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated the percentage using total pages rather than scanned pages. The result rounds to 1.15% (derived: 199 / 17,272 × 100). This establishes arithmetic consistency only. We recomputed the percentage using total table pages. 199 / 17,272 × 100 rounds to 1.15%. The finding verifies arithmetic without authenticating the measurement.

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F17

### F18 · Accurate · Factual · Scanned and skipped pages equal the table total
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=17202%20out%20of%2017272%20pages)
Article says:
```text
…17202 out of 17272 pages…
```
What is true:
17,202 scanned pages plus 70 skipped pages equals 17,272 total pages. The page counts contain no arithmetic discrepancy.
Charitable reading:
The output distinguishes scanned pages from pages skipped because of buffer pins.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We checked whether skipped or frozen pages create an accounting discrepancy. The output lists 70 skipped pages and zero frozen pages. Adding 70 to 17,202 gives 17,272 pages. We checked whether skipped pages explain the difference. 17,202 scanned pages plus 70 skipped pages equals 17,272 pages. The finding claims only internal arithmetic consistency.

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F18

## Notes (not graded) (1)

### F19 · Note ·  · Note: “…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…”
Location: Article · exact quote · [open in article](https://trigger.dev/blog/stopping-xmin-horizon-blocking-postgres-vacuuming#:~:text=VACUUM%20%28VERBOSE%2C%20ANALYZE%29%20graphile_worker.job%3B)
Article says:
```text
…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…
```
What is true:
The command targets graphile_worker.job. The output names graphile_worker._private_jobs. The phrase 'like this' permits an illustrative example. Verify the installed relation before copying the command.
So what:
Confirm the installed relation name before choosing the target of VACUUM (VERBOSE, ANALYZE).
Explanation: Not graded: no reader would act differently on it.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We tested the illustrative reading permitted by 'like this'. The finding already accepts it and assigns no graded error. The relation names differ, but those names alone do not establish an impossible transcript. We tested the illustrative reading against the article's phrase 'like this'. The finding already accepts that reading. The relation names differ, and the note makes no claim about transcript authenticity.

Finding URL: https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59#F19

## Withdrawn findings (0)

None.

## Section checks

- Cause summary · A · 1 verified-accurate · 50% of claims (1 of 2, plus 3 that need data we do not have) provisional
- TaskQueue transactions · A · 2 verified-accurate · 100% of claims (1 of 1, plus 6 that need data we do not have)
- Dead tuples · A · 1 imprecise · 3 verified-accurate · 100% of claims (6 of 6, plus 4 that need data we do not have)
- Vacuum diagnostics · A · 1 imprecise · 4 verified-accurate · 100% of claims (11 of 11, plus 5 that need data we do not have)
- Attempted remedies · A · 5 verified-accurate · 100% of claims (5 of 5, plus 1 that need data we do not have)
- Prevention · A · 1 verified-accurate · no checkable claims

## Claim coverage

- Incident overview: 3 claims are the author's own account; nothing checkable; not counted: 5 product or opinion, 6 not a claim
- Impact: no checkable claims; not counted: 7 product or opinion, 1 duplicate, 1 not a claim
- Bulk replay: no checkable claims; not counted: 3 product or opinion, 1 not a claim
- Cause summary: 1 of 2 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 1 not a claim; not checked: 1 for other reasons
- Timeline context: no checkable claims; not counted: 5 product or opinion, 1 not a claim
- CPU spike: 2 claims are the author's own account; nothing checkable; not counted: 1 product or opinion, 1 not a claim
- Run volume: no checkable claims; not counted: 4 product or opinion, 1 not a claim
- Initial degradation: 2 claims are the author's own account; nothing checkable; not counted: 5 product or opinion, 1 not a claim
- Performance Insights: 6 claims are the author's own account; nothing checkable; not counted: 3 product or opinion, 2 not a claim
- TaskQueue transactions: 1 of 1 Postgres claims checked, plus 6 that need data we do not have; not counted: 4 product or opinion, 2 duplicate, 1 not a claim
- Dead tuples: 6 of 6 Postgres claims checked, plus 4 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 1 not a claim
- Vacuum diagnostics: 11 of 11 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate, 1 not a claim
- Attempted remedies: 5 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 1 not a claim
- Failover: 4 claims are the author's own account; nothing checkable; not counted: 4 product or opinion, 1 duplicate, 1 not a claim
- Lessons: 1 of 1 Postgres claims checked; not counted: 4 product or opinion, 1 duplicate, 1 not a claim
- Prevention: no checkable claims; not counted: 6 product or opinion, 2 duplicate, 1 not a claim
- Closing: no checkable claims; not counted: 2 product or opinion, 1 not a claim

## What we did not check

- We did not verify the incident's CPU measurements, transaction failures, lock waits, or failover outcome.
- We did not verify Graphile Worker's job-selection plans or the application's Prisma schema and generated SQL.
- We did not verify which relation graphile_worker.job names in the displayed VACUUM command.
- We did not verify the RDS deployment type or its promotion and failover behavior.
- The article does not identify its PostgreSQL version, so we could not match every check to that version.
- We did not verify the August 15 incident's causal diagnosis, workload, or recovery from database logs.
- We did not verify the RDS deployment type or the former primary's role after failover.
- We did not establish which PostgreSQL release ran during the incident or whether a later release fixed its cause.
- We could not verify Graphile Worker's job-selection plan from its introduction page.
- We did not read the author's social profile or the linked dead-tuple cheatsheet.
- We did not inspect the article's CPU, run-volume, or Performance Insights images.
- We did not independently verify the incident's CPU, query latency, throughput, tuple counts, or failover duration.
- We did not inspect the article's run-volume charts, Performance Insights images, or bulk-replay video.
- We did not reproduce the SQL examples or verify the installed Graphile Worker schema.
- Section “Cause summary”: we checked 1 of 5 checkable claims.
- We could not decide whether the article contains a material benchmark.

## Notes

- Central claim not verified. The findings check xmin diagnostics, but do not establish the incident’s causal diagnosis or test its failover remedy.
- 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.
- Average of 5 axes: 3.86 · 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); https://pganalyze.com/ (fetched 2026-10-19T06:36:40.186058Z); https://trigger.dev/blog (fetched 2026-10-19T06:36:31.302670Z); https://trigger.dev/docs/queue-concurrency (fetched 2026-10-19T06:36:34.918034Z); https://worker.graphile.org/ (fetched 2026-10-19T06:36:33.041885Z); https://www.citusdata.com/blog/2022/07/28/debugging-postgres-autovacuum-problems-13-tips/ (fetched 2026-10-19T06:36:39.296909Z).
- Article captured 2026-10-19T06:36:20.157145Z · SHA-256 6defc32c940ae2c9f73aaf242cf3bc1c1e4f32b632f3026fe6abe5a31dbfc8d8 · Text extracted from the article's HTML.
- Policy SHA-256 5388849875f425f0db7ca675c7c6046168fef80fdbaf15bc3fa335eb0a45a38c · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- gate: proceeded with reason codes HIGH_INJECTION
- We did not verify the incident’s CPU usage, query latency, throughput, transaction failures, lock waits, or recovery from database logs.
- We did not inspect the CPU charts, run-volume charts, Performance Insights images, or bulk-replay video.
- We did not verify the database deployment type, promotion behavior, or former primary’s role after failover.
- We did not verify Graphile Worker’s job-selection plans, installed schema, or the application’s generated SQL.
- We did not establish which relation graphile_worker.job names in the displayed VACUUM command.
- We did not reproduce the displayed measurements or SQL examples.
- The article does not identify its PostgreSQL release. Publication-era comparisons support the corrections to its definitions.
- We did not read the author’s social profile or the linked dead-tuple cheatsheet.
- The article gives August 16, 2024, without a publication time. We list midnight UTC.
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-28: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 6 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 5 fetched pages.
- 18 survived · 1 weakened · 0 withdrawn.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59?v=40) · 2026-09-10 03:14 UTC · A- · audit version not recorded · regrade version not recorded
  Article as first submitted. 6 accurate · 0 wrong · 6 caveats.
  ElephantSeal: A-.
  Changes: First audit. Open: F2 “The oldest xmin is the transaction ID of the oldest transaction that's still running.” (mostly accurate); F3 “A dead tuple is a row that has been deleted but not yet vacuumed.” (mostly accurate); F8 “…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…” (mostly accurate); F12 “Graphile Worker does a sequential scan to find the next job to run.” (mostly accurate); F14 “For the first few hours this didn't cause any major problems…” (mostly accurate); F9 “…DETAIL: 662319 dead row versions cannot be removed yet, oldest xmin: 1706280686…” (outdated).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/072fd433-ce8e-46d3-bd95-4330c40daa59?v=47) · this page · 2026-10-19 06:36 UTC · A · audited with v1.0.14 (approx.) · regraded with v1.0.19 (approx.)
  Article text changed. 16 accurate · 0 wrong · 2 caveats.
  ElephantSeal: A. Open: the production risk is not yet fixed or warned about.
  Changes: No longer reported: “The oldest xmin is the transaction ID of the oldest transaction that's still running.”; “…VACUUM (VERBOSE, ANALYZE) graphile_worker.job;…”; “Graphile Worker does a sequential scan to find the next job to run.”; “For the first few hours this didn't cause any major problems…”; “…DETAIL: 662319 dead row versions cannot be removed yet, oldest xmin: 1706280686…”. New: F1 “The cleanup horizon is not just the oldest running transaction ID” (mostly accurate).

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