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).