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: Getting rid of a 4 TB table in PostgreSQL
Article title: Getting rid of a 4 TB table in PostgreSQL
Article URL: https://boringsql.com/posts/delete-4tb
Report URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a
Audited revision: 2 of 2, 2026-11-03 02:12:10 UTC
Overall letter: D+
## Axes
- Factual: B+ · 2 wrong · 25 checked · 0 caveats · partly assessed
- Applicable: A · 0 wrong · 0 checked · 0 caveats · partly assessed
- Consistent: A · 0 wrong · 4 checked · 0 caveats · not assessed
- Transparent: A · 0 wrong · 10 checked · 0 caveats · partly assessed
- Safe: D · 1 wrong · 1 checked · 0 caveats · partly assessed
ElephantSeal: D+.
Open conditions: the production risk is not yet fixed or warned about; central claim not checked.
## Report metadata
- Report: Technical fact-check, edition 2
- pgTrue version: audited with v1.1.5
- Issued: 2026-11-03
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
## Findings needing a change (3)
### F1 · Inaccurate · Safe · Dangerous recipe: “…xact_start \< : 't0'…”
Location: excerpt · section “Copying the keepers instead” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=xact_start%20%3C%20%3A%20%27t0%27)
Article says:
```text
…xact_start < : 't0'…
```
What is true:
REL_18_6 pgstatfuncs.c:37 permits visibility through pg_read_all_stats or privileges of the session owner's role. Otherwise, lines 648-655 hide xact_start. The wait can miss those transactions. A lower identifier committed after the initial copy can escape both copy passes and disappear when the old table drops.
So what:
Run the transaction wait as a superuser or a role with pg_read_all_stats privileges. Verify visibility into application transactions before copying.
Review: E-15 also permits visibility through privileges of the session owner's role. The blanket statement about other roles excludes this exception. Unrelated application roles still support the missing-row scenario and data-loss consequence. We tested the same-role reading against separate application and migration roles. NULL transaction timestamps defeat the wait for unrelated roles. The article states no statistics-visibility prerequisite. The concrete privilege change prevents the identified row-loss path.
Sources:
- [REL_18_6 · src/backend/utils/adt/pgstatfuncs.c:37-37](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/pgstatfuncs.c#L37-L37)
Excerpt:
```text
#define HAS_PGSTAT_PERMISSIONS(role) (has_privs_of_role(GetUserId(), ROLE_PG_READ_ALL_STATS) || has_privs_of_role(GetUserId(), role))
```
- [REL_18_6 · src/backend/utils/adt/pgstatfuncs.c:494-498](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/pgstatfuncs.c#L494-L498)
Excerpt:
```text
if (beentry->st_xact_start_timestamp != 0 &&
beentry->st_backendType != B_WAL_SENDER)
values[8] = TimestampTzGetDatum(beentry->st_xact_start_timestamp);
```
- [REL_18_6 · src/backend/utils/adt/pgstatfuncs.c:648-655](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/pgstatfuncs.c#L648-L655)
Excerpt:
```text
{
/* No permissions to view data about this session */
values[5] = CStringGetTextDatum("<insufficient privilege>");
nulls[4] = true;
nulls[6] = true;
nulls[7] = true;
nulls[8] = true;
```
- [REL_19_STABLE@472da35ac0 · src/backend/utils/adt/pgstatfuncs.c:669-682](https://github.com/postgres/postgres/blob/472da35ac0e2ecf33419a7b6874fa5ba909a23d4/src/backend/utils/adt/pgstatfuncs.c#L669-L682)
Qualification: Version note: The same visibility restriction exists in the pinned PostgreSQL 19 source.
Excerpt:
```text
/* No permissions to view data about this session */
values[5] = CStringGetTextDatum("<insufficient privilege>");
nulls[4] = true;
nulls[6] = true;
nulls[7] = true;
nulls[8] = true;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F1
### F2 · Misleading · Factual · Renaming a table does not expose readers through existing views
Location: excerpt · section “Finding out whether anyone still reads it” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=Any%20code%20path%20that%20still%20reads%20the%20table%20fails%20loudly)
Article says:
```text
Any code path that still reads the table fails loudly…
```
What is true:
Existing views continue reading a renamed table through its OID. REL_18_6 src/backend/rewrite/rewriteHandler.c:197 opens rte-\>relid. The rename changes pg_class.relname in tablecmds.c:4332-4334. A release without missing-table errors does not establish that every reader stopped.
So what:
Inspect pg_depend for views and other stored dependencies before treating a rename observation period as proof that the table is unused.
Charitable reading:
The rename exposes SQL that resolves the original table name directly. It does not expose every indirect reader.
Review: We tested the direct-name reading against the article's unrestricted claim. Views retain OID references. Checking pg_depend changes the retirement decision. We tested whether the rename claim covers only direct SQL. Its wording covers any code path. Stored views retain relation OIDs. Inspecting dependencies remains a concrete correction with a supported wasted-work consequence.
Sources:
- [REL_18_6 · src/backend/rewrite/rewriteHandler.c:197-197](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L197-L197)
Excerpt:
```text
rel = table_open(rte->relid, lockmode);
```
- [REL_18_6 · src/backend/commands/tablecmds.c:4332-4334](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L4332-L4334)
Excerpt:
```text
namestrcpy(&(relform->relname), newrelname);
CatalogTupleUpdate(relrelation, &otid, reltup);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F2
### F3 · Misleading · Factual · Updates to old rows do not rule out partition retirement
Location: excerpt · section “When the table still has traffic” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=Partitioning%20does%20nothing%20for%20a,gets%20updates%20to%20old%20rows)
Article says:
```text
Partitioning does nothing for a table that gets updates to old rows…
```
What is true:
Updates do not prevent partition-based retention. REL_18_6 doc/src/sgml/ddl.sgml:3997-3999 permits bulk removal by partition. Lines 4102-4104 explicitly support updates across partition bounds. The retention predicate must cover the retired partition's rows.
So what:
Use partition retirement when every row in an expired partition qualifies for removal, even if those rows received updates.
Charitable reading:
Updates can make an age-based retention rule unsuitable. The article excludes tables merely because old rows receive updates.
Review: We considered updates that invalidate age-based retention. E-3 excludes updates categorically. The correction already requires every retired row to qualify. We tested the append-only context and age-based retention hypothesis. Updates alone do not invalidate partition retirement. The finding preserves the requirement that every retired row qualify for removal.
Sources:
- [REL_18_6 · doc/src/sgml/ddl.sgml:3997-3999](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ddl.sgml#L3997-L3999)
Excerpt:
```text
Bulk loads and deletes can be accomplished by adding or removing
partitions, if the usage pattern is accounted for in the
partitioning design. Dropping an individual partition
```
- [REL_18_6 · doc/src/sgml/ddl.sgml:4102-4104](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ddl.sgml#L4102-L4104)
Excerpt:
```text
Updating the partition key of a row will cause it to be moved into a
different partition if it no longer satisfies the partition bounds
of its original partition.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F3
## Verified accurate claims (22)
### F4 · Accurate · Factual · A waiting DROP can block later reads and writes
Location: excerpt · section “Finding out whether anyone still reads it” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=PostgreSQL%20doesn%27t%20let%20later%20requests%20jump%20an%20exclusive%20waiter)
Article says:
```text
…PostgreSQL doesn't let later requests jump an exclusive waiter…
```
What is true:
DROP TABLE selects AccessExclusiveLock in REL_18_6 src/backend/commands/tablecmds.c:1553. That mode conflicts with reads and writes. src/backend/storage/lmgr/proc.c:1786-1792 checks earlier conflicting waiters before granting queued requests.
Charitable reading:
The claim describes fresh application requests in the displayed queue, rather than every lock-manager exception.
Review: We checked whether queue exceptions defeat the demonstrated fresh requests. Earlier conflicting waiters block those requests under E-23. We checked lock conflicts and waiter ordering. The finding correctly limits its conclusion to the described fresh requests.
Sources:
- [REL_18_6 · src/backend/storage/lmgr/proc.c:1786-1792](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L1786-L1792)
Excerpt:
```text
/*
* Waken if (a) doesn't conflict with requests of earlier waiters, and
* (b) doesn't conflict with already-held locks.
*/
if ((lockMethodTable->conflictTab[lockmode] & aheadRequests) == 0 &&
!LockCheckConflicts(lockMethodTable, lockmode, lock,
proc->waitProcLock))
```
- [REL_18_6 · src/backend/commands/tablecmds.c:1553-1553](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L1553-L1553)
Excerpt:
```text
LOCKMODE lockmode = AccessExclusiveLock;
```
- [REL_18_6 · src/backend/storage/lmgr/lock.c:99-103](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L99-L103)
Excerpt:
```text
/* AccessExclusiveLock */
LOCKBIT_ON(AccessShareLock) | LOCKBIT_ON(RowShareLock) |
LOCKBIT_ON(RowExclusiveLock) | LOCKBIT_ON(ShareUpdateExclusiveLock) |
LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) |
LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock)
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F4
### F5 · Accurate · Factual · Dropping a foreign-key child can exclusively lock its referenced table
Location: excerpt · section “Finding out whether anyone still reads it” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=dropping%20the%20child%20takes%20AccessExclusiveLock%20on%20the%20parent)
Article says:
```text
…dropping the child takes AccessExclusiveLock on the parent…
```
What is true:
Foreign-key action triggers belong to the referenced relation. REL_18_6 src/backend/commands/tablecmds.c:13927-13948 creates them there. Removing a trigger opens its relation with AccessExclusiveLock in src/backend/commands/trigger.c:1323-1328.
Charitable reading:
The parent means the table referenced by the child's outgoing foreign key.
Review: We checked which relation owns the foreign-key action trigger. E-27 places it on the referenced relation. E-26 locks that relation exclusively. We checked which relation owns foreign-key action triggers. Removing those triggers exclusively locks the referenced relation.
Sources:
- [REL_18_6 · src/backend/commands/trigger.c:1323-1328](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/trigger.c#L1323-L1328)
Excerpt:
```text
/*
* Open and exclusive-lock the relation the trigger belongs to.
*/
relid = ((Form_pg_trigger) GETSTRUCT(tup))->tgrelid;
rel = table_open(relid, AccessExclusiveLock);
```
- [REL_18_6 · src/backend/commands/tablecmds.c:13927-13948](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L13927-L13948)
Excerpt:
```text
trigAddress = CreateTrigger(fk_trigger, NULL, refRelOid, myRelOid,
constraintOid, indexOid, InvalidOid,
parentDelTrigger, NULL, true, false);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F5
### F6 · Accurate · Factual · Commit deletes relation files after releasing relation locks
Location: excerpt · section “What the replicas see” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=On%20the%20primary%20the%20backend,it%20has%20released%20its%20locks)
Article says:
```text
On the primary the backend unlinks them after it has released its locks…
```
What is true:
Primary commit schedules file deletion after releasing locks. REL_18_6 src/backend/access/transam/xact.c:2449-2453 states that ordering. Commit replay releases standby locks at line 6208 and deletes files at line 6239. Synchronous deletion delays subsequent replay.
Charitable reading:
The statement concerns commit-time deletion of ordinary relation storage.
Review: We checked commit ordering and the deferred first-segment exception. Lock release precedes pending deletion. E-31 preserves the checkpoint qualification. We checked primary cleanup ordering and standby replay ordering. Both release relation locks before file deletion. The finding does not claim immediate primary deletion of every segment.
Sources:
- [REL_18_6 · src/backend/access/transam/xact.c:2435-2453](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L2435-L2453)
Excerpt:
```text
* this may take many seconds, also delay until after releasing locks.
* Other backends will observe the attendant catalog changes and not
* attempt to access affected files.
*/
smgrDoPendingDeletes(true);
```
- [REL_18_6 · src/backend/access/transam/xact.c:6208-6208](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L6208-L6208)
Excerpt:
```text
StandbyReleaseLockTree(xid, parsed->nsubxacts, parsed->subxacts);
```
- [REL_18_6 · src/backend/access/transam/xact.c:6239-6239](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L6239-L6239)
Excerpt:
```text
DropRelationFiles(parsed->xlocators, parsed->nrels, true);
```
- [REL_18_6 · src/backend/storage/smgr/md.c:274-277](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/smgr/md.c#L274-L277)
Excerpt:
```text
* For regular relations, we don't unlink the first segment file of the rel,
* but just truncate it to zero length, and record a request to unlink it after
* the next checkpoint. Additional segments can be unlinked immediately,
* however. Leaving the empty file in place prevents that relfilenumber
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F6
### F7 · Accurate · Factual · Standby feedback does not prevent DROP relation-lock conflicts
Location: excerpt · section “What the replicas see” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=hot_standby_feedback%20doesn%27t%20help%2C%20because%20it%27s,row%20versions%20and%20not%20locks)
Article says:
```text
hot_standby_feedback doesn't help, because it's about row versions and not locks…
```
What is true:
Recovery acquires AccessExclusiveLock in REL_18_6 src/backend/storage/ipc/standby.c:1027. Feedback prevents cleanup conflicts, not that lock conflict. doc/src/sgml/config.sgml:5158 sets the streaming-delay default to 30 seconds. That allowance covers received WAL, rather than granting every query 30 seconds.
Charitable reading:
The article distinguishes row-version cleanup conflicts from relation-lock conflicts.
Review: We tested whether feedback addresses the replay lock. E-33 addresses cleanup conflicts. E-32 independently acquires AccessExclusiveLock. We checked feedback scope and the streaming-delay documentation. Feedback addresses cleanup conflicts. Recovery still acquires the conflicting relation lock. The finding correctly qualifies the 30-second allowance.
Sources:
- [REL_18_6 · src/backend/storage/ipc/standby.c:1025-1027](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/standby.c#L1025-L1027)
Excerpt:
```text
SET_LOCKTAG_RELATION(locktag, dbOid, relOid);
(void) LockAcquire(&locktag, AccessExclusiveLock, true, false);
```
- [REL_18_6 · doc/src/sgml/config.sgml:5234-5254](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L5234-L5254)
Excerpt:
```text
be used to eliminate query cancels caused by cleanup records, but
can cause database bloat on the primary for some workloads.
```
- [REL_18_6 · doc/src/sgml/config.sgml:5158-5158](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L5158-L5158)
Excerpt:
```text
The default is 30 seconds.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F7
### F8 · Accurate · Factual · The batching procedure commits separate transactions
Location: excerpt · section “Deleting in batches” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=Each%20COMMIT%20ends%20a%20real%20transaction%2C%20not%20a%20subtransaction.)
Article says:
```text
…Each COMMIT ends a real transaction, not a subtransaction.
```
What is true:
Procedure COMMIT ends the current transaction and starts another automatically. REL_18_6 doc/src/sgml/plpgsql.sgml:3704-3718 documents this behavior. Exception blocks form subtransactions. ref/call.sgml:95-98 forbids procedure transaction control when CALL runs inside an explicit transaction block.
Charitable reading:
The procedure runs through a top-level CALL outside an explicit transaction block, as the article requires.
Review: We checked explicit transaction blocks and exception handlers as counterexamples. The article requires a top-level CALL outside a transaction block. We checked top-level CALL and exception-block restrictions. The article states both prerequisites. This finding verifies transaction semantics without certifying execution of the complete recipe.
Sources:
- [REL_18_6 · doc/src/sgml/plpgsql.sgml:3704-3718](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/plpgsql.sgml#L3704-L3718)
Excerpt:
```text
it is possible to end transactions using the
commands <command>COMMIT</command> and <command>ROLLBACK</command>. A new
transaction is started automatically after a transaction is ended using
these commands, so there is no separate <command>START
TRANSACTION</command> command.
```
- [REL_18_6 · doc/src/sgml/plpgsql.sgml:3751-3778](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/plpgsql.sgml#L3751-L3778)
Excerpt:
```text
Under the hood, a block with exception handlers forms a
subtransaction, which means that transactions cannot be ended inside
such a block.
```
- [REL_18_6 · doc/src/sgml/ref/call.sgml:95-98](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/call.sgml#L95-L98)
Excerpt:
```text
If <command>CALL</command> is executed in a transaction block, then the
called procedure cannot execute transaction control statements.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F8
### F9 · Accurate · Factual · DELETE leaves index-tuple removal to vacuum
Location: excerpt · section “Deleting in batches” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=A%20DELETE%20doesn%27t%20touch%20the%20indexes.)
Article says:
```text
A DELETE doesn't touch the indexes.
```
What is true:
DELETE does not immediately remove index tuples because other transactions may still need them. REL_18_6 src/backend/executor/nodeModifyTable.c:1804-1810 documents this behavior. Ordinary vacuum can truncate empty trailing pages, as src/backend/access/heap/vacuumlazy.c:3221 states.
Charitable reading:
The sentence means DELETE leaves index-tuple removal to vacuum. Its scan can read indexes and change hints.
Review: We considered index reads and hint changes during DELETE. The finding expressly limits its conclusion to deferred index-tuple removal. We tested the literal index-access reading. The finding already narrows the claim to index-tuple removal. Its distinction between deletion and vacuum matches the source.
Sources:
- [REL_18_6 · src/backend/executor/nodeModifyTable.c:1804-1810](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeModifyTable.c#L1804-L1810)
Excerpt:
```text
* Note: Normally one would think that we have to delete index tuples
* associated with the heap tuple now...
*
* ... but in POSTGRES, we have no need to do this because VACUUM will
* take care of it later. We can't delete index tuples immediately
* anyway, since the tuple is still visible to other transactions.
```
- [REL_18_6 · src/backend/access/heap/vacuumlazy.c:3221-3221](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/vacuumlazy.c#L3221-L3221)
Excerpt:
```text
* lazy_truncate_heap - try to truncate off any empty pages at the end
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F9
### F10 · Accurate · Factual · Checksums and wal_log_hints enable post-checkpoint hint images
Location: excerpt · section “The first SELECT after the delete” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=wal_log_hints%20%3D%20on%20has%20the%20same%20effect%20without%20checksums.)
Article says:
```text
wal_log_hints = on has the same effect without checksums.
```
What is true:
REL_18_6 src/include/access/xlog.h:120 enables hint protection for checksums or wal_log_hints. src/backend/storage/buffer/bufmgr.c:5493-5504 explains the first-post-checkpoint image. Disabling both removes those hint images without disabling pruning WAL.
Charitable reading:
The claim compares hint-image generation under the demonstrated checksum and WAL settings, rather than promising identical total WAL.
Review: We checked whether identical hint protection implies identical total WAL. The finding limits equivalence to hint images under the demonstrated settings. We checked the hint-protection predicate and checkpoint condition. The finding verifies hint-image behavior and excludes the displayed byte totals.
Sources:
- [REL_18_6 · src/include/access/xlog.h:120-120](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/xlog.h#L120-L120)
Excerpt:
```text
#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints)
```
- [REL_18_6 · src/backend/storage/buffer/bufmgr.c:5493-5508](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L5493-L5508)
Excerpt:
```text
* If we need to protect hint bit updates from torn writes, WAL-log a
* full page image of the page. This full page image is only necessary
* if the hint bit update is the first change to the page since the
* last checkpoint.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F10
### F11 · Accurate · Factual · Foreign-key creation and validation use the stated lock modes
Location: excerpt · section “Copying the keepers instead” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=VALIDATE%20CONSTRAINT%20only%20needs%20SHARE,ROW%20SHARE%20on%20the%20parent.)
Article says:
```text
…VALIDATE CONSTRAINT only needs SHARE UPDATE EXCLUSIVE on the child and ROW SHARE on the parent.
```
What is true:
Foreign-key creation opens the referenced table with ShareRowExclusiveLock in REL_18_6 src/backend/commands/tablecmds.c:10105-10111. Validation uses SHARE UPDATE EXCLUSIVE on the child and ROW SHARE on the referenced table. doc/src/sgml/ref/alter_table.sgml:1502-1529 documents those modes.
Charitable reading:
The quoted modes describe validation of a foreign key on an ordinary table.
Review: We checked creation separately from validation. E-42 and E-43 support the distinct referenced-table lock modes. We checked creation separately from validation. The source supports ShareRowExclusiveLock during creation and the lighter documented validation locks.
Sources:
- [REL_18_6 · src/backend/commands/tablecmds.c:10099-10116](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L10099-L10116)
Excerpt:
```text
if (OidIsValid(fkconstraint->old_pktable_oid))
pkrel = table_open(fkconstraint->old_pktable_oid, ShareRowExclusiveLock);
else
pkrel = table_openrv(fkconstraint->pktable, ShareRowExclusiveLock);
```
- [REL_18_6 · doc/src/sgml/ref/alter_table.sgml:1502-1529](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/alter_table.sgml#L1502-L1529)
Excerpt:
```text
a <literal>SHARE UPDATE EXCLUSIVE</literal> lock on the table being
altered. (If the constraint is a foreign key then a <literal>ROW
SHARE</literal> lock is also required on the table referenced by the
constraint.)
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F11
### F12 · Accurate · Factual · PostgreSQL 19 concurrent REPACK uses logical decoding without a WHERE clause
Location: excerpt · section “Copying the keepers instead” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=REPACK%20%28CONCURRENTLY%29%20in%20PostgreSQL%2019,but%20has%20no%20WHERE%20clause.)
Article says:
```text
REPACK (CONCURRENTLY) in PostgreSQL 19 does it with logical decoding but has no WHERE clause.
```
What is true:
The pinned PostgreSQL 19 implementation creates a logical decoding context in src/backend/commands/repack_worker.c:271-287. doc/src/sgml/ref/repack.sgml:24-35 lists the command syntax without WHERE. The parser's RepackStmt productions likewise omit row filtering.
Charitable reading:
The article explicitly assigns this feature to PostgreSQL 19, rather than its PostgreSQL 18.6 experiments.
Review: We checked for confusion with PostgreSQL 18.6. E-12 explicitly names PostgreSQL 19. Its implementation and documented syntax support the conclusion. We checked whether PostgreSQL 18 evidence had been applied to PostgreSQL 19. The citations use the correct PostgreSQL 19 pin. They show logical decoding and command syntax without WHERE.
Sources:
- [REL_19_STABLE@472da35ac0 · src/backend/commands/repack_worker.c:271-287](https://github.com/postgres/postgres/blob/472da35ac0e2ecf33419a7b6874fa5ba909a23d4/src/backend/commands/repack_worker.c#L271-L287)
Excerpt:
```text
ctx = CreateInitDecodingContext(PGREPACK_PLUGIN,
```
- [REL_19_STABLE@472da35ac0 · doc/src/sgml/ref/repack.sgml:24-35](https://github.com/postgres/postgres/blob/472da35ac0e2ecf33419a7b6874fa5ba909a23d4/doc/src/sgml/ref/repack.sgml#L24-L35)
Excerpt:
```text
REPACK [ ( <replaceable class="parameter">option</replaceable> [, ...] ) ] [ <replaceable class="parameter">table_and_columns</replaceable> [ USING INDEX [ <replaceable class="parameter">index_name</replaceable> ] ] ]
REPACK [ ( <replaceable class="parameter">option</replaceable> [, ...] ) ] USING INDEX
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F12
### F13 · Accurate · Factual · PostgreSQL 18 initdb enables checksums by default
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=data%20checksums%20on%20%28the%2018%20default%29)
Article says:
```text
…data checksums on (the 18 default)…
```
What is true:
Both REL_18_0 and REL_18_6 initialize data_checksums to true in src/bin/initdb/initdb.c:167. The article correctly describes the initialization default.
Charitable reading:
The default applies to newly initialized PostgreSQL 18 clusters. Upgraded clusters can retain their prior checksum state.
Review: We considered upgraded clusters as a counterexample. The finding correctly restricts the default to initialization and checks both 18.0 and 18.6. We checked PostgreSQL 18.0 and 18.6. Both initialization defaults enable checksums. The finding correctly limits the claim to initialization.
Sources:
- [REL_18_0 · src/bin/initdb/initdb.c:167-167](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/bin/initdb/initdb.c#L167-L167)
Qualification: Version note: Checks the article's PostgreSQL 18 version floor.
Excerpt:
```text
static bool data_checksums = true;
```
- [REL_18_6 · src/bin/initdb/initdb.c:167-167](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/initdb/initdb.c#L167-L167)
Excerpt:
```text
static bool data_checksums = true;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F13
### F14 · Accurate · Factual · Direct table-name lookup retries after a concurrent rename
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=Queries%20blocked%20on%20the%20lock,name%20again%20once%20it%27s%20granted)
Article says:
```text
Queries blocked on the lock resolve the table name again once it's granted…
```
What is true:
RangeVarGetRelidExtended repeats name lookup after relevant invalidations during lock acquisition. REL_18_6 src/backend/catalog/namespace.c:616-623 states this behavior. The demonstrated direct-name queries can consequently resolve the replacement table after the swap.
Charitable reading:
The statement concerns the demonstrated direct-name queries waiting during relation-name resolution. Existing views retain OID references, as A2 explains.
Review: We considered stored OID references as a counterexample. The finding limits its conclusion to direct-name lookup after relevant invalidations. We checked lookup retry conditions after lock acquisition. Relevant invalidations trigger another lookup. The finding limits its conclusion to direct-name queries and excludes measured timings.
Sources:
- [REL_18_6 · src/backend/catalog/namespace.c:616-623](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/namespace.c#L616-L623)
Excerpt:
```text
/*
* Something may have changed. Let's repeat the name lookup, to make
* sure this name still references the same relation it did
* previously.
*/
retry = true;
oldRelId = relId;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F14
### F15 · Accurate · Factual · GitLab documents with_lock_retries
Location: excerpt · section “Finding out whether anyone still reads it” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=their%20migration%20framework%20wraps%20DDL%20in%20with_lock_retries)
Article says:
```text
…their migration framework wraps DDL in with_lock_retries…
```
What is true:
GitLab's migration guide documents with_lock_retries for controlling lock acquisition retries and timeouts. The article correctly identifies the helper.
Charitable reading:
The sentence identifies an available migration helper rather than promising identical behavior for every migration.
Review: We checked whether the finding certifies every migration path. It only verifies the documented with_lock_retries helper. We checked whether documentation establishes implementation behavior. The finding only confirms the documented helper and its purpose.
Sources:
- [https://docs.gitlab.com/development/migration_style_guide/](https://docs.gitlab.com/development/migration_style_guide/)
Excerpt:
```text
with_lock_retries method enables explicit control over lock
acquisition retries and timeout configuration
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F15
### F16 · Accurate · Factual · GitLab recommends separate foreign-key removal migrations
Location: excerpt · section “Finding out whether anyone still reads it” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=each%20foreign%20key%20goes%20in%20its%20own%20migration%20first.)
Article says:
```text
…each foreign key goes in its own migration first.
```
What is true:
GitLab's migration guide says to drop each foreign key in a separate migration to avoid lock contention. The article accurately repeats that recommendation.
Charitable reading:
The instruction applies to dropping a table with multiple outgoing foreign keys.
Review: We checked the migration recommendation against E-52. The guide explicitly calls for separate foreign-key removal migrations. We checked the recommendation's scope. GitLab explicitly recommends separate migrations for individual foreign keys.
Sources:
- [https://docs.gitlab.com/development/migration_style_guide/](https://docs.gitlab.com/development/migration_style_guide/)
Excerpt:
```text
you must drop each key in a separate migration to avoid lock contention.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F16
### F17 · Accurate · Factual · The 60-second and 8 MB defaults match GitLab documentation
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=max_replication_lag_time%20behind%20%2860%20seconds%20by%20default%29.%20max_replication_difference%20%288%20MB%29)
Article says:
```text
…max_replication_lag_time behind (60 seconds by default). max_replication_difference (8 MB)…
```
What is true:
GitLab documents max_replication_lag_time as 60 seconds and max_replication_difference as 8 MB. The article reports both defaults correctly.
Charitable reading:
The article describes documented defaults, not the customer's actual configuration.
Review: We checked whether documented defaults establish production settings. The finding claims only the documented 60-second and 8 MB defaults. We tested whether defaults had been presented as production configuration. The finding makes no such claim. Both documented defaults match.
Sources:
- [https://docs.gitlab.com/administration/postgresql/database_load_balancing/](https://docs.gitlab.com/administration/postgresql/database_load_balancing/)
Excerpt:
```text
max_replication_difference The amount of data (in bytes) a secondary is allowed to lag behind when it has not replicated data recently. 8 MB max_replication_lag_time The maximum number of seconds a secondary is allowed to lag behind before it is skipped. 60 seconds
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F17
### F18 · Accurate · Factual · The earlier DELETE post makes the attributed batching recommendation
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=batching%20slower%20than%20one%20big,it%20for%20the%20breathing%20room)
Article says:
```text
…batching slower than one big DELETE and worth it for the breathing room…
```
What is true:
The earlier DELETE post says batches may take longer than one DELETE. It recommends batching so PostgreSQL can handle other workloads. The article faithfully summarizes that advice.
Charitable reading:
The sentence summarizes the earlier post's recommendation rather than establishing a universal performance result.
Review: We checked the earlier post's conditional performance wording. The finding preserves that qualification and verifies attribution rather than throughput. We checked the earlier post's conditional wording. The finding preserves that qualification by saying batches may take longer.
Sources:
- [https://boringsql.com/posts/deletes-are-difficult/](https://boringsql.com/posts/deletes-are-difficult/)
Excerpt:
```text
Will this method be faster than performing one massive DELETE? Likely not, especially if you include a wait time between batches to allow PostgreSQL to handle other workloads.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F18
### F19 · Accurate · Factual · GitLab's swapping guide contains the ID 1 warning
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=with%20a%20warning%20that%20new,otherwise%20start%20at%20id%201.)
Article says:
```text
…with a warning that new rows would otherwise start at id 1.
```
What is true:
GitLab's swapping guide warns that failing to reset the primary-key sequence starts new IDs at 1. The article attributes that warning correctly.
Charitable reading:
The sentence attributes the ID 1 warning to GitLab's guide.
Review: We considered nondefault sequence starts. The finding verifies the guide's ID 1 warning without generalizing across sequence configurations. We tested the warning against custom sequence configurations. The finding verifies attribution to GitLab's guide without generalizing the warning.
Sources:
- [https://docs.gitlab.com/development/database/swapping_tables/](https://docs.gitlab.com/development/database/swapping_tables/)
Excerpt:
```text
Failure to reset the primary keys results in newly created rows starting
with an ID value of 1.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F19
### F20 · Accurate · Factual · GitLab's postmortem confirms deletion occurred on the primary
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=It%20was%20on%20the%20primary.)
Article says:
```text
It was on the primary.
```
What is true:
GitLab's January 31, 2017 postmortem says an engineer intended to clear the secondary's database directory. The engineer instead executed the deletion on the primary.
Charitable reading:
The introduction summarizes GitLab's published incident account.
Review: We checked the primary-versus-secondary attribution. E-60 explicitly confirms execution on the primary. We checked the primary-versus-secondary distinction against the first-party postmortem. The account supports the finding.
Sources:
- [https://about.gitlab.com/blog/postmortem-of-database-outage-of-january-31/](https://about.gitlab.com/blog/postmortem-of-database-outage-of-january-31/)
Excerpt:
```text
Unfortunately this process was executed on the primary instead.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F20
### F21 · Accurate · Factual · Both displayed WAL combined-size columns add correctly
Location: excerpt · section “The first SELECT after the delete” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=XLOG%2FFPI_FOR_HINT%20959025%2046992220%207688857048%207735849268)
Article says:
```text
…XLOG/FPI_FOR_HINT 959025 46992220 7688857048 7735849268…
```
What is true:
Both displayed WAL rows add correctly. The hint row totals 7.20 GiB. The prune row totals 93.6 MiB. This checks arithmetic, not the underlying measurements.
Charitable reading:
The table identifies an earlier run. We checked its column arithmetic independently of later runs.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated both byte sums and binary conversions. Both combined-size totals match. The finding does not authenticate measurements. We recomputed both sums and binary-unit conversions. Both totals match. The finding expressly excludes verification of the measurements.
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F21
### F22 · Accurate · Factual · The 256 GiB timings imply a 112-times speedup
Location: excerpt · section “What the replicas see” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=XFS%20was%20over%20a%20hundred%20times%20faster%20at%20both%20sizes.)
Article says:
```text
…XFS was over a hundred times faster at both sizes.
```
What is true:
The displayed 256 GiB timings imply a 112-times speedup (derived: 4.38 seconds / 0.039 seconds). This exceeds 100 times.
Charitable reading:
The speedup compares the two displayed timings for the same 256 GiB table size.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We converted milliseconds before dividing. The displayed ratios are 112 times at 256 GiB and 201 times at 1 TiB. We recomputed both displayed ratios after converting milliseconds. They yield approximately 112 and 201 times. The finding's 256 GiB calculation holds.
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F22
### F23 · Accurate · Factual · The 4 TiB ext4 projection rounds correctly to 70 seconds
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=At%20the%2016%20to%2018,ext4%20that%27s%20about%2070%20seconds.)
Article says:
```text
At the 16 to 18 ms each I saw on fragmented ext4 that's about 70 seconds.
```
What is true:
Four TiB contains about 4,100 one-GiB segments. The stated rate projects 65.5–73.7 seconds. About 70 seconds follows from those inputs.
Charitable reading:
The introduction defines binary size units. The 70-second estimate explicitly extrapolates a measured per-segment rate.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We checked binary units and multiplied 4,096 segments by 16–18 milliseconds. The resulting 65.5–73.7 seconds supports the stated projection. We tested decimal versus binary units. The article defines binary sizes. Multiplying 4,096 segments by 16–18 milliseconds gives 65.5–73.7 seconds.
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F23
### F24 · Accurate · Factual · The keeper copy uses 10.8% of displayed batch-delete WAL
Location: excerpt · section “Copying the keepers instead” · as fetched 2026-11-03 · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=2803416%20%7C%208155%20%7C%20882%20MB)
Article says:
```text
…2803416 | 8155 | 882 MB…
```
What is true:
The displayed keeper-copy WAL is 10.8% of batch-delete WAL (derived: 882 MiB / 8,179 MiB). About one tenth is a valid approximation.
Charitable reading:
The comparison uses laptop results and excludes subsequent vacuum WAL, as the article states.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We checked the denominator and matching units. The keeper copy uses 10.8% of displayed batch-delete WAL before vacuum. We checked matching populations and units. Both numbers describe laptop WAL before subsequent vacuum. Their ratio rounds to 10.8%.
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F24
### F25 · Accurate · Factual · The stated 30-second wait is below GitLab's 60-second default
Location: Article · exact quote · [open in article](https://boringsql.com/posts/delete-4tb#:~:text=with%20the%20default%2030%20seconds,alone%20stays%20under%20their%2060)
Article says:
```text
…with the default 30 seconds the lock wait alone stays under their 60…
```
What is true:
GitLab documents a 60-second default for max_replication_lag_time. The article's stated 30-second wait is below that threshold.
Charitable reading:
The sentence explicitly assumes default settings. It does not claim the actual GitLab deployment uses them.
Review: We tested whether the finding promises replica eligibility despite other lag. It only compares the stated 30-second wait with 60 seconds. We tested whether the comparison guarantees actual replica eligibility. The finding only compares stated defaults. Thirty seconds remains below the documented 60-second threshold.
Sources:
- [https://docs.gitlab.com/administration/postgresql/database_load_balancing/](https://docs.gitlab.com/administration/postgresql/database_load_balancing/)
Excerpt:
```text
max_replication_lag_time The maximum number of seconds a secondary is allowed to lag behind before it is skipped. 60 seconds
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a#F25
## Notes (not graded) (0)
None.
## Withdrawn findings (0)
None.
## Section checks
- Introduction · A · 2 verified-accurate · 100% of claims (4 of 4, plus 13 that need data we do not have)
- Drop costs · A · 1 verified-accurate · 88% of claims (8 of 9, plus 7 that need data we do not have)
- Readers and locks · B+ · 1 misleading · 4 verified-accurate · 88% of claims (15 of 17, plus 3 that need data we do not have)
- Replica effects · A · 4 verified-accurate · 87% of claims (21 of 24, plus 48 that need data we do not have)
- Active tables · B+ · 1 misleading · 100% of claims (7 of 7, plus 1 that need data we do not have)
- Batch deletes · A · 3 verified-accurate · 95% of claims (21 of 22, plus 17 that need data we do not have)
- First read · A · 2 verified-accurate · 83% of claims (10 of 12, plus 18 that need data we do not have)
- Copy and swap · D · 1 dangerous-recipe · 5 verified-accurate · 96% of claims (52 of 54, plus 9 that need data we do not have)
- 4 TB recommendation · A · 1 verified-accurate · 83% of claims (10 of 12, plus 5 that need data we do not have)
## Claim coverage
- Introduction: 4 of 4 Postgres claims checked, plus 13 that need data we do not have; not counted: 3 product or opinion, 2 not a claim
- Test table: 14 of 15 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 not a claim; not checked: 1 for other reasons
- Drop costs: 8 of 9 Postgres claims checked, plus 7 that need data we do not have; not counted: 1 not a claim; not checked: 1 for other reasons
- Readers and locks: 15 of 17 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 1 not a claim; not checked: 2 for other reasons
- Replica effects: 21 of 24 Postgres claims checked, plus 48 that need data we do not have; not counted: 3 product or opinion, 2 not a claim; not checked: 3 for other reasons
- Active tables: 7 of 7 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 1 not a claim
- Batch deletes: 21 of 22 Postgres claims checked, plus 17 that need data we do not have; not counted: 1 not a claim; not checked: 1 for other reasons
- First read: 10 of 12 Postgres claims checked, plus 18 that need data we do not have; not counted: 1 not a claim; not checked: 2 for other reasons
- Copy and swap: 52 of 54 Postgres claims checked, plus 9 that need data we do not have; not counted: 1 product or opinion, 1 not a claim; not checked: 2 for other reasons
- 4 TB recommendation: 10 of 12 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 product or opinion, 3 duplicate, 3 not a claim; not checked: 2 for other reasons
- Changelog and footer: 1 claim is the author's own account; nothing checkable; not counted: 1 product or opinion, 2 duplicate, 4 not a claim
## What we did not check
- We did not reproduce the displayed measurements or verify the reported hardware and filesystem configurations.
- We did not check the Linux, ext4, XFS, ZFS, or vmtouch implementations.
- We did not check pg_repack's trigger implementation.
- We did not execute the SQL and psql recipes or validate their runtime dependencies.
- We did not verify PostgreSQL 18.6 availability, PostgreSQL 19 release status, or PostgreSQL 19 REPACK support.
- We did not reproduce the article's measurements or verify its experiment settings and deployment records.
- We did not independently check the ext4, XFS, ZFS, vmtouch, or hardware claims.
- We did not check PostgreSQL source code for the locking, WAL, vacuum, partitioning, or table-swap claims.
- We did not check the SQL recipes' syntax, setup, dependencies, permissions, function bodies, or runtime effects.
- We did not establish historical documentation changes between publication and November 3, 2026.
- We did not independently verify the hardware descriptions, customer deployment, or displayed timing and WAL measurements.
- We did not verify the 137-byte image average or the number of heap pages the delete touched.
- We did not check the SQL recipes against PostgreSQL 18.6 or execute their setup and transaction steps.
- We did not check the WAL and filesystem explanations against PostgreSQL or filesystem source.
- We could not establish the cache contribution on GitLab's replicas without their RAM and residency measurements.
- reproducibility: benchmark check did not finish
- central claim: evidence check did not finish
- Factual: we did not complete every applicable check.
- Applicable: we did not complete every applicable check.
- Consistent: we did not complete every applicable check.
- Transparent: we did not complete every applicable check.
- Safe: we did not complete every applicable check.
- Transparent: claims sourced check did not finish.
- Transparent: claims dated check did not finish.
- Transparent: interest disclosed check did not finish.
- Transparent: author dated check did not finish.
- We could not confirm whether finding F1 fails loudly.
- experiments: check did not finish
- production actions: check did not finish
- benchmark: check did not finish
- No code blocks were checked for syntax.
- 12 blocks were not checked for syntax.
- Code blocks 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 were not checked for syntax because the language is not supported or not declared.
- We did not execute any scripts or check dependencies, setup, permissions, embedded SQL, function bodies, inline snippets, or run-time effects.
## Notes
- D+ — the findings address the article's main subject. What we did not check is listed below. The findings directly check DROP locking, replay ordering, deletion WAL, copy-and-swap correctness, and the 4 TiB projection arithmetic.
- 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.26 · worst of factual, consistent, safe: D · result D+
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_19_STABLE@472da35ac0 at commit 472da35ac0e2ecf33419a7b6874fa5ba909a23d4 (pinned target); https://about.gitlab.com/blog/postmortem-of-database-outage-of-january-31/ (fetched 2026-11-03T02:12:25.127443Z); https://boringsql.com/changelog/ (fetched 2026-11-03T02:12:35.131018Z); https://boringsql.com/posts/deletes-are-difficult/ (fetched 2026-11-03T02:12:32.100204Z); https://boringsql.com/posts/files-forks-and-relfilenodes/ (fetched 2026-11-03T02:12:27.108273Z); https://boringsql.com/posts/tablesample/ (fetched 2026-11-03T02:12:42.542092Z); https://boringsql.com/tags/expert/ (fetched 2026-11-03T02:12:40.583886Z); https://boringsql.com/tags/maintenance/ (fetched 2026-11-03T02:12:38.795805Z); https://boringsql.com/tags/postgresql/ (fetched 2026-11-03T02:12:36.911727Z); https://docs.gitlab.com/administration/postgresql/database_load_balancing/ (fetched 2026-11-03T02:12:30.263787Z); https://docs.gitlab.com/development/database/swapping_tables/ (fetched 2026-11-03T02:12:33.315425Z); https://docs.gitlab.com/development/migration_style_guide/ (fetched 2026-11-03T02:12:29.010451Z).
- Article captured 2026-11-03T02:12:10.640711Z · SHA-256 3c177c75badfd674db4d856945cdc3e033687ba037a2b36afd26dac7d8dd4323 · Text extracted from the article's HTML.
- Policy SHA-256 72826fdaa31b16300aa0c840e58af4d8fe12441be60f12fe0d643d538165e731 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not reproduce the displayed timings, WAL volumes, or replica lag measurements.
- We did not verify the hardware, filesystem configurations, customer deployment, or actual load-balancing settings.
- We did not check Linux, ext4, XFS, ZFS, vmtouch, or pg_repack implementations.
- We did not execute the SQL or psql recipes or validate their setup, dependencies, permissions, and runtime effects. No code block received a syntax check.
- We did not verify PostgreSQL 18.6 availability or PostgreSQL 19 release-candidate status.
- We did not independently verify the reported 137-byte image average or the number of heap pages touched.
- GitLab's replica RAM and cache residency remain unknown, so we could not establish its cache-related deletion cost.
- The article lists October 31, 2026 without a publication time. We use midnight UTC.
- We did not establish historical documentation changes between publication and November 3, 2026.
- article target version: bound to the most-cited major; also named 18 (2×)
- review: the findings were written by one model and reviewed independently by a different model.
- 12 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 11 fetched pages.
- 24 survived · 1 weakened · 0 withdrawn.
## Edition changes
- F1 · weakened.
- F2 · recalibrated.
- F3 · recalibrated.
- F4 · recalibrated.
- F5 · recalibrated.
- F6 · recalibrated.
- F7 · recalibrated.
- F8 · recalibrated.
- F9 · recalibrated.
- F10 · recalibrated.
- F11 · recalibrated.
- F12 · recalibrated.
- F13 · recalibrated.
- F14 · recalibrated.
- F15 · recalibrated.
- F16 · recalibrated.
- F17 · recalibrated.
- F18 · recalibrated.
- F19 · recalibrated.
- F20 · recalibrated.
- F21 · recalibrated.
- F22 · recalibrated.
- F23 · recalibrated.
- F24 · recalibrated.
- F25 · recalibrated.
## Revision history
- [Revision 1](https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a?v=2) · 2026-11-01 14:26 UTC · D+ · audited with v1.1.4
Article as first submitted. 24 accurate · 1 wrong · 0 caveats.
ElephantSeal: D+. Open: the production risk is not yet fixed or warned about.
Changes: First audit. Open: F20 “Updates do not eliminate partition-based retention” (misleading).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/14239f4f-56d6-4aae-8687-b72cdf6ba01a?v=4) · this page · 2026-11-03 02:12 UTC · D+ · audited with v1.1.5
Same article text, re-audited. 22 accurate · 3 wrong · 0 caveats.
ElephantSeal: D+. Open: the production risk is not yet fixed or warned about; central claim not checked.
Changes: No longer reported: none. New: F1 “…xact_start \< : 't0'…” (dangerous); F2 “Renaming a table does not expose readers through existing views” (misleading).