Limited beta · What is this?

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

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

pgTrue fact-check

ElephantSeal ALimited coverage

Embed

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

[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7)
<a href="https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7"><img src="https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/99b3ea63-b79a-405b-a861-091721c96cf7/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
   :alt: pgTrue fact-check
   :width: 480
   :height: 240

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

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

For pages with a light background.

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

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

On a light page
On a dark page

How a read replica almost took down its primary database and other database tales (opens in new tab)

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

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

ReportTechnical fact-check, edition 2 pgTrue versionaudited with v1.1.3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. See Revisions below. Policy: right-of-reply and corrections policy.

InaccuraciesNone in this edition.

Dangerous or recipe bugsNone in this edition.

Misleading / impreciseNone in this edition.

Verified accurate

F1

Verified accurate: “…limit on the WAL retained by replication slots using max_slot_wal_keep_size…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…limit on the WAL retained by replication slots using max_slot_wal_keep_size…
What is true
max_slot_wal_keep_size limits slot-based WAL retention at checkpoints. KeepLogSeg caps the retention horizon. Checkpoint cleanup can invalidate slots whose WAL becomes unavailable. The setting does not impose a hard ceiling on total pg_wal disk use.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:4717-4720Specify the maximum size of WAL files that <link linkend="streaming-replication-slots">replication slots</link> are allowed to retain in the <filename>pg_wal</filename> directory at checkpoint time.

Review correction: see "How the review tested this" below.

In the article · section “1. Batch and throttle backfills”

In the article

excerpt · section “1. Batch and throttle backfills” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

1. Batch and throttle backfills

We also set a limit on the WAL retained by replication slots using max_slot_wal_keep_size . PostgreSQL applies this limit at checkpoints, so it is not an instantaneous ceiling on disk use. If it removes WAL that the replica still needs, the replica may be unable to catch up and need rebuilding. That trade-off requires knowing who depends on the replica, and what rebuilding it would involve.

All sources and excerpts · 5
Evidence Specify the maximum size of WAL files that <link linkend="streaming-replication-slots">replication slots</link> are allowed to retain in the <filename>pg_wal</filename> directory at checkpoint time.
Evidence if (max_slot_wal_keep_size_mb >= 0 && !IsBinaryUpgrade) { uint64 slot_keep_segs; slot_keep_segs = ConvertToXSegs(max_slot_wal_keep_size_mb, wal_segment_size); if (currSegNo - segno > slot_keep_segs) segno = currSegNo - slot_keep_segs;
Evidence XLByteToSeg(RedoRecPtr, _logSegNo, wal_segment_size); KeepLogSeg(recptr, &_logSegNo); if (InvalidateObsoleteReplicationSlots(RS_INVAL_WAL_REMOVED | RS_INVAL_IDLE_TIMEOUT, _logSegNo, InvalidOid, InvalidTransactionId))
Evidence Beware that replication slots can cause the server to retain so many WAL segments that they fill up the space allocated for <literal>pg_wal</literal>. <xref linkend="guc-max-slot-wal-keep-size"/> can be used to limit the size of WAL files retained by replication slots.
Evidence than the given size, the standby using the slot may no longer be able to continue replication due to removal of required WAL files. You
How the review tested this

Review: We tested whether the finding confuses slot retention with total WAL usage. It explicitly distinguishes them and preserves checkpoint timing. We tested whether the finding promises a total pg_wal ceiling. It explicitly rejects that interpretation. Checkpoint retention and invalidation match.

F2

Verified accurate: “…lock_timeout bounds waiting…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…lock_timeout bounds waiting…
What is true
REL_18_6 documents that lock_timeout can occur only while waiting for locks (E-20). It does not bound acquired-lock duration. E-21 shows code disabling LOCK_TIMEOUT.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:10308-10309Unlike <varname>statement_timeout</varname>, this timeout can only occur while waiting for locks.

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

Also, don’t make a mistake I’ve made: lock_timeout bounds waiting, not how long an acquired lock is held!

All sources and excerpts · 2
Evidence Unlike <varname>statement_timeout</varname>, this timeout can only occur while waiting for locks.
Evidence if (LockTimeout > 0) { DisableTimeoutParams timeouts[2]; timeouts[0].id = DEADLOCK_TIMEOUT; timeouts[0].keep_indicator = false; timeouts[1].id = LOCK_TIMEOUT; timeouts[1].keep_indicator = true; disable_timeouts(timeouts, 2);
How the review tested this

Review: We tested whether E-21 establishes ProcSleep's control flow. It shows timer disabling, but omits the enclosing function and wait completion. E-20 supports the article's timeout distinction.

F3

Verified accurate: “Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables…
What is true
ALTER TABLE ADD FOREIGN KEY requests ShareRowExclusiveLock on the referencing table. It opens the referenced table with the same mode. RowExclusiveLock conflicts with that mode.

Source

Source · REL_18_6 · src/backend/commands/tablecmds.c:4753-4761case CONSTR_FOREIGN: /* * We add triggers to both tables when we add a * Foreign Key, so the lock level must be at least * as strong as CREATE TRIGGER. */ cmd_lockmode = ShareRowExclusiveLock; break;

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables, which conflicts with writes; many other forms of ALTER TABLE need ACCESS EXCLUSIVE , which blocks even reads. While the migration waits for its lock, new queries queue behind it, so it can block production before changing anything. Doctolib explains this well in their article on PostgreSQL migration locks .

All sources and excerpts · 3
Evidence case CONSTR_FOREIGN: /* * We add triggers to both tables when we add a * Foreign Key, so the lock level must be at least * as strong as CREATE TRIGGER. */ cmd_lockmode = ShareRowExclusiveLock; break;
Evidence pkrel = table_openrv(fkconstraint->pktable, ShareRowExclusiveLock);
Evidence /* RowExclusiveLock */ LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) | LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),
How the review tested this

Review: We tested the surrounding migration's potentially stronger locks. The finding confines its claim to ADD FOREIGN KEY and correctly identifies both locks. We distinguished ADD FOREIGN KEY locks from stronger locks held by surrounding DDL. Both table locks and writer conflicts match.

F4

Verified accurate: “…writes then queued behind the migration’s lock request…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…writes then queued behind the migration’s lock request…
What is true
REL_18_6 checks pending incompatible lock requests before checking held locks (E-25). RowExclusiveLock conflicts with ShareRowExclusiveLock (E-24). A pending incompatible request can delay writes. These excerpts do not verify the incident's lock history.

Source

Source · REL_18_6 · src/backend/storage/lmgr/lock.c:74-76/* RowExclusiveLock */ LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) | LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

It turned out that our new table had a foreign key to one of our busiest tables (yes, yes, foreign keys bad). During the migration, an anti-wraparound autovacuum started and held a lock the foreign-key operation needed. What lock on a new table, I hear you ask? The foreign key also needed a lock on the existing table it referenced. PostgreSQL normally interrupts an autovacuum when a conflicting lock is requested, but not when it is preventing transaction-ID wraparound. Our migration waited behind it, and writes then queued behind the migration’s lock request. As requests backed up, the database ran out of connections. Even rolling back the application failed because the replacement processes could not connect. We eventually shut down the application pods to free connections, but the migration never completed.

All sources and excerpts · 2
Evidence /* RowExclusiveLock */ LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) | LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),
Evidence if (lockMethodTable->conflictTab[lockmode] & lock->waitMask) found_conflict = true; else found_conflict = LockCheckConflicts(lockMethodTable, lockmode,
How the review tested this

Review: We tested the foreign-key and compatible-read assertions. E-24 and E-25 establish write-lock conflicts and pending-request checks. They omit foreign-key lock acquisition and the read-lock conflict entry.

F5

Verified accurate: “…but not when it is preventing transaction-ID wraparound…”

ACCURATEFactual · holds up after review · also flagged 1 more time

Claim ledger

Article says
…but not when it is preventing transaction-ID wraparound…
What is true
ProcSleep excludes PROC_VACUUM_FOR_WRAPAROUND workers from automatic cancellation. Ordinary blocking autovacuum can receive cancellation. The article correctly distinguishes the two cases.

Source

Source · REL_18_6 · src/backend/storage/lmgr/proc.c:1535-1536if ((statusFlags & PROC_IS_AUTOVACUUM) && !(statusFlags & PROC_VACUUM_FOR_WRAPAROUND))

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

It turned out that our new table had a foreign key to one of our busiest tables (yes, yes, foreign keys bad). During the migration, an anti-wraparound autovacuum started and held a lock the foreign-key operation needed. What lock on a new table, I hear you ask? The foreign key also needed a lock on the existing table it referenced. PostgreSQL normally interrupts an autovacuum when a conflicting lock is requested, but not when it is preventing transaction-ID wraparound. Our migration waited behind it, and writes then queued behind the migration’s lock request. As requests backed up, the database ran out of connections. Even rolling back the application failed because the replacement processes could not connect. We eventually shut down the application pods to free connections, but the migration never completed.

All sources and excerpts · 2
Evidence if ((statusFlags & PROC_IS_AUTOVACUUM) && !(statusFlags & PROC_VACUUM_FOR_WRAPAROUND))
Evidence is running to prevent transaction ID wraparound (i.e., the autovacuum query name in the <structname>pg_stat_activity</structname> view ends with <literal>(to prevent wraparound)</literal>), the autovacuum is not automatically interrupted.
How the review tested this

Review: We tested automatic cancellation against manual interruption. The finding addresses only automatic cancellation, whose condition excludes wraparound workers. We checked whether resistance means immunity from every cancellation. The finding confines itself to PostgreSQL's automatic blocking-autovacuum cancellation.

F6

Verified accurate: “…ACCESS EXCLUSIVE , which blocks even reads…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…ACCESS EXCLUSIVE , which blocks even reads…
What is true
AccessExclusiveLock conflicts with AccessShareLock, which ordinary SELECT acquires. PostgreSQL documents this lock for many ALTER TABLE forms.

Source

Source · REL_18_6 · doc/src/sgml/mvcc.sgml:1089-1090commands. Many forms of <command>ALTER INDEX</command> and <command>ALTER TABLE</command> also acquire a lock at this level.

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables, which conflicts with writes; many other forms of ALTER TABLE need ACCESS EXCLUSIVE , which blocks even reads. While the migration waits for its lock, new queries queue behind it, so it can block production before changing anything. Doctolib explains this well in their article on PostgreSQL migration locks .

All sources and excerpts · 2
Evidence commands. Many forms of <command>ALTER INDEX</command> and <command>ALTER TABLE</command> also acquire a lock at this level.
Evidence /* AccessShareLock */ LOCKBIT_ON(AccessExclusiveLock),
How the review tested this

Review: We checked the AccessShareLock conflict entry and ALTER TABLE documentation. Both support blocking ordinary reads of the locked table. We checked the conflict matrix and ALTER TABLE documentation. ACCESS EXCLUSIVE conflicts with ordinary reads' AccessShareLock.

F7

Verified accurate: “Building an index without CONCURRENTLY can block writes until it finishes…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
Building an index without CONCURRENTLY can block writes until it finishes…
What is true
CREATE INDEX takes ShareLock unless it uses the concurrent path. ShareLock conflicts with writers' RowExclusiveLock. PostgreSQL documents that writers wait until an ordinary index build finishes.

Source

Source · REL_18_6 · src/backend/storage/lmgr/lock.c:74-76/* RowExclusiveLock */ LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) | LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Building an index without CONCURRENTLY can block writes until it finishes…
All sources and excerpts · 3
Evidence /* RowExclusiveLock */ LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) | LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),
Evidence lockmode = concurrent ? ShareUpdateExclusiveLock : ShareLock; rel = table_open(tableId, lockmode);
Evidence insert, update, or delete rows in the table they will block until the index build is finished.
How the review tested this

Review: We compared concurrent and ordinary CREATE INDEX paths. The ordinary path takes ShareLock, which conflicts with writers. We compared ordinary and concurrent index lock modes. Ordinary builds take ShareLock, which conflicts with writers.

F8

Verified accurate: “…adding a constraint can involve validating existing rows…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…adding a constraint can involve validating existing rows…
What is true
REL_18_6 documents that adding a constraint normally scans existing rows (E-33). The foreign-key condition tests skip_validation and is_enforced (E-32). The article correctly says constraint addition can involve validating existing rows.

Source

Source · REL_18_6 · src/backend/commands/tablecmds.c:11094-11095if (wqueue && !old_check_ok && !fkconstraint->skip_validation && fkconstraint->is_enforced)

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…adding a constraint can involve validating existing rows…
All sources and excerpts · 2
Evidence if (wqueue && !old_check_ok && !fkconstraint->skip_validation && fkconstraint->is_enforced)
Evidence Normally, this form will cause a scan of the table to verify that all existing rows in the table satisfy the new constraint.
How the review tested this

Review: We tested whether E-32 connects NOT VALID to deferred validation. It shows a condition without its body or parser mapping. E-33 supports the article's conditional scan claim.

F9

Verified accurate: “…one should stop using a column before dropping it…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…one should stop using a column before dropping it…
What is true
PostgreSQL raises UNDEFINED_COLUMN when a query references a missing column. Retaining the physical column until all dependent application versions stop querying it avoids that failure.

Source

Source · REL_18_6 · src/backend/parser/parse_relation.c:3861-3865ereport(ERROR, (errcode(ERRCODE_UNDEFINED_COLUMN), relname ? errmsg("column %s.%s does not exist", relname, colname) : errmsg("column \"%s\" does not exist", colname),

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…one should stop using a column before dropping it…
All sources and excerpts · 1
Evidence ereport(ERROR, (errcode(ERRCODE_UNDEFINED_COLUMN), relname ? errmsg("column %s.%s does not exist", relname, colname) : errmsg("column \"%s\" does not exist", colname),
How the review tested this

Review: We checked whether PostgreSQL evidence could certify Django behavior. The finding only verifies missing-column errors and the resulting deployment ordering. We checked whether the evidence certifies Django migration behavior. The finding verifies only PostgreSQL's missing-column failure and the compatible deployment order.

F10

Verified accurate: “…the pooler’s connections to PostgreSQL have their own budget…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…the pooler’s connections to PostgreSQL have their own budget…
What is true
PgBouncer separates max_client_conn from default_pool_size. The first limits clients. The second limits server connections per user/database pair. Application pool demand does not directly equal PostgreSQL connection demand.

Source

Source · pgbouncer@pgbouncer_1_26_1 · doc/config.md:97-99### max_client_conn Maximum number of client connections allowed.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…the pooler’s connections to PostgreSQL have their own budget…
All sources and excerpts · 2
Evidence### max_client_conn Maximum number of client connections allowed.
Evidence### default_pool_size The maximum number of server connections to allow per user/database pair. Can be overridden by
How the review tested this

Review: We tested whether application clients equal server connections. PgBouncer documents separate limits, with default_pool_size applying per user/database pair. We tested whether client demand equals server demand. PgBouncer documents separate client and server settings. The finding claims no incident-specific connection count.

F11

Verified accurate: “A plan checked with EXPLAIN against representative data…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
A plan checked with EXPLAIN against representative data…
What is true
EXPLAIN displays the chosen plan. PostgreSQL warns against extrapolating plans from tiny tables to large tables. These facts support inspecting generated SQL against representative data.

Source

Source · REL_18_6 · doc/src/sgml/perform.sgml:34-35You can use the <link linkend="sql-explain"><command>EXPLAIN</command></link> command to see what query plan the planner creates for any query.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)A plan checked with EXPLAIN against representative data…
All sources and excerpts · 2
Evidence You can use the <link linkend="sql-explain"><command>EXPLAIN</command></link> command to see what query plan the planner creates for any query.
Evidence <command>EXPLAIN</command> results should not be extrapolated to situations much different from the one you are actually testing; for example, results on a toy-sized table cannot be assumed to apply to large tables.
How the review tested this

Review: We tested whether EXPLAIN guarantees production timings. The finding claims plan visibility and representative-data testing, both supported by the documentation. We checked whether EXPLAIN alone establishes execution time. The finding claims plan visibility and representative-data benefits, which the documentation supports.

F12

Verified accurate: “…an OR does not imply a full-table scan in every PostgreSQL query…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…an OR does not imply a full-table scan in every PostgreSQL query…
What is true
PostgreSQL generates BitmapOrPaths for suitable OR clauses. It can combine multiple index scans. An OR expression alone does not require a sequential scan.

Source

Source · REL_18_6 · src/backend/optimizer/path/indxpath.c:318-321/* * Generate BitmapOrPaths for any suitable OR-clauses present in the * restriction list. Add these to bitindexpaths. */

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…an OR does not imply a full-table scan in every PostgreSQL query…
All sources and excerpts · 2
Evidence /* * Generate BitmapOrPaths for any suitable OR-clauses present in the * restriction list. Add these to bitindexpaths. */
EvidenceThe system can form <literal>AND</literal> and <literal>OR</literal> conditions across several index scans.
How the review tested this

Review: We looked for a universal claim that OR uses indexes. The finding says suitable clauses can use BitmapOrPaths, which the source confirms. We checked whether OR forces sequential scanning. The planner generates suitable BitmapOrPaths. The finding does not certify the unavailable subscription query.

F13

Verified accurate: “…ordering and data distribution can make an ordinary-looking query expensive…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…ordering and data distribution can make an ordinary-looking query expensive…
What is true
PostgreSQL considers index scans and explicit sorts for ORDER BY. cost_index uses estimated index correlation when calculating heap I/O costs. Ordering and data distribution can change plan costs.

Source

Source · REL_18_6 · doc/src/sgml/indices.sgml:577-580The planner will consider satisfying an <literal>ORDER BY</literal> specification either by scanning an available index that matches the specification, or by scanning the table in physical order and doing an explicit sort.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…ordering and data distribution can make an ordinary-looking query expensive…
All sources and excerpts · 2
Evidence The planner will consider satisfying an <literal>ORDER BY</literal> specification either by scanning an available index that matches the specification, or by scanning the table in physical order and doing an explicit sort.
Evidence csquared = indexCorrelation * indexCorrelation; run_cost += max_IO_cost + csquared * (min_IO_cost - max_IO_cost);
How the review tested this

Review: We checked whether cost_index actually uses correlation. Its I/O cost interpolation does, while the documentation confirms alternative ORDER BY plans. We tested whether the evidence establishes every data-distribution effect. The finding states only that ordering and index correlation affect planner costs.

F14

Verified accurate: “…audit timeouts across the whole system, not one setting at a time…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
…audit timeouts across the whole system, not one setting at a time…
What is true
PgBouncer recommends setting its query_timeout above PostgreSQL statement_timeout. PostgreSQL also distinguishes statement_timeout from lock_timeout. These settings act on different stages and require coordinated values.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:10308-10309Unlike <varname>statement_timeout</varname>, this timeout can only occur while waiting for locks.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…audit timeouts across the whole system, not one setting at a time…
All sources and excerpts · 2
Evidence Unlike <varname>statement_timeout</varname>, this timeout can only occur while waiting for locks.
Evidence### query_timeout Queries running longer than that are canceled. This should be used only with a slightly smaller server-side `statement_timeout`, to apply only for network problems. [seconds]
How the review tested this

Review: We checked the direction of the timeout recommendation. PgBouncer specifies a smaller server-side statement_timeout, consistent with the finding. We checked the recommended timeout ordering. PgBouncer explicitly recommends a smaller server-side statement_timeout than its query_timeout.

F15

Verified accurate: “Small batches help…”

ACCURATEFactual · holds up after review

Claim ledger

Article says
Small batches help…
What is true
PostgreSQL documents replica lag and lock contention from large updates. It recommends smaller batches for those conditions. Locks normally remain until transaction end. Separate bounded transactions address that lock duration.

Source

Source · REL_18_6 · doc/src/sgml/ref/update.sgml:481-484Updates affecting many rows can have negative effects on system performance, such as table bloat, increased replica lag, and increased lock contention. In such situations it can make sense to perform the operation in smaller batches, possibly with a <command>VACUUM</command>

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Small batches help…
All sources and excerpts · 2
Evidence Updates affecting many rows can have negative effects on system performance, such as table bloat, increased replica lag, and increased lock contention. In such situations it can make sense to perform the operation in smaller batches, possibly with a <command>VACUUM</command>
Evidence Once acquired, a lock is normally held until the end of the transaction. But if a
How the review tested this

Review: We tested batches inside one long transaction. The finding explicitly requires separate bounded transactions and does not promise that batching alone prevents lag. We tested whether batches inside one long transaction guarantee shorter locks. The finding requires separate bounded transactions and promises no universal improvement.

F16

max_slot_wal_keep_size is a checkpoint limit

ACCURATEFactual · holds up after review

Claim ledger

Article says
…it is not an instantaneous ceiling on disk use.
What is true
REL_18_6 documents the retention limit at checkpoint time in doc/src/sgml/config.sgml:4717. Removing required WAL can prevent a standby from continuing replication. The article states both qualifications.
Charitable reading
The article describes a checkpoint limit and explicitly accepts the risk of losing required WAL.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:4717-4720Specify the maximum size of WAL files that <link linkend="streaming-replication-slots">replication slots</link> are allowed to retain in the <filename>pg_wal</filename> directory at checkpoint time.

Review correction: see "How the review tested this" below.

In the article · section “1. Batch and throttle backfills”

In the article

excerpt · section “1. Batch and throttle backfills” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

1. Batch and throttle backfills

We also set a limit on the WAL retained by replication slots using max_slot_wal_keep_size . PostgreSQL applies this limit at checkpoints, so it is not an instantaneous ceiling on disk use. If it removes WAL that the replica still needs, the replica may be unable to catch up and need rebuilding. That trade-off requires knowing who depends on the replica, and what rebuilding it would involve.

All sources and excerpts · 2
Evidence Specify the maximum size of WAL files that <link linkend="streaming-replication-slots">replication slots</link> are allowed to retain in the <filename>pg_wal</filename> directory at checkpoint time.
Evidence restart_lsn of a replication slot falls behind the current LSN by more than the given size, the standby using the slot may no longer be able to continue replication due to removal of required WAL files. You
How the review tested this

Review: We checked checkpoint timing and the consequence of removing required WAL. Both appear directly in config.sgml. We checked checkpoint timing and lost-WAL consequences. Both qualifications appear in PostgreSQL documentation and the article.

F17

lock_timeout limits lock acquisition waits

ACCURATEFactual · holds up after review

Claim ledger

Article says
…lock_timeout bounds waiting, not how long an acquired lock is held…
What is true
lock_timeout does not limit how long a transaction holds an acquired lock. REL_18_6 states this distinction in doc/src/sgml/config.sgml:10308.
Charitable reading
The article distinguishes waiting for a lock from holding an acquired lock.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:10308-10309Unlike <varname>statement_timeout</varname>, this timeout can only occur while waiting for locks. Note that if <varname>statement_timeout</varname>

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

Also, don’t make a mistake I’ve made: lock_timeout bounds waiting, not how long an acquired lock is held!

All sources and excerpts · 1
Evidence Unlike <varname>statement_timeout</varname>, this timeout can only occur while waiting for locks. Note that if <varname>statement_timeout</varname>
How the review tested this

Review: We checked whether the finding certifies the proposed 250-millisecond setting. It verifies only lock_timeout semantics, which config.sgml supports. We checked whether the finding validates the suggested 250-millisecond setting. It verifies only acquisition-wait semantics.

F19

OR conditions can use indexes

ACCURATEFactual · holds up after review

Claim ledger

Article says
…an OR does not imply a full-table scan in every PostgreSQL query.
What is true
OR does not force a sequential scan. REL_18_6 doc/src/sgml/indices.sgml:665 documents combining multiple index scans for OR conditions.
Charitable reading
The article confines its scan incident to one query and dataset.

Source

Source · REL_18_6 · doc/src/sgml/indices.sgml:665-668<productname>PostgreSQL</productname> has the ability to combine multiple indexes (including multiple uses of the same index) to handle cases that cannot be implemented by single index scans. The system can form <literal>AND</literal> and <literal>OR</literal> conditions across several index scans. For example,

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…an OR does not imply a full-table scan in every PostgreSQL query.
All sources and excerpts · 1
Evidence <productname>PostgreSQL</productname> has the ability to combine multiple indexes (including multiple uses of the same index) to handle cases that cannot be implemented by single index scans. The system can form <literal>AND</literal> and <literal>OR</literal> conditions across several index scans. For example,
How the review tested this

Review: We checked whether the finding certifies the unavailable subscription query. It only rejects a universal OR restriction, which indices.sgml disproves. We tested the universal claim that OR requires a sequential scan. Documented combinations of index scans disprove that interpretation.

F20

PgBouncer exposes waiting clients

ACCURATEFactual · holds up after review

Claim ledger

Article says
…PgBouncer queues…
What is true
PgBouncer 1.26.1 exposes cl_waiting through SHOW POOLS. doc/usage.md:430 defines clients awaiting a server connection after submitting queries.
Charitable reading
The article recommends observing PgBouncer queues without claiming that queues prove CPU saturation.

Source

Source · pgbouncer@pgbouncer_1_26_1 · doc/usage.md:430-431cl_waiting : Client connections that have sent queries but have not yet got a server connection.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…PgBouncer queues…
All sources and excerpts · 1
Evidencecl_waiting : Client connections that have sent queries but have not yet got a server connection.
How the review tested this

Review: We tested whether waiting clients establish CPU saturation. The finding only identifies the cl_waiting metric and its documented meaning. We checked whether cl_waiting proves CPU saturation or the reported incident. The finding verifies only the observable queue.

F21

Small-table tests cannot establish production query costs

ACCURATEFactual · holds up after review

Claim ledger

Article says
Counting queries on a tiny test database didn’t tell us what those queries would cost in production.
What is true
PostgreSQL can choose different plans as table size changes. REL_18_6 doc/src/sgml/perform.sgml:1127 warns against extrapolating small-table results. A one-page table usually favors a sequential scan.
Charitable reading
The article says query counts on a tiny database cannot establish production cost.

Source

Source · REL_18_6 · doc/src/sgml/perform.sgml:1127-1131results on a toy-sized table cannot be assumed to apply to large tables. The planner's cost estimates are not linear and so it might choose a different plan for a larger or smaller table. An extreme example is that on a table that only occupies one disk page, you'll nearly always get a sequential scan plan whether indexes are available or not.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Counting queries on a tiny test database didn’t tell us what those queries would cost in production.
All sources and excerpts · 1
Evidence results on a toy-sized table cannot be assumed to apply to large tables. The planner's cost estimates are not linear and so it might choose a different plan for a larger or smaller table. An extreme example is that on a table that only occupies one disk page, you'll nearly always get a sequential scan plan whether indexes are available or not.
How the review tested this

Review: We tested whether the documentation merely discusses timing variation. It explicitly warns that table size can change the chosen plan. We checked whether the finding treats every small-table plan as useless. It preserves the narrower warning against extrapolating production costs.

F22

A waiting migration can block conflicting requests

ACCURATEFactual · holds up after review

Claim ledger

Article says
…it can block production before changing anything.
What is true
A pending lock request can block later conflicting requests before its transaction changes data. REL_18_6 src/backend/storage/lmgr/lock.c:1093 checks conflicts against waiting requests.
Charitable reading
The surrounding paragraph concerns queries whose lock modes conflict with the waiting migration.

Source

Source · REL_18_6 · src/backend/storage/lmgr/lock.c:1086-1104/* * If lock requested conflicts with locks requested by waiters, must join * wait queue. Otherwise, check for conflict with already-held locks. * (That's last because most complex check.) */ if (lockMethodTable->conflictTab[lockmode] & lock->waitMask) found_conflict = true;

Review correction: see "How the review tested this" below.

In the article · section “2. Set short lock timeouts and retry”

In the article

excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · open in article ↗ (opens in new tab)

2. Set short lock timeouts and retry

Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables, which conflicts with writes; many other forms of ALTER TABLE need ACCESS EXCLUSIVE , which blocks even reads. While the migration waits for its lock, new queries queue behind it, so it can block production before changing anything. Doctolib explains this well in their article on PostgreSQL migration locks .

All sources and excerpts · 1
Evidence /* * If lock requested conflicts with locks requested by waiters, must join * wait queue. Otherwise, check for conflict with already-held locks. * (That's last because most complex check.) */ if (lockMethodTable->conflictTab[lockmode] & lock->waitMask) found_conflict = true;
How the review tested this

Review: We checked whether only granted locks cause blocking. LockAcquireExtended also checks incompatible waiting requests, which supports the conditional claim. We checked whether waiting DDL must first change data to block requests. LockAcquireExtended checks pending incompatible requests before granting locks.

F23

The stated lookup workload requires 26 CPU-seconds per second

ACCURATEFactual · holds up after review

Claim ledger

Article says
At roughly twenty entitlement checks per second, that demanded about twenty-six CPU-seconds of work every second…
What is true
The CPU calculation is correct: 26 CPU-seconds per second (derived: 1.3 CPU-seconds per lookup × 20 lookups per second). This subtotal excludes other application work. It does not independently verify either input.
Charitable reading
The article calculates CPU demand from its stated inputs. It does not present 26 CPU-seconds per second as independently measured throughput.

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

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)At roughly twenty entitlement checks per second, that demanded about twenty-six CPU-seconds of work every second…
How the review tested this

Review: We recalculated 1.3 CPU-seconds per lookup × 20 lookups per second = 26 CPU-seconds per second. The finding excludes measurement verification. We recomputed 1.3 CPU-seconds per lookup times 20 lookups per second. The result is 26 CPU-seconds per second. Inputs remain unverified.

More in this report

Section checks · 6 sections

Section checks

AspectGradeFindingsCoverage
Backfills and WALA3 verified-accurate100% of claims (10 of 10, plus 13 that need data we do not have)
Migration locksA9 verified-accurate100% of claims (16 of 16, plus 14 that need data we do not have)
Compatible schema changesA1 verified-accurate100% of claims (2 of 2, plus 4 that need data we do not have)
Connection transitionsA1 verified-accurate100% of claims (2 of 2, plus 18 that need data we do not have)
Query plansA6 verified-accurate100% of claims (9 of 9, plus 13 that need data we do not have)
Automated controlsA2 verified-accurate100% of claims (2 of 2, plus 7 that need data we do not have)
Coverage and assessment · Checked 41 of 41 Postgres claims across 8 sections

A — the findings address the article's main subject. What we did not check is listed below. Checks directly test the outage-prevention guidance on WAL retention, lock_timeout, column removal, PgBouncer limits, and EXPLAIN.

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

What we did not check

  • We did not verify incident timelines, disk volumes, connection peaks, CPU measurements, or recovery outcomes.
  • We did not check Django, SQLAlchemy, Alembic, or the migration linter's implementation.
  • We did not validate the proposed 250 ms to 1 second DDL timeouts, retries, or application pool settings against production.
  • We did not check the application's backfill code, concurrent-write handling, rollout procedures, or timeout configuration.
  • We did not reproduce query plans or verify alias lookups against the application's SQL and indexes.
  • We could not retrieve the DoorDash, Doctolib, or GoCardless articles.
  • We could not retrieve the DoorDash, Doctolib, or GoCardless articles cited for backfills, migration locks, and query planning.
  • We did not independently verify the reported incidents, connection peaks, query timings, or monitoring timelines.
  • We did not verify Google's 60 TB storage limit, storage billing, or the reported need for downtime.
  • We did not verify the Django and SQLAlchemy behavior or test the migration sequence.
  • We did not verify the migration linter's implementation or its deployed configuration.
  • We did not reproduce the measurements or test the backfill and rollout procedures.
  • We did not verify the article's incident measurements against operational records.
  • We could not recalculate the five-to-seven-day disk forecast without the measured storage growth rate.
  • We did not verify the nearly $6,000 monthly storage estimate without billing rates and storage configuration.
  • We did not reproduce the article's lookup timings or connection measurements.
  • Transparent: we did not finish checking whether the claims cite sources.
  • Transparent: we did not finish checking whether the claims are dated.
  • Transparent: we did not finish checking whether the article discloses the author's interest.
  • We could not decide whether the article contains a material benchmark.

Script checks

  • No fenced or preformatted code blocks were identified. Inline snippets and other setup instructions were not checked for syntax.
Checked 41 of 41 Postgres claims across 8 sections
  • Introduction: no checkable claims; not counted: 10 product or opinion, 1 duplicate, 6 not a claim
  • Backfills and WAL: 10 of 10 Postgres claims checked, plus 13 that need data we do not have; not counted: 15 product or opinion, 1 duplicate, 2 not a claim
  • Migration locks: 16 of 16 Postgres claims checked, plus 14 that need data we do not have; not counted: 9 product or opinion, 1 duplicate, 4 not a claim
  • Compatible schema changes: 2 of 2 Postgres claims checked, plus 4 that need data we do not have; not counted: 17 product or opinion, 1 duplicate, 1 not a claim
  • Connection transitions: 2 of 2 Postgres claims checked, plus 18 that need data we do not have; not counted: 7 product or opinion, 1 not a claim
  • Query plans: 9 of 9 Postgres claims checked, plus 13 that need data we do not have; not counted: 11 product or opinion, 2 not a claim
  • Automated controls: 2 of 2 Postgres claims checked, plus 7 that need data we do not have; not counted: 21 product or opinion, 3 duplicate, 2 not a claim
  • Footer: no checkable claims; not counted: 1 product or opinion, 3 duplicate, 23 not a claim

Average of 5 axes: 4 · result A

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

Scorecard · the five axes
FACTS scorecard Scorecard radar, 5 axes, bigger is better. Overall A. Factual A · 0 wrong of 22 checked · 0 caveats. Applicable A · 0 wrong of 22 checked · 0 caveats. Consistent A · 0 wrong of 22 checked · 0 caveats. Transparent A · 0 wrong of 10 checked · 0 caveats. Safe A · 0 wrong of 22 checked · 0 caveats. A 0 wrong of 22 checked · 0 caveatsFactual A0 wrong of 220 caveats A 0 wrong of 22 checked · 0 caveatsApplicable A0 wrong of 220 caveats A 0 wrong of 22 checked · 0 caveatsConsistent A0 wrong of 220 caveats A 0 wrong of 10 checked · 0 caveatsTransparent A0 wrong of 100 caveats A 0 wrong of 22 checked · 0 caveatsSafe A0 wrong of 220 caveats A

By topic: Backfills and WAL — 3 findings, 0 wrong · Migration locks — 9 findings, 0 wrong · Compatible schema changes — 1 finding, 0 wrong · Connection transitions — 1 finding, 0 wrong · Query plans — 6 findings, 0 wrong · Automated controls — 2 findings, 0 wrong

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

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

We checked 22 claims.

AxisLetterWrongCaveatsCheckedCoverage
FactualA0022assessed: A · 0 wrong of 22 checked · 0 caveats
ApplicableA0022assessed: A · 0 wrong of 22 checked · 0 caveats
ConsistentA0022assessed: A · 0 wrong of 22 checked · 0 caveats
TransparentA0010assessed: A · 0 wrong of 10 checked · 0 caveats
SafeA0022assessed: A · 0 wrong of 22 checked · 0 caveats
Topics · 6 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Backfills and WAL0 issues 3 checked F1 F15 F160 issues 3 checked0 issues 3 checked0 issues 2 checked
Migration locks0 issues 9 checked F2 F3 F4 F5 F6 F7 F8 F17 F220 issues 3 checked0 issues 9 checked0 issues 1 checked
Compatible schema changes0 issues 1 checked F90 issues 1 checked
Connection transitions0 issues 1 checked F100 issues 1 checked0 issues 1 checked
Query plans0 issues 6 checked F11 F12 F13 F19 F21 F230 issues 3 checked0 issues 6 checked0 issues 4 checked
Automated controls0 issues 2 checked F14 F200 issues 1 checked0 issues 2 checked0 issues 2 checked

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

Revisions: 1 · A

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

  1. Revision 1 · this page · 2026-10-31 02:31 UTC · A · audited with v1.1.3

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

    ElephantSeal: A.

    Changes: First audit. Open: none.

First impression
Questions and answers

Questions and answers

What is pgTrue?

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

What does the letter grade mean?

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

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

What is the ElephantSeal?

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

Can an author reply?

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

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

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

# pgTrue report: How a read replica almost took down its primary database and other database tales

Article title: How a read replica almost took down its primary database and other database tales
Article URL: https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database
Report URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7
Audited revision: 1 of 1, 2026-10-31 02:31:04 UTC
Overall letter: A

## Axes

- Factual: A · 0 wrong · 22 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 22 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 22 checked · 0 caveats · assessed
- Transparent: A · 0 wrong · 10 checked · 0 caveats · assessed
- Safe: A · 0 wrong · 22 checked · 0 caveats · assessed

ElephantSeal: A.

## Report metadata

- Report: Technical fact-check, edition 2
- pgTrue version: audited with v1.1.3
- Issued: 2026-10-31
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. See Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).

## Findings needing a change (0)

None.

## Verified accurate claims (22)

### F1 · Accurate · Factual · Verified accurate: “…limit on the WAL retained by replication slots using max_slot_wal_keep_size…”
Location: excerpt · section “1. Batch and throttle backfills” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=limit%20on%20the%20WAL%20retained%20by%20replication%20slots%20using%20max_slot_wal_keep_size)
Article says:
```text
…limit on the WAL retained by replication slots using max_slot_wal_keep_size…
```
What is true:
max_slot_wal_keep_size limits slot-based WAL retention at checkpoints. KeepLogSeg caps the retention horizon. Checkpoint cleanup can invalidate slots whose WAL becomes unavailable. The setting does not impose a hard ceiling on total pg_wal disk use.
Review: We tested whether the finding confuses slot retention with total WAL usage. It explicitly distinguishes them and preserves checkpoint timing. We tested whether the finding promises a total pg_wal ceiling. It explicitly rejects that interpretation. Checkpoint retention and invalidation match.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:4717-4720](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L4717-L4720)
  Excerpt:
  ```text
  Specify the maximum size of WAL files
        that <link linkend="streaming-replication-slots">replication
        slots</link> are allowed to retain in the <filename>pg_wal</filename>
        directory at checkpoint time.
  ```
- [REL_18_6 · src/backend/access/transam/xlog.c:8019-8027](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xlog.c#L8019-L8027)
  Excerpt:
  ```text
  if (max_slot_wal_keep_size_mb >= 0 && !IsBinaryUpgrade)
		{
			uint64		slot_keep_segs;

			slot_keep_segs =
				ConvertToXSegs(max_slot_wal_keep_size_mb, wal_segment_size);

			if (currSegNo - segno > slot_keep_segs)
				segno = currSegNo - slot_keep_segs;
  ```
- [REL_18_6 · src/backend/access/transam/xlog.c:7359-7363](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xlog.c#L7359-L7363)
  Excerpt:
  ```text
  XLByteToSeg(RedoRecPtr, _logSegNo, wal_segment_size);
	KeepLogSeg(recptr, &_logSegNo);
	if (InvalidateObsoleteReplicationSlots(RS_INVAL_WAL_REMOVED | RS_INVAL_IDLE_TIMEOUT,
										   _logSegNo, InvalidOid,
										   InvalidTransactionId))
  ```
- [REL_18_6 · doc/src/sgml/high-availability.sgml:953-957](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/high-availability.sgml#L953-L957)
  Excerpt:
  ```text
  Beware that replication slots can cause the server to retain so
     many WAL segments that they fill up the space allocated for
     <literal>pg_wal</literal>.
     <xref linkend="guc-max-slot-wal-keep-size"/> can be used to limit the size
     of WAL files retained by replication slots.
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:4724-4725](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L4724-L4725)
  Excerpt:
  ```text
  than the given size, the standby using the slot may no longer be able
        to continue replication due to removal of required WAL files. You
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F1

### F2 · Accurate · Factual · Verified accurate: “…lock_timeout bounds waiting…”
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=lock_timeout%20bounds%20waiting)
Article says:
```text
…lock_timeout bounds waiting…
```
What is true:
REL_18_6 documents that lock_timeout can occur only while waiting for locks (E-20). It does not bound acquired-lock duration. E-21 shows code disabling LOCK_TIMEOUT.
Review: We tested whether E-21 establishes ProcSleep's control flow. It shows timer disabling, but omits the enclosing function and wait completion. E-20 supports the article's timeout distinction.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:10308-10309](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10308-L10309)
  Excerpt:
  ```text
  Unlike <varname>statement_timeout</varname>, this timeout can only occur
        while waiting for locks.
  ```
- [REL_18_6 · src/backend/storage/lmgr/proc.c:1699-1707](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L1699-L1707)
  Excerpt:
  ```text
  if (LockTimeout > 0)
		{
			DisableTimeoutParams timeouts[2];

			timeouts[0].id = DEADLOCK_TIMEOUT;
			timeouts[0].keep_indicator = false;
			timeouts[1].id = LOCK_TIMEOUT;
			timeouts[1].keep_indicator = true;
			disable_timeouts(timeouts, 2);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F2

### F3 · Accurate · Factual · Verified accurate: “Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables…”
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=Adding%20a%20foreign%20key%20takes,EXCLUSIVE%20lock%20on%20both%20tables)
Article says:
```text
Adding a foreign key takes a SHARE ROW EXCLUSIVE lock on both tables…
```
What is true:
ALTER TABLE ADD FOREIGN KEY requests ShareRowExclusiveLock on the referencing table. It opens the referenced table with the same mode. RowExclusiveLock conflicts with that mode.
Review: We tested the surrounding migration's potentially stronger locks. The finding confines its claim to ADD FOREIGN KEY and correctly identifies both locks. We distinguished ADD FOREIGN KEY locks from stronger locks held by surrounding DDL. Both table locks and writer conflicts match.

Sources:
- [REL_18_6 · src/backend/commands/tablecmds.c:4753-4761](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L4753-L4761)
  Excerpt:
  ```text
  case CONSTR_FOREIGN:

							/*
							 * We add triggers to both tables when we add a
							 * Foreign Key, so the lock level must be at least
							 * as strong as CREATE TRIGGER.
							 */
							cmd_lockmode = ShareRowExclusiveLock;
							break;
  ```
- [REL_18_6 · src/backend/commands/tablecmds.c:10111-10111](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L10111-L10111)
  Excerpt:
  ```text
  pkrel = table_openrv(fkconstraint->pktable, ShareRowExclusiveLock);
  ```
- [REL_18_6 · src/backend/storage/lmgr/lock.c:74-76](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L74-L76)
  Excerpt:
  ```text
  /* RowExclusiveLock */
	LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) |
	LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F3

### F4 · Accurate · Factual · Verified accurate: “…writes then queued behind the migration’s lock request…”
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=writes%20then%20queued%20behind%20the%20migration%E2%80%99s%20lock%20request)
Article says:
```text
…writes then queued behind the migration’s lock request…
```
What is true:
REL_18_6 checks pending incompatible lock requests before checking held locks (E-25). RowExclusiveLock conflicts with ShareRowExclusiveLock (E-24). A pending incompatible request can delay writes. These excerpts do not verify the incident's lock history.
Review: We tested the foreign-key and compatible-read assertions. E-24 and E-25 establish write-lock conflicts and pending-request checks. They omit foreign-key lock acquisition and the read-lock conflict entry.

Sources:
- [REL_18_6 · src/backend/storage/lmgr/lock.c:74-76](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L74-L76)
  Excerpt:
  ```text
  /* RowExclusiveLock */
	LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) |
	LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),
  ```
- [REL_18_6 · src/backend/storage/lmgr/lock.c:1093-1096](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L1093-L1096)
  Excerpt:
  ```text
  if (lockMethodTable->conflictTab[lockmode] & lock->waitMask)
		found_conflict = true;
	else
		found_conflict = LockCheckConflicts(lockMethodTable, lockmode,
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F4

### F5 · Accurate · Factual · Verified accurate: “…but not when it is preventing transaction-ID wraparound…”
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=but%20not%20when%20it%20is%20preventing%20transaction%2DID%20wraparound)
Article says:
```text
…but not when it is preventing transaction-ID wraparound…
```
What is true:
ProcSleep excludes PROC_VACUUM_FOR_WRAPAROUND workers from automatic cancellation. Ordinary blocking autovacuum can receive cancellation. The article correctly distinguishes the two cases.
Review: We tested automatic cancellation against manual interruption. The finding addresses only automatic cancellation, whose condition excludes wraparound workers. We checked whether resistance means immunity from every cancellation. The finding confines itself to PostgreSQL's automatic blocking-autovacuum cancellation.

Sources:
- [REL_18_6 · src/backend/storage/lmgr/proc.c:1535-1536](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L1535-L1536)
  Excerpt:
  ```text
  if ((statusFlags & PROC_IS_AUTOVACUUM) &&
				!(statusFlags & PROC_VACUUM_FOR_WRAPAROUND))
  ```
- [REL_18_6 · doc/src/sgml/maintenance.sgml:1024-1027](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/maintenance.sgml#L1024-L1027)
  Excerpt:
  ```text
  is running to prevent transaction ID wraparound (i.e., the autovacuum query
    name in the <structname>pg_stat_activity</structname> view ends with
    <literal>(to prevent wraparound)</literal>), the autovacuum is not
    automatically interrupted.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F5

### F6 · Accurate · Factual · Verified accurate: “…ACCESS EXCLUSIVE , which blocks even reads…”
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=ACCESS%20EXCLUSIVE%20%2C%20which%20blocks%20even%20reads)
Article says:
```text
…ACCESS EXCLUSIVE , which blocks even reads…
```
What is true:
AccessExclusiveLock conflicts with AccessShareLock, which ordinary SELECT acquires. PostgreSQL documents this lock for many ALTER TABLE forms.
Review: We checked the AccessShareLock conflict entry and ALTER TABLE documentation. Both support blocking ordinary reads of the locked table. We checked the conflict matrix and ALTER TABLE documentation. ACCESS EXCLUSIVE conflicts with ordinary reads' AccessShareLock.

Sources:
- [REL_18_6 · doc/src/sgml/mvcc.sgml:1089-1090](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/mvcc.sgml#L1089-L1090)
  Excerpt:
  ```text
  commands. Many forms of <command>ALTER INDEX</command> and <command>ALTER TABLE</command> also acquire
         a lock at this level.
  ```
- [REL_18_6 · src/backend/storage/lmgr/lock.c:68-69](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L68-L69)
  Excerpt:
  ```text
  /* AccessShareLock */
	LOCKBIT_ON(AccessExclusiveLock),
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F6

### F7 · Accurate · Factual · Verified accurate: “Building an index without CONCURRENTLY can block writes until it finishes…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=Building%20an%20index%20without%20CONCURRENTLY,block%20writes%20until%20it%20finishes)
Article says:
```text
Building an index without CONCURRENTLY can block writes until it finishes…
```
What is true:
CREATE INDEX takes ShareLock unless it uses the concurrent path. ShareLock conflicts with writers' RowExclusiveLock. PostgreSQL documents that writers wait until an ordinary index build finishes.
Review: We compared concurrent and ordinary CREATE INDEX paths. The ordinary path takes ShareLock, which conflicts with writers. We compared ordinary and concurrent index lock modes. Ordinary builds take ShareLock, which conflicts with writers.

Sources:
- [REL_18_6 · src/backend/storage/lmgr/lock.c:74-76](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L74-L76)
  Excerpt:
  ```text
  /* RowExclusiveLock */
	LOCKBIT_ON(ShareLock) | LOCKBIT_ON(ShareRowExclusiveLock) |
	LOCKBIT_ON(ExclusiveLock) | LOCKBIT_ON(AccessExclusiveLock),
  ```
- [REL_18_6 · src/backend/commands/indexcmds.c:681-682](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/indexcmds.c#L681-L682)
  Excerpt:
  ```text
  lockmode = concurrent ? ShareUpdateExclusiveLock : ShareLock;
	rel = table_open(tableId, lockmode);
  ```
- [REL_18_6 · doc/src/sgml/ref/create_index.sgml:611-612](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_index.sgml#L611-L612)
  Excerpt:
  ```text
  insert, update, or delete rows in the table they will block until the
    index build is finished.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F7

### F8 · Accurate · Factual · Verified accurate: “…adding a constraint can involve validating existing rows…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=adding%20a%20constraint%20can%20involve%20validating%20existing%20rows)
Article says:
```text
…adding a constraint can involve validating existing rows…
```
What is true:
REL_18_6 documents that adding a constraint normally scans existing rows (E-33). The foreign-key condition tests skip_validation and is_enforced (E-32). The article correctly says constraint addition can involve validating existing rows.
Review: We tested whether E-32 connects NOT VALID to deferred validation. It shows a condition without its body or parser mapping. E-33 supports the article's conditional scan claim.

Sources:
- [REL_18_6 · src/backend/commands/tablecmds.c:11094-11095](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L11094-L11095)
  Excerpt:
  ```text
  if (wqueue && !old_check_ok && !fkconstraint->skip_validation &&
			fkconstraint->is_enforced)
  ```
- [REL_18_6 · doc/src/sgml/ref/alter_table.sgml:478-479](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/alter_table.sgml#L478-L479)
  Excerpt:
  ```text
  Normally, this form will cause a scan of the table to verify that all
      existing rows in the table satisfy the new constraint.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F8

### F9 · Accurate · Factual · Verified accurate: “…one should stop using a column before dropping it…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=one%20should%20stop%20using%20a%20column%20before%20dropping%20it)
Article says:
```text
…one should stop using a column before dropping it…
```
What is true:
PostgreSQL raises UNDEFINED_COLUMN when a query references a missing column. Retaining the physical column until all dependent application versions stop querying it avoids that failure.
Review: We checked whether PostgreSQL evidence could certify Django behavior. The finding only verifies missing-column errors and the resulting deployment ordering. We checked whether the evidence certifies Django migration behavior. The finding verifies only PostgreSQL's missing-column failure and the compatible deployment order.

Sources:
- [REL_18_6 · src/backend/parser/parse_relation.c:3861-3865](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L3861-L3865)
  Excerpt:
  ```text
  ereport(ERROR,
				(errcode(ERRCODE_UNDEFINED_COLUMN),
				 relname ?
				 errmsg("column %s.%s does not exist", relname, colname) :
				 errmsg("column \"%s\" does not exist", colname),
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F9

### F10 · Accurate · Factual · Verified accurate: “…the pooler’s connections to PostgreSQL have their own budget…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=the%20pooler%E2%80%99s%20connections%20to%20PostgreSQL%20have%20their%20own%20budget)
Article says:
```text
…the pooler’s connections to PostgreSQL have their own budget…
```
What is true:
PgBouncer separates max_client_conn from default_pool_size. The first limits clients. The second limits server connections per user/database pair. Application pool demand does not directly equal PostgreSQL connection demand.
Review: We tested whether application clients equal server connections. PgBouncer documents separate limits, with default_pool_size applying per user/database pair. We tested whether client demand equals server demand. PgBouncer documents separate client and server settings. The finding claims no incident-specific connection count.

Sources:
- [pgbouncer@pgbouncer_1_26_1 · doc/config.md:97-99](https://github.com/pgbouncer/pgbouncer/blob/f03e9bf263d7ccd5d1d152a61811bf3258dd6b87/doc/config.md#L97-L99)
  Excerpt:
  ```text
  ### max_client_conn

Maximum number of client connections allowed.
  ```
- [pgbouncer@pgbouncer_1_26_1 · doc/config.md:124-126](https://github.com/pgbouncer/pgbouncer/blob/f03e9bf263d7ccd5d1d152a61811bf3258dd6b87/doc/config.md#L124-L126)
  Excerpt:
  ```text
  ### default_pool_size

The maximum number of server connections to allow per user/database pair. Can be overridden by
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F10

### F11 · Accurate · Factual · Verified accurate: “A plan checked with EXPLAIN against representative data…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=A%20plan%20checked%20with%20EXPLAIN%20against%20representative%20data)
Article says:
```text
A plan checked with EXPLAIN against representative data…
```
What is true:
EXPLAIN displays the chosen plan. PostgreSQL warns against extrapolating plans from tiny tables to large tables. These facts support inspecting generated SQL against representative data.
Review: We tested whether EXPLAIN guarantees production timings. The finding claims plan visibility and representative-data testing, both supported by the documentation. We checked whether EXPLAIN alone establishes execution time. The finding claims plan visibility and representative-data benefits, which the documentation supports.

Sources:
- [REL_18_6 · doc/src/sgml/perform.sgml:34-35](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/perform.sgml#L34-L35)
  Excerpt:
  ```text
  You can use the <link linkend="sql-explain"><command>EXPLAIN</command></link> command
    to see what query plan the planner creates for any query.
  ```
- [REL_18_6 · doc/src/sgml/perform.sgml:1125-1127](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/perform.sgml#L1125-L1127)
  Excerpt:
  ```text
  <command>EXPLAIN</command> results should not be extrapolated to situations
    much different from the one you are actually testing; for example,
    results on a toy-sized table cannot be assumed to apply to large tables.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F11

### F12 · Accurate · Factual · Verified accurate: “…an OR does not imply a full-table scan in every PostgreSQL query…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=an%20OR%20does%20not%20imply,scan%20in%20every%20PostgreSQL%20query)
Article says:
```text
…an OR does not imply a full-table scan in every PostgreSQL query…
```
What is true:
PostgreSQL generates BitmapOrPaths for suitable OR clauses. It can combine multiple index scans. An OR expression alone does not require a sequential scan.
Review: We looked for a universal claim that OR uses indexes. The finding says suitable clauses can use BitmapOrPaths, which the source confirms. We checked whether OR forces sequential scanning. The planner generates suitable BitmapOrPaths. The finding does not certify the unavailable subscription query.

Sources:
- [REL_18_6 · src/backend/optimizer/path/indxpath.c:318-321](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/path/indxpath.c#L318-L321)
  Excerpt:
  ```text
  /*
	 * Generate BitmapOrPaths for any suitable OR-clauses present in the
	 * restriction list.  Add these to bitindexpaths.
	 */
  ```
- [REL_18_6 · doc/src/sgml/indices.sgml:667-668](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/indices.sgml#L667-L668)
  Excerpt:
  ```text
  The system can form <literal>AND</literal>
   and <literal>OR</literal> conditions across several index scans.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F12

### F13 · Accurate · Factual · Verified accurate: “…ordering and data distribution can make an ordinary-looking query expensive…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=ordering%20and%20data%20distribution%20can%20make%20an%20ordinary%2Dlooking%20query%20expensive)
Article says:
```text
…ordering and data distribution can make an ordinary-looking query expensive…
```
What is true:
PostgreSQL considers index scans and explicit sorts for ORDER BY. cost_index uses estimated index correlation when calculating heap I/O costs. Ordering and data distribution can change plan costs.
Review: We checked whether cost_index actually uses correlation. Its I/O cost interpolation does, while the documentation confirms alternative ORDER BY plans. We tested whether the evidence establishes every data-distribution effect. The finding states only that ordering and index correlation affect planner costs.

Sources:
- [REL_18_6 · doc/src/sgml/indices.sgml:577-580](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/indices.sgml#L577-L580)
  Excerpt:
  ```text
  The planner will consider satisfying an <literal>ORDER BY</literal> specification
   either by scanning an available index that matches the specification,
   or by scanning the table in physical order and doing an explicit
   sort.
  ```
- [REL_18_6 · src/backend/optimizer/path/costsize.c:795-797](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/path/costsize.c#L795-L797)
  Excerpt:
  ```text
  csquared = indexCorrelation * indexCorrelation;

	run_cost += max_IO_cost + csquared * (min_IO_cost - max_IO_cost);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F13

### F14 · Accurate · Factual · Verified accurate: “…audit timeouts across the whole system, not one setting at a time…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=audit%20timeouts%20across%20the%20whole,one%20setting%20at%20a%20time)
Article says:
```text
…audit timeouts across the whole system, not one setting at a time…
```
What is true:
PgBouncer recommends setting its query_timeout above PostgreSQL statement_timeout. PostgreSQL also distinguishes statement_timeout from lock_timeout. These settings act on different stages and require coordinated values.
Review: We checked the direction of the timeout recommendation. PgBouncer specifies a smaller server-side statement_timeout, consistent with the finding. We checked the recommended timeout ordering. PgBouncer explicitly recommends a smaller server-side statement_timeout than its query_timeout.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:10308-10309](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10308-L10309)
  Excerpt:
  ```text
  Unlike <varname>statement_timeout</varname>, this timeout can only occur
        while waiting for locks.
  ```
- [pgbouncer@pgbouncer_1_26_1 · doc/config.md:1079-1083](https://github.com/pgbouncer/pgbouncer/blob/f03e9bf263d7ccd5d1d152a61811bf3258dd6b87/doc/config.md#L1079-L1083)
  Excerpt:
  ```text
  ### query_timeout

Queries running longer than that are canceled. This should be used only with
a slightly smaller server-side `statement_timeout`, to apply only for network
problems. [seconds]
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F14

### F15 · Accurate · Factual · Verified accurate: “Small batches help…”
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=Small%20batches%20help)
Article says:
```text
Small batches help…
```
What is true:
PostgreSQL documents replica lag and lock contention from large updates. It recommends smaller batches for those conditions. Locks normally remain until transaction end. Separate bounded transactions address that lock duration.
Review: We tested batches inside one long transaction. The finding explicitly requires separate bounded transactions and does not promise that batching alone prevents lag. We tested whether batches inside one long transaction guarantee shorter locks. The finding requires separate bounded transactions and promises no universal improvement.

Sources:
- [REL_18_6 · doc/src/sgml/ref/update.sgml:481-484](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/update.sgml#L481-L484)
  Excerpt:
  ```text
  Updates affecting many rows can have negative effects on system
   performance, such as table bloat, increased replica lag, and increased
   lock contention.  In such situations it can make sense to perform the
   operation in smaller batches, possibly with a <command>VACUUM</command>
  ```
- [REL_18_6 · doc/src/sgml/mvcc.sgml:1107-1107](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/mvcc.sgml#L1107-L1107)
  Excerpt:
  ```text
  Once acquired, a lock is normally held until the end of the transaction.  But if a
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F15

### F16 · Accurate · Factual · max_slot_wal_keep_size is a checkpoint limit
Location: excerpt · section “1. Batch and throttle backfills” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=it%20is%20not%20an%20instantaneous%20ceiling%20on%20disk%20use.)
Article says:
```text
…it is not an instantaneous ceiling on disk use.
```
What is true:
REL_18_6 documents the retention limit at checkpoint time in doc/src/sgml/config.sgml:4717. Removing required WAL can prevent a standby from continuing replication. The article states both qualifications.
Charitable reading:
The article describes a checkpoint limit and explicitly accepts the risk of losing required WAL.
Review: We checked checkpoint timing and the consequence of removing required WAL. Both appear directly in config.sgml. We checked checkpoint timing and lost-WAL consequences. Both qualifications appear in PostgreSQL documentation and the article.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:4717-4720](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L4717-L4720)
  Excerpt:
  ```text
  Specify the maximum size of WAL files
        that <link linkend="streaming-replication-slots">replication
        slots</link> are allowed to retain in the <filename>pg_wal</filename>
        directory at checkpoint time.
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:4723-4725](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L4723-L4725)
  Excerpt:
  ```text
  restart_lsn of a replication slot falls behind the current LSN by more
        than the given size, the standby using the slot may no longer be able
        to continue replication due to removal of required WAL files. You
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F16

### F17 · Accurate · Factual · lock_timeout limits lock acquisition waits
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=lock_timeout%20bounds%20waiting%2C%20not%20how,an%20acquired%20lock%20is%20held)
Article says:
```text
…lock_timeout bounds waiting, not how long an acquired lock is held…
```
What is true:
lock_timeout does not limit how long a transaction holds an acquired lock. REL_18_6 states this distinction in doc/src/sgml/config.sgml:10308.
Charitable reading:
The article distinguishes waiting for a lock from holding an acquired lock.
Review: We checked whether the finding certifies the proposed 250-millisecond setting. It verifies only lock_timeout semantics, which config.sgml supports. We checked whether the finding validates the suggested 250-millisecond setting. It verifies only acquisition-wait semantics.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:10308-10309](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10308-L10309)
  Excerpt:
  ```text
  Unlike <varname>statement_timeout</varname>, this timeout can only occur
        while waiting for locks.  Note that if <varname>statement_timeout</varname>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F17

### F19 · Accurate · Factual · OR conditions can use indexes
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=an%20OR%20does%20not%20imply,scan%20in%20every%20PostgreSQL%20query.)
Article says:
```text
…an OR does not imply a full-table scan in every PostgreSQL query.
```
What is true:
OR does not force a sequential scan. REL_18_6 doc/src/sgml/indices.sgml:665 documents combining multiple index scans for OR conditions.
Charitable reading:
The article confines its scan incident to one query and dataset.
Review: We checked whether the finding certifies the unavailable subscription query. It only rejects a universal OR restriction, which indices.sgml disproves. We tested the universal claim that OR requires a sequential scan. Documented combinations of index scans disprove that interpretation.

Sources:
- [REL_18_6 · doc/src/sgml/indices.sgml:665-668](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/indices.sgml#L665-L668)
  Excerpt:
  ```text
  <productname>PostgreSQL</productname> has the ability to combine multiple indexes
   (including multiple uses of the same index) to handle cases that cannot
   be implemented by single index scans.  The system can form <literal>AND</literal>
   and <literal>OR</literal> conditions across several index scans.  For example,
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F19

### F20 · Accurate · Factual · PgBouncer exposes waiting clients
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=PgBouncer%20queues)
Article says:
```text
…PgBouncer queues…
```
What is true:
PgBouncer 1.26.1 exposes cl_waiting through SHOW POOLS. doc/usage.md:430 defines clients awaiting a server connection after submitting queries.
Charitable reading:
The article recommends observing PgBouncer queues without claiming that queues prove CPU saturation.
Review: We tested whether waiting clients establish CPU saturation. The finding only identifies the cl_waiting metric and its documented meaning. We checked whether cl_waiting proves CPU saturation or the reported incident. The finding verifies only the observable queue.

Sources:
- [pgbouncer@pgbouncer_1_26_1 · doc/usage.md:430-431](https://github.com/pgbouncer/pgbouncer/blob/f03e9bf263d7ccd5d1d152a61811bf3258dd6b87/doc/usage.md#L430-L431)
  Excerpt:
  ```text
  cl_waiting
:   Client connections that have sent queries but have not yet got a server connection.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F20

### F21 · Accurate · Factual · Small-table tests cannot establish production query costs
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=Counting%20queries%20on%20a%20tiny,queries%20would%20cost%20in%20production.)
Article says:
```text
Counting queries on a tiny test database didn’t tell us what those queries would cost in production.
```
What is true:
PostgreSQL can choose different plans as table size changes. REL_18_6 doc/src/sgml/perform.sgml:1127 warns against extrapolating small-table results. A one-page table usually favors a sequential scan.
Charitable reading:
The article says query counts on a tiny database cannot establish production cost.
Review: We tested whether the documentation merely discusses timing variation. It explicitly warns that table size can change the chosen plan. We checked whether the finding treats every small-table plan as useless. It preserves the narrower warning against extrapolating production costs.

Sources:
- [REL_18_6 · doc/src/sgml/perform.sgml:1127-1131](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/perform.sgml#L1127-L1131)
  Excerpt:
  ```text
  results on a toy-sized table cannot be assumed to apply to large tables.
    The planner's cost estimates are not linear and so it might choose
    a different plan for a larger or smaller table.  An extreme example
    is that on a table that only occupies one disk page, you'll nearly
    always get a sequential scan plan whether indexes are available or not.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F21

### F22 · Accurate · Factual · A waiting migration can block conflicting requests
Location: excerpt · section “2. Set short lock timeouts and retry” · as fetched 2026-10-31 · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=it%20can%20block%20production%20before%20changing%20anything.)
Article says:
```text
…it can block production before changing anything.
```
What is true:
A pending lock request can block later conflicting requests before its transaction changes data. REL_18_6 src/backend/storage/lmgr/lock.c:1093 checks conflicts against waiting requests.
Charitable reading:
The surrounding paragraph concerns queries whose lock modes conflict with the waiting migration.
Review: We checked whether only granted locks cause blocking. LockAcquireExtended also checks incompatible waiting requests, which supports the conditional claim. We checked whether waiting DDL must first change data to block requests. LockAcquireExtended checks pending incompatible requests before granting locks.

Sources:
- [REL_18_6 · src/backend/storage/lmgr/lock.c:1086-1104](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L1086-L1104)
  Excerpt:
  ```text
  /*
	 * If lock requested conflicts with locks requested by waiters, must join
	 * wait queue.  Otherwise, check for conflict with already-held locks.
	 * (That's last because most complex check.)
	 */
	if (lockMethodTable->conflictTab[lockmode] & lock->waitMask)
		found_conflict = true;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F22

### F23 · Accurate · Factual · The stated lookup workload requires 26 CPU-seconds per second
Location: Article · exact quote · [open in article](https://www.photoroom.com/inside-photoroom/how-a-read-replica-almost-took-down-its-primary-database#:~:text=At%20roughly%20twenty%20entitlement%20checks,CPU%2Dseconds%20of%20work%20every%20second)
Article says:
```text
At roughly twenty entitlement checks per second, that demanded about twenty-six CPU-seconds of work every second…
```
What is true:
The CPU calculation is correct: 26 CPU-seconds per second (derived: 1.3 CPU-seconds per lookup × 20 lookups per second). This subtotal excludes other application work. It does not independently verify either input.
Charitable reading:
The article calculates CPU demand from its stated inputs. It does not present 26 CPU-seconds per second as independently measured throughput.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated 1.3 CPU-seconds per lookup × 20 lookups per second = 26 CPU-seconds per second. The finding excludes measurement verification. We recomputed 1.3 CPU-seconds per lookup times 20 lookups per second. The result is 26 CPU-seconds per second. Inputs remain unverified.

Finding URL: https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7#F23

## Notes (not graded) (0)

None.

## Withdrawn findings (0)

None.

## Section checks

- Backfills and WAL · A · 3 verified-accurate · 100% of claims (10 of 10, plus 13 that need data we do not have)
- Migration locks · A · 9 verified-accurate · 100% of claims (16 of 16, plus 14 that need data we do not have)
- Compatible schema changes · A · 1 verified-accurate · 100% of claims (2 of 2, plus 4 that need data we do not have)
- Connection transitions · A · 1 verified-accurate · 100% of claims (2 of 2, plus 18 that need data we do not have)
- Query plans · A · 6 verified-accurate · 100% of claims (9 of 9, plus 13 that need data we do not have)
- Automated controls · A · 2 verified-accurate · 100% of claims (2 of 2, plus 7 that need data we do not have)

## Claim coverage

- Introduction: no checkable claims; not counted: 10 product or opinion, 1 duplicate, 6 not a claim
- Backfills and WAL: 10 of 10 Postgres claims checked, plus 13 that need data we do not have; not counted: 15 product or opinion, 1 duplicate, 2 not a claim
- Migration locks: 16 of 16 Postgres claims checked, plus 14 that need data we do not have; not counted: 9 product or opinion, 1 duplicate, 4 not a claim
- Compatible schema changes: 2 of 2 Postgres claims checked, plus 4 that need data we do not have; not counted: 17 product or opinion, 1 duplicate, 1 not a claim
- Connection transitions: 2 of 2 Postgres claims checked, plus 18 that need data we do not have; not counted: 7 product or opinion, 1 not a claim
- Query plans: 9 of 9 Postgres claims checked, plus 13 that need data we do not have; not counted: 11 product or opinion, 2 not a claim
- Automated controls: 2 of 2 Postgres claims checked, plus 7 that need data we do not have; not counted: 21 product or opinion, 3 duplicate, 2 not a claim
- Footer: no checkable claims; not counted: 1 product or opinion, 3 duplicate, 23 not a claim

## What we did not check

- We did not verify incident timelines, disk volumes, connection peaks, CPU measurements, or recovery outcomes.
- We did not check Django, SQLAlchemy, Alembic, or the migration linter's implementation.
- We did not validate the proposed 250 ms to 1 second DDL timeouts, retries, or application pool settings against production.
- We did not check the application's backfill code, concurrent-write handling, rollout procedures, or timeout configuration.
- We did not reproduce query plans or verify alias lookups against the application's SQL and indexes.
- We could not retrieve the DoorDash, Doctolib, or GoCardless articles.
- We could not retrieve the DoorDash, Doctolib, or GoCardless articles cited for backfills, migration locks, and query planning.
- We did not independently verify the reported incidents, connection peaks, query timings, or monitoring timelines.
- We did not verify Google's 60 TB storage limit, storage billing, or the reported need for downtime.
- We did not verify the Django and SQLAlchemy behavior or test the migration sequence.
- We did not verify the migration linter's implementation or its deployed configuration.
- We did not reproduce the measurements or test the backfill and rollout procedures.
- We did not verify the article's incident measurements against operational records.
- We could not recalculate the five-to-seven-day disk forecast without the measured storage growth rate.
- We did not verify the nearly $6,000 monthly storage estimate without billing rates and storage configuration.
- We did not reproduce the article's lookup timings or connection measurements.
- Transparent: claims sourced check did not finish.
- Transparent: claims dated check did not finish.
- Transparent: interest disclosed check did not finish.
- We could not decide whether the article contains a material benchmark.
- No fenced or preformatted code blocks were identified. Inline snippets and other setup instructions were not checked for syntax.

## Notes

- A — the findings address the article's main subject. What we did not check is listed below. Checks directly test the outage-prevention guidance on WAL retention, lock_timeout, column removal, PgBouncer limits, and EXPLAIN.
- 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: 4 · result A
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); github.com/pgbouncer/pgbouncer pgbouncer_1_26_1 at commit f03e9bf263d7ccd5d1d152a61811bf3258dd6b87 (pinned target); https://www.photoroom.com/ (fetched 2026-10-31T02:31:34.410758Z); https://www.photoroom.com/inside-photoroom (fetched 2026-10-31T02:31:35.503443Z); https://www.photoroom.com/inside-photoroom/category/category-1 (fetched 2026-10-31T02:31:52.557913Z); https://www.photoroom.com/inside-photoroom/category/category-2 (fetched 2026-10-31T02:31:36.666378Z); https://www.photoroom.com/inside-photoroom/category/category-4 (fetched 2026-10-31T02:31:54.928024Z); https://www.photoroom.com/inside-photoroom/how-photoroom-can-cut-carbon-footprint (fetched 2026-10-31T02:31:48.486574Z); https://www.photoroom.com/inside-photoroom/how-photoroom-runs-daily-standups-for-40-engineers-and-what-s-a-good-standup-message (fetched 2026-10-31T02:31:49.720339Z); https://www.photoroom.com/inside-photoroom/how-we-automated-our-changelog-thanks-to-chatgpt (fetched 2026-10-31T02:31:51.422017Z); https://www.photoroom.com/inside-photoroom/how-we-built-a-skills-marketplace-for-claude (fetched 2026-10-31T02:31:53.695283Z); https://www.photoroom.com/inside-photoroom/how-we-cut-gpu-cold-starts-from-minutes-to-seconds-with-memory-checkpointing (fetched 2026-10-31T02:31:56.204474Z); https://www.photoroom.com/inside-photoroom/how-we-measured-the-co2-emissions-of-our-ai-models-at-inference-time (fetched 2026-10-31T02:31:57.392392Z); https://www.photoroom.com/inside-photoroom/hunt-cheap-gpu-deep-learning (fetched 2026-10-31T02:31:58.649648Z); https://www.photoroom.com/inside-photoroom/improving-loading-experience-in-swiftui (fetched 2026-10-31T02:31:59.889903Z); https://www.photoroom.com/inside-photoroom/inside-the-first-photoroom-100-awards (fetched 2026-10-31T02:32:01.360449Z); https://www.photoroom.com/inside-photoroom/introducing-studio-hd (fetched 2026-10-31T02:32:02.655255Z); https://www.photoroom.com/inside-photoroom/what-are-pr-reviews-good-for-anyway- (fetched 2026-10-31T02:31:45.058390Z).
- Article captured 2026-10-31T02:31:04.707628Z · SHA-256 75ac364fc3a24e4ccdc054120e7bc56f2986b7fe869cf7e43f1a52560952f173 · Text extracted from the article's HTML.
- Policy SHA-256 03f120dac9ed8193a90bd874f628c5ce716d5cba6aa20be57940e9361df439da · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not verify incident timelines, disk volumes, connection peaks, CPU measurements, monitoring timelines, or recovery outcomes against operational records.
- We did not verify the 60 TB storage limit, storage billing, or the reported need for downtime.
- We could not recalculate the five-to-seven-day storage forecast without the measured growth rate.
- We did not check Django, SQLAlchemy, Alembic, or the migration linter's implementation and deployed configuration.
- We did not validate the proposed 250 ms to 1 second lock timeouts, retries, or pool settings against production.
- We did not test the backfill code, concurrent-write handling, rollout procedures, or application timeout configuration.
- We did not reproduce query plans or lookup timings against the application's SQL, indexes, and production data.
- We could not retrieve the DoorDash, Doctolib, or GoCardless articles.
- We checked the CPU multiplication. Fewer than five independent primary-source quotations were available for the incident figures.
- The article contains no fenced or preformatted code blocks. Inline snippets and setup instructions received no syntax checks.
- The article gives October 26, 2026 without a time. We list that date at midnight UTC.
- source: the article names no postgres release, so it was read at REL_18_6, the latest release when it was published
- source: the article names no pgbouncer release, so it was read at pgbouncer_1_26_1, the latest release when it was published
- One fetched page is not listed above, because our policy does not allow linking it.
- review: the findings were written by one model and reviewed independently by a different model.
- 6 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 2 pinned source trees, and 16 fetched pages.
- 20 survived · 3 weakened · 0 withdrawn.

## Edition changes

- F1 · recalibrated.
- F2 · weakened.
- F3 · recalibrated.
- F4 · weakened.
- F5 · recalibrated.
- F6 · recalibrated.
- F7 · recalibrated.
- F8 · weakened.
- F9 · recalibrated.
- F10 · recalibrated.
- F11 · recalibrated.
- F12 · recalibrated.
- F13 · recalibrated.
- F14 · recalibrated.
- F15 · recalibrated.
- F16 · recalibrated.
- F17 · recalibrated.
- F18 · recalibrated: We tested immediate cancellation as an alternative interpretation. The finding says a waiter can interrupt ordinary autovacuum and correctly preserves the wraparound exception. We checked cancellation prerequisites rather than assuming immediate interruption. The finding says a waiter can interrupt ordinary autovacuum and preserves the wraparound exception.
- F19 · recalibrated.
- F20 · recalibrated.
- F21 · recalibrated.
- F22 · recalibrated.
- F23 · recalibrated.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/99b3ea63-b79a-405b-a861-091721c96cf7?v=2) · this page · 2026-10-31 02:31 UTC · A · audited with v1.1.3
  Article as first submitted. 22 accurate · 0 wrong · 0 caveats.
  ElephantSeal: A.
  Changes: First audit. Open: none.

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