Limited beta · What is this?

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

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

pgTrue fact-check

ElephantSeal ALimited coverageOpen: central claim not checked

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/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.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/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.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/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.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/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/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/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/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/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/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/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/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/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/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/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece)
<a href="https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece"><img src="https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/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/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/22c04666-2b3e-46e2-8d9d-c19e197ffece/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
   :alt: pgTrue fact-check
   :width: 480
   :height: 240

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

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

For pages with a light background.

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

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

On a light page
On a dark page

What your Postgres is waiting for, and why the dashboard can't tell you (opens in new tab)

postgres.ai
Broadly sound as far as we checked. Read the caveats below.
0
inaccuracy
0
dangerous-recipe
0
misleading
1
imprecise
0
transcription
0
aged
0
withdrawn
23
verified-accurate

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

ReportTechnical fact-check, edition 2 pgTrue versionaudited with v1.1.5 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 / imprecise

F17

Fixed sampling does not guarantee unbiased time shares

IMPRECISEFactual · holds up after review

Claim ledger

Article says
The shares it produces are unbiased estimates…
What is true
Periodic samples need independence from workload timing to support the claimed guarantee. pg_wait_sampling 1.1.11 uses configured periods in collector.c:413–450. Correlated workload phases can distort shares despite many samples. The reported agreement within 2 percentage points remains a separate measurement.
So what
Compare profiles at different pg_wait_sampling.profile_period settings before choosing a tuning change from their percentages.
Charitable reading
Independent sampling can estimate time shares accurately. The article reports agreement within 2 percentage points in this workload.

Source

Source · pg_wait_sampling@v1.1.11 · collector.c:413-414write_history = (time_elapsed_history >= (int64) pgws_historyPeriod); write_profile = (time_elapsed_profile >= (int64) pgws_profilePeriod);

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

In the article · section “How every dashboard sees waits”

In the article

excerpt · section “How every dashboard sees waits” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

How every dashboard sees waits

Sampling works. The shares it produces are unbiased estimates; with enough samples they come close to the exact shares. In the incident below they matched exact timing within about 2 percentage points. It points at the right subsystem cheaply and continuously, with no setup before the incident. Most of the time it gets you close to a fix.

All sources and excerpts · 2
Evidence write_history = (time_elapsed_history >= (int64) pgws_historyPeriod); write_profile = (time_elapsed_profile >= (int64) pgws_profilePeriod);
Evidence time_to_sleep = Min(pgws_historyPeriod - (int) time_elapsed_history, pgws_profilePeriod - (int) time_elapsed_profile);
How the review tested this

Review: We tested the charitable assumption of workload-independent sampling. The article states an unconditional guarantee, while collector.c uses periodic deadlines. F17 preserves the reported agreement and names a concrete profile_period comparison. We tested the statistical shorthand reading. Fixed sampling periods do not establish workload-independent sampling. Changing profile_period is concrete, and wasted-work remains proportionate.

Verified accurate

F1

Wait events use a live 4-byte field

ACCURATEFactual · holds up after review

Claim ledger

Article says
…it writes a 4-byte code for the wait into its own slot in shared memory…
What is true
PostgreSQL 18 writes the wait code into shared PGPROC memory and clears it to zero. pg_stat_get_activity converts that code into type and event names. The flag functions themselves neither time nor count waits.
Charitable reading
The claim describes the core flag functions, not separate I/O accounting.

Source

Source · REL_18_6 · src/include/utils/wait_event.h:69-88pgstat_report_wait_start(uint32 wait_event_info) { /* * Since this is a four-byte field which is always read and written as * four-bytes, updates are atomic. */ *(volatile uint32 *) my_wait_event_info = wait_event_info; } /* ---------- * pgstat_report_wait_end() - * * Called to report end of a wait. * ---------- */ static inline void pgstat_report_wait_end(void) { /* see pgstat_report_wait_start() */ *(volatile uint32 *) my_wait_event_info = 0;

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

In the article · section “What a wait event is”

In the article

excerpt · section “What a wait event is” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

What a wait event is

When a Postgres backend is about to wait for something, it writes a 4-byte code for the wait into its own slot in shared memory. When the wait ends, it clears the slot. pg_stat_activity turns the code into a type and a name when you read it; the names look like Lock:transactionid , IO:DataFileRead or Client:ClientRead . There are about 275 of them in Postgres 18, more with every release, in ten types, listed in the wait event table of the documentation. You read the slot through pg_stat_activity.wait_event .

All sources and excerpts · 4
Evidencepgstat_report_wait_start(uint32 wait_event_info) { /* * Since this is a four-byte field which is always read and written as * four-bytes, updates are atomic. */ *(volatile uint32 *) my_wait_event_info = wait_event_info; } /* ---------- * pgstat_report_wait_end() - * * Called to report end of a wait. * ---------- */ static inline void pgstat_report_wait_end(void) { /* see pgstat_report_wait_start() */ *(volatile uint32 *) my_wait_event_info = 0;
Evidence raw_wait_event = UINT32_ACCESS_ONCE(proc->wait_event_info); wait_event_type = pgstat_get_wait_event_type(raw_wait_event); wait_event = pgstat_get_wait_event(raw_wait_event);
Evidence /* now that we have a proc, report wait events to shared memory */ pgstat_set_wait_event_storage(&MyProc->wait_event_info);
Evidence <entry role="catalog_table_entry"><para role="column_definition"> <structfield>wait_event</structfield> <type>text</type> </para> <para> Wait event name if backend is currently waiting, otherwise NULL. See <xref linkend="wait-event-activity-table"/> through <xref linkend="wait-event-timeout-table"/>. </para></entry> </row> <row>
How the review tested this

Review: We tested whether separate timing facilities contradict F1. Its restriction to the flag functions preserves accuracy. We checked whether separate accounting invalidated the claim. F1 limits its statement to flag functions, which write and clear uint32 storage.

F2

track_io_timing adds I/O durations to EXPLAIN

ACCURATEFactual · holds up after review

Claim ledger

Article says
With track_io_timing it also reports I/O time.
What is true
EXPLAIN reports elapsed node time. With track_io_timing, buffer instrumentation also records I/O durations. These totals do not reconstruct individual waits.
Charitable reading
PostgreSQL 18 includes buffer information by default with ANALYZE.

Source

Source · REL_18_6 · doc/src/sgml/ref/explain.sgml:185-190Include information on buffer usage. Specifically, include the number of shared blocks hit, read, dirtied, and written, the number of local blocks hit, read, dirtied, and written, the number of temp blocks read and written, and the time spent reading and writing data file blocks, local blocks and temporary file blocks (in milliseconds) if <xref linkend="guc-track-io-timing"/> is enabled. A

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

In the article · section “Two kinds of time”

In the article

excerpt · section “Two kinds of time” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

Two kinds of time

A request's time is time on a CPU plus time waiting for something else. EXPLAIN ANALYZE shows where the time went by plan node: which nodes ran, how many rows each produced, where the estimates were wrong. With track_io_timing it also reports I/O time. Its node times are elapsed time, so waits are inside them, but it does not say which part was waiting, or on what. A query that spent 90% of its life blocked on a lock produces a plan in which every node looks healthy, with one large number and no indication that the number is waiting rather than work.

All sources and excerpts · 3
Evidence Include information on buffer usage. Specifically, include the number of shared blocks hit, read, dirtied, and written, the number of local blocks hit, read, dirtied, and written, the number of temp blocks read and written, and the time spent reading and writing data file blocks, local blocks and temporary file blocks (in milliseconds) if <xref linkend="guc-track-io-timing"/> is enabled. A
Evidence io_start = pgstat_prepare_io_time(track_io_timing); smgrstartreadv(ioh, operation->smgr, forknum, blocknum, io_pages, io_buffers_len); pgstat_count_io_op_time(io_object, io_context, IOOP_READ, io_start, 1, io_buffers_len * BLCKSZ);
Evidence INSTR_TIME_SET_CURRENT(endtime); INSTR_TIME_ACCUM_DIFF(instr->counter, endtime, instr->starttime);
How the review tested this

Review: We checked elapsed timing against I/O instrumentation. Neither source turns those totals into individual wait histories. We tested whether EXPLAIN separates individual waits. E-20 documents aggregate I/O durations, and E-49 accumulates elapsed node time.

F3

PostgreSQL 18 exposes aggregate and per-backend I/O counters

ACCURATEFactual · holds up after review

Claim ledger

Article says
…pg_stat_io , per backend pg_stat_get_backend_io()…
What is true
pg_stat_io exposes operation counts and time totals. pg_stat_get_backend_io takes a backend PID and returns the same fields. Neither interface provides individual durations or a maximum duration.
Charitable reading
These counters cover tracked operations, not every possible file access.

Source

Source · REL_18_6 · src/backend/catalog/system_views.sql:1171-1193CREATE VIEW pg_stat_io AS SELECT b.backend_type, b.object, b.context, b.reads, b.read_bytes, b.read_time, b.writes, b.write_bytes, b.write_time, b.writebacks, b.writeback_time, b.extends, b.extend_bytes, b.extend_time, b.hits, b.evictions, b.reuses, b.fsyncs, b.fsync_time, b.stats_reset FROM pg_stat_get_io() b;

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)…pg_stat_io , per backend pg_stat_get_backend_io()…
All sources and excerpts · 3
EvidenceCREATE VIEW pg_stat_io AS SELECT b.backend_type, b.object, b.context, b.reads, b.read_bytes, b.read_time, b.writes, b.write_bytes, b.write_time, b.writebacks, b.writeback_time, b.extends, b.extend_bytes, b.extend_time, b.hits, b.evictions, b.reuses, b.fsyncs, b.fsync_time, b.stats_reset FROM pg_stat_get_io() b;
Evidence Returns I/O statistics about the backend with the specified process ID. The output fields are exactly the same as the ones in the <structname>pg_stat_io</structname> view.
Evidence pid = PG_GETARG_INT32(0); backend_stats = pgstat_fetch_stat_backend_by_pid(pid, &bktype); if (!backend_stats) return (Datum) 0; bktype_stats = &backend_stats->io_stats;
How the review tested this

Review: We checked the PID argument and output fields. The interfaces contain totals without individual durations or maxima. We checked for duration distributions or maxima among the returned fields. E-22 lists aggregate counters, and E-23 specifies identical per-backend fields.

F4

pg_blocking_pids reports current lock blockers

ACCURATEFactual · holds up after review

Claim ledger

Article says
…pg_blocking_pids() the blocker's PID while the wait is in progress…
What is true
pg_blocking_pids reads a snapshot of lock-manager state. It returns blocker PIDs while the target is blocked.
Charitable reading
The article describes current blockers, not historical lock chains.

Source

Source · REL_18_6 · doc/src/sgml/func.sgml:24996-25000 Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID from acquiring a lock, or an empty array if there is no such server process or it is not blocked. </para>

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)…pg_blocking_pids() the blocker's PID while the wait is in progress…
All sources and excerpts · 2
Evidence Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID from acquiring a lock, or an empty array if there is no such server process or it is not blocked. </para>
Evidence /* Collect a snapshot of lock manager state */ lockData = GetBlockerStatusData(blocked_pid);
How the review tested this

Review: We tested a historical-blocker interpretation. GetBlockerStatusData instead supplies the current lock-manager snapshot described by F4. We tested the historical-blocker interpretation. E-26 takes a current lock-manager snapshot, consistent with E-25.

F5

deadlock_timeout defaults to 1 second

ACCURATEFactual · holds up after review

Claim ledger

Article says
…deadlock_timeout (1 s by default)…
What is true
deadlock_timeout defaults to 1,000 milliseconds in PostgreSQL 18. It schedules deadlock checks and sets the log_lock_waits threshold. Administrators can lower it when investigating short locking delays.
Charitable reading
The article explicitly identifies 1 second as the default, not a fixed minimum.

Source

Source · REL_18_6 · src/backend/utils/misc/guc_tables.c:2266-2274 {"deadlock_timeout", PGC_SUSET, LOCK_MANAGEMENT, gettext_noop("Sets the time to wait on a lock before checking for deadlock."), NULL, GUC_UNIT_MS }, &DeadlockTimeout, 1000, 1, INT_MAX, NULL, NULL, NULL },

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)…deadlock_timeout (1 s by default)…
All sources and excerpts · 2
Evidence {"deadlock_timeout", PGC_SUSET, LOCK_MANAGEMENT, gettext_noop("Sets the time to wait on a lock before checking for deadlock."), NULL, GUC_UNIT_MS }, &DeadlockTimeout, 1000, 1, INT_MAX, NULL, NULL, NULL },
Evidence When <xref linkend="guc-log-lock-waits"/> is set, this parameter also determines the amount of time to wait before a log message is issued about the lock wait. If you are trying to investigate locking delays you might want to set a shorter than normal <varname>deadlock_timeout</varname>.
How the review tested this

Review: We checked whether 1 second was a fixed minimum. Both the article and F5 correctly identify a configurable default. We checked whether 1 second was a fixed minimum. E-27 sets the default, and E-28 explicitly permits shorter investigation settings.

F7

pg_wait_sampling defaults match the article

ACCURATEFactual · holds up after review

Claim ledger

Article says
…pg_wait_sampling keeps the last 5,000 samples by default…
What is true
pg_wait_sampling 1.1.11 defaults to a 5,000-entry history and 10-millisecond history and profile periods. Its collector records backend states and increments sample counts. Samples do not record every transition.
Charitable reading
The history capacity counts backend observations, not sampling rounds.

Source

Source · pg_wait_sampling@v1.1.11 · README.md:142-144| pg_wait_sampling.history_size | int4 | Size of history in-memory ring buffer | 5000 | | pg_wait_sampling.history_period | int4 | Period for history sampling in milliseconds | 10 | | pg_wait_sampling.profile_period | int4 | Period for profile sampling in milliseconds | 10 |

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)…pg_wait_sampling keeps the last 5,000 samples by default…
All sources and excerpts · 3
Evidence| pg_wait_sampling.history_size | int4 | Size of history in-memory ring buffer | 5000 | | pg_wait_sampling.history_period | int4 | Period for history sampling in milliseconds | 10 | | pg_wait_sampling.profile_period | int4 | Period for profile sampling in milliseconds | 10 |
Evidence if (!pgws_should_sample_proc(proc, &item.pid, &item.wait_event_info)) continue; if (pgws_profileQueries) item.queryId = pgws_proc_queryids[i]; else item.queryId = 0; item.ts = ts; /* Write to the history if needed */ if (write_history) { observation = get_next_observation(observations); *observation = item; }
Evidence profileItem = (ProfileItem *) hash_search(profile_hash, &item, HASH_ENTER, &found); if (found) profileItem->count++; else profileItem->count = 1;
How the review tested this

Review: We distinguished backend observations from sampling rounds. The 5,000-entry capacity and both 10-millisecond defaults match version 1.1.11. We checked whether 5,000 meant sampling rounds. E-34 stores backend observations, while E-33 confirms both 10-millisecond defaults.

F8

synchronous_commit off trades commit durability for less waiting

ACCURATEFactual · holds up after review

Claim ledger

Article says
…synchronous_commit = off…
What is true
synchronous_commit off permits ordinary commits without waiting for local WAL flush. A crash can lose recently acknowledged transactions. PostgreSQL retains database consistency.
Charitable reading
The article states the durability cost. We did not verify the measured speedup.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:3198-3203<xref linkend="guc-fsync"/>, setting this parameter to <literal>off</literal> does not create any risk of database inconsistency: an operating system or database crash might result in some recent allegedly-committed transactions being lost, but the database state will be just the same as if those transactions had been aborted cleanly. So, turning <varname>synchronous_commit</varname> off

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

In the article · section “The two fixes it suggests, tried”

In the article

excerpt · section “The two fixes it suggests, tried” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

The two fixes it suggests, tried

Run Change Mean p99 p99.9 Max Requests over 5 ms baseline 1.51 ms 3.08 ms 10.98 ms 26.7 ms 972 fix A synchronous_commit = off 0.83 ms 1.74 ms 11.36 ms 25.7 ms 688 fix B 2 GiB shared_buffers , prewarmed, no memory limit 1.34 ms 2.82 ms 11.30 ms 23.9 ms 954 fix C background job in 5-row chunks 1.52 ms 2.92 ms 5.78 ms 10.0 ms 388
All sources and excerpts · 2
Evidence <xref linkend="guc-fsync"/>, setting this parameter to <literal>off</literal> does not create any risk of database inconsistency: an operating system or database crash might result in some recent allegedly-committed transactions being lost, but the database state will be just the same as if those transactions had been aborted cleanly. So, turning <varname>synchronous_commit</varname> off
Evidence if ((wrote_xlog && markXidCommitted && synchronous_commit > SYNCHRONOUS_COMMIT_OFF) || forceSyncCommit || nrels > 0) { XLogFlush(XactLastRecEnd);
How the review tested this

Review: We checked forced-flush exceptions in xact.c. The qualification about ordinary commits avoids claiming that off eliminates every flush. We checked forced-flush exceptions in E-37. F8 says ordinary commits, preserving those exceptions and E-36's consistency guarantee.

F9

Row locks persist until the transaction ends

ACCURATEFactual · holds up after review

Claim ledger

Article says
…it holds the row locks on those 100 items until it finishes…
What is true
PostgreSQL 18 releases row locks at transaction end or savepoint rollback. Separate autocommit transactions can shorten lock retention. Dividing one transaction into several statements alone does not release its row locks.
Charitable reading
The described single-statement job fits the autocommit reading. The workload SQL remains unchecked.

Source

Source · REL_18_6 · doc/src/sgml/mvcc.sgml:1252-1255on the same row. Row-level locks do not affect data querying; they block only <emphasis>writers and lockers</emphasis> to the same row. Row-level locks are released at transaction end or during savepoint rollback, just like table-level 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)…it holds the row locks on those 100 items until it finishes…
All sources and excerpts · 1
Evidence on the same row. Row-level locks do not affect data querying; they block only <emphasis>writers and lockers</emphasis> to the same row. Row-level locks are released at transaction end or during savepoint rollback, just like table-level locks.
How the review tested this

Review: We tested whether splitting statements alone releases locks. F9 explicitly requires separate transactions and does not verify the workload SQL. We tested whether statement chunking alone releases locks. F9 explicitly requires separate transactions and does not certify the unchecked workload SQL.

F10

Rate-limited pgbench includes schedule lag in latency

ACCURATEFactual · holds up after review

Claim ledger

Article says
Latency is counted from each request's scheduled start, as pgbench does at a fixed rate.
What is true
With throttling, pgbench measures transaction latency from scheduled start. Its reported latency includes time waiting for the previous transaction to finish.
Charitable reading
This verifies pgbench semantics, not the article's log-processing scripts.

Source

Source · REL_18_6 · doc/src/sgml/ref/pgbench.sgml:658-662When throttling is active, the transaction latency reported at the end of the run is calculated from the scheduled start times, so it includes the time each transaction had to wait for the previous transaction to finish. The wait time is called the schedule lag time, and its average and maximum are also reported separately. The

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)Latency is counted from each request's scheduled start, as pgbench does at a fixed rate.
All sources and excerpts · 1
Evidence When throttling is active, the transaction latency reported at the end of the run is calculated from the scheduled start times, so it includes the time each transaction had to wait for the previous transaction to finish. The wait time is called the schedule lag time, and its average and maximum are also reported separately. The
How the review tested this

Review: We checked whether latency starts at actual execution. The throttled pgbench documentation explicitly uses scheduled start times. We checked actual-start versus scheduled-start semantics. E-39 explicitly includes schedule lag when throttling applies.

F11

shared_buffers controls shared buffer memory

ACCURATEFactual · holds up after review

Claim ledger

Article says
…2 GiB shared_buffers…
What is true
shared_buffers controls PostgreSQL shared buffer memory and takes effect at server start. A 2-GiB setting is within the supported range. It does not establish that the experiment eliminated physical reads.
Charitable reading
We did not verify the prewarming procedure or memory limit.

Source

Source · REL_18_6 · src/backend/utils/misc/guc_tables.c:2379-2387 {"shared_buffers", PGC_POSTMASTER, RESOURCES_MEM, gettext_noop("Sets the number of shared memory buffers used by the server."), NULL, GUC_UNIT_BLOCKS }, &NBuffers, 16384, 16, INT_MAX / 2, NULL, NULL, NULL },

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

In the article · section “The two fixes it suggests, tried”

In the article

excerpt · section “The two fixes it suggests, tried” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

The two fixes it suggests, tried

Run Change Mean p99 p99.9 Max Requests over 5 ms baseline 1.51 ms 3.08 ms 10.98 ms 26.7 ms 972 fix A synchronous_commit = off 0.83 ms 1.74 ms 11.36 ms 25.7 ms 688 fix B 2 GiB shared_buffers , prewarmed, no memory limit 1.34 ms 2.82 ms 11.30 ms 23.9 ms 954 fix C background job in 5-row chunks 1.52 ms 2.92 ms 5.78 ms 10.0 ms 388
All sources and excerpts · 2
Evidence {"shared_buffers", PGC_POSTMASTER, RESOURCES_MEM, gettext_noop("Sets the number of shared memory buffers used by the server."), NULL, GUC_UNIT_BLOCKS }, &NBuffers, 16384, 16, INT_MAX / 2, NULL, NULL, NULL },
Evidence Sets the amount of memory the database server uses for shared memory buffers. The default is typically 128 megabytes
How the review tested this

Review: We checked whether F11 certifies the measured removal of reads. It explicitly limits verification to the setting and supported range. We checked whether F11 certified eliminated disk reads. It verifies the setting's meaning and range, while explicitly withholding that experimental conclusion.

F12

pg_stat_statements records statement totals without wait histories

ACCURATEFactual · holds up after review

Claim ledger

Article says
…pg_stat_statements calls, total and mean time, blocks read; no wait breakdown…
What is true
pg_stat_statements records call counts and execution-time totals, means, minima, maxima, and variance. Its counters include blocks read. It does not record an ordered history of individual wait events.
Charitable reading
The article lists available totals without claiming that its list is exhaustive.

Source

Source · REL_18_6 · contrib/pg_stat_statements/pg_stat_statements.c:1409-1418 entry->counters.usage = USAGE_INIT; entry->counters.calls[kind] += 1; entry->counters.total_time[kind] += total_time; if (entry->counters.calls[kind] == 1) { entry->counters.min_time[kind] = total_time; entry->counters.max_time[kind] = total_time; entry->counters.mean_time[kind] = total_time;

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)…pg_stat_statements calls, total and mean time, blocks read; no wait breakdown…
All sources and excerpts · 2
Evidence entry->counters.usage = USAGE_INIT; entry->counters.calls[kind] += 1; entry->counters.total_time[kind] += total_time; if (entry->counters.calls[kind] == 1) { entry->counters.min_time[kind] = total_time; entry->counters.max_time[kind] = total_time; entry->counters.mean_time[kind] = total_time;
Evidence int64 rows; /* total # of retrieved or affected rows */ int64 shared_blks_hit; /* # of shared buffer hits */ int64 shared_blks_read; /* # of shared disk blocks read */
How the review tested this

Review: We checked additional timing counters around E-42. Their variance calculation supports F12 without providing individual wait histories. We checked counter updates and surrounding variance calculations. pg_stat_statements records statement aggregates, without ordered individual wait histories.

F14

track_wal_io_timing controls WAL I/O timing

ACCURATEFactual · holds up after review

Claim ledger

Article says
…or track_wal_io_timing for WAL…
What is true
PostgreSQL 18 uses track_wal_io_timing when timing WAL synchronization. WAL durations appear under object wal in pg_stat_io and pg_stat_get_backend_io.
Charitable reading
The article correctly separates WAL timing from track_io_timing.

Source

Source · REL_18_6 · src/backend/access/transam/xlog.c:8763-8767 * Measure I/O timing to sync the WAL file for pg_stat_io. */ start = pgstat_prepare_io_time(track_wal_io_timing); pgstat_report_wait_start(WAIT_EVENT_WAL_SYNC);

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)…or track_wal_io_timing for WAL…
All sources and excerpts · 2
Evidence * Measure I/O timing to sync the WAL file for pg_stat_io. */ start = pgstat_prepare_io_time(track_wal_io_timing); pgstat_report_wait_start(WAIT_EVENT_WAL_SYNC);
Evidence I/O timing information is displayed in <link linkend="monitoring-pg-stat-io-view"> <structname>pg_stat_io</structname></link> for the <varname>object</varname> <literal>wal</literal> and in the output of the <link linkend="pg-stat-get-backend-io"> <function>pg_stat_get_backend_io()</function></link> function for the <varname>object</varname> <literal>wal</literal>.
How the review tested this

Review: We checked for confusion between track_io_timing and track_wal_io_timing. The WAL synchronization code uses the latter. We checked whether track_io_timing controls WAL synchronization timing. E-46 uses track_wal_io_timing, and E-47 identifies both reporting interfaces.

F15

Query Store records sampled wait events

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Azure Database for PostgreSQL query store…
What is true
Query Store samples wait events through pgms_wait_sampling.history_period. Its documented default is 100 milliseconds.
Charitable reading
The article does not assign pg_wait_sampling's 10-millisecond default to this service.

Source

Source · https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-query-storepgms_wait_sampling.history_period Frequency, in milliseconds, at which wait events are sampled. 100 1 - 600000

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)…Azure Database for PostgreSQL query store…
All sources and excerpts · 1
Evidencepgms_wait_sampling.history_period Frequency, in milliseconds, at which wait events are sampled. 100 1 - 600000
How the review tested this

Review: We tested whether the article assigns this service a 10-millisecond interval. It does not, and E-48 supports 100 milliseconds. We checked whether F15 transferred the extension's 10-millisecond default to Query Store. It correctly gives the documented 100-millisecond default.

F18

The wait-tracing patch remains under review

ACCURATEFactual · holds up after review

Claim ledger

Article says
…a patch under review on pgsql-hackers, pg_wait_event_tracing…
What is true
Patch 6984 remains Needs review in the November 2026 commitfest. The article correctly describes the patch as under review.
Charitable reading
The claim concerns the proposed tracing patch's review status on November 3, 2026.

Source

Source · https://commitfest.postgresql.org/patch/6984/Status PG20-3 (2026-11-01 – 2026-11-30): Needs review

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 patch under review on pgsql-hackers, pg_wait_event_tracing…
All sources and excerpts · 1
EvidenceStatus PG20-3 (2026-11-01 – 2026-11-30): Needs review
How the review tested this

Review: We checked the November entry against the earlier commitfest status. Patch 6984 remained Needs review on the recorded page. We checked the applicable commitfest dates. E-56 lists Needs review for November 2026, matching the publication date.

F19

PostgreSQL 19 reached release-candidate status in October 2026

ACCURATEFactual · holds up after review

Claim ledger

Article says
…a release candidate since October 2026…
What is true
The official documentation dates PostgreSQL 19 RC 1 to October 15, 2026. That supports the article's publication-day description.
Charitable reading
The article identifies PostgreSQL 19 as a release candidate, rather than a released stable major.

Source

Source · https://www.postgresql.org/docs/19/monitoring-stats.htmlOctober 15, 2026: PostgreSQL 19 RC 1 Released!

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 release candidate since October 2026…
All sources and excerpts · 1
EvidenceOctober 15, 2026: PostgreSQL 19 RC 1 Released!
How the review tested this

Review: We checked the date and release-candidate designation against the recorded official page. Both support the publication-day statement. We checked whether the citation concerned PostgreSQL 18. E-58 explicitly announces PostgreSQL 19 RC 1 on October 15, 2026.

F20

PostgreSQL 18 added WAL activity to pg_stat_io

ACCURATEFactual · holds up after review

Claim ledger

Article says
…WAL included from Postgres 18…
What is true
REL_18_6 doc/src/sgml/release-18.sgml:9839 records the addition of WAL activity to pg_stat_io. The article gives the correct major-version floor.
Charitable reading
The version floor concerns WAL activity in pg_stat_io, rather than the earlier pg_stat_wal view.

Source

Source · REL_18_6 · doc/src/sgml/release-18.sgml:9839-98392025-02-04 [a051e71e2] Add data for WAL in pg_stat_io and backend statistics

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)…WAL included from Postgres 18…
All sources and excerpts · 1
Evidence2025-02-04 [a051e71e2] Add data for WAL in pg_stat_io and backend statistics
How the review tested this

Review: We tested confusion with the older pg_stat_wal view. The release entry specifically names WAL data in pg_stat_io. We checked whether the version floor confused pg_stat_wal with pg_stat_io. E-60 specifically records WAL additions to pg_stat_io.

F22

EXPLAIN ANALYZE reports elapsed node time

ACCURATEFactual · holds up after review

Claim ledger

Article says
Its node times are elapsed time…
What is true
REL_18_6 doc/src/sgml/ref/explain.sgml:84–85 specifies elapsed milliseconds within each plan node. These values include waits occurring inside the measured interval. They do not identify individual wait events.
Charitable reading
The claim concerns elapsed time within instrumented plan nodes.

Source

Source · REL_18_6 · doc/src/sgml/ref/explain.sgml:84-85the display, including the total elapsed time expended within each plan node (in milliseconds) and the total number of rows it actually returned.

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

In the article · section “Two kinds of time”

In the article

excerpt · section “Two kinds of time” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

Two kinds of time

A request's time is time on a CPU plus time waiting for something else. EXPLAIN ANALYZE shows where the time went by plan node: which nodes ran, how many rows each produced, where the estimates were wrong. With track_io_timing it also reports I/O time. Its node times are elapsed time, so waits are inside them, but it does not say which part was waiting, or on what. A query that spent 90% of its life blocked on a lock produces a plan in which every node looks healthy, with one large number and no indication that the number is waiting rather than work.

All sources and excerpts · 1
Evidence the display, including the total elapsed time expended within each plan node (in milliseconds) and the total number of rows it actually returned.
How the review tested this

Review: We checked whether F22 includes waits outside node instrumentation. It confines the statement to the measured interval. We tested whether node times represented CPU time alone. E-65 explicitly defines elapsed milliseconds within each plan node.

F23

pg_stat_lock excludes short waits and unsuccessful acquisitions

ACCURATEFactual · holds up after review

Claim ledger

Article says
…heavyweight-lock waits that lasted longer than deadlock_timeout and were acquired…
What is true
PostgreSQL 19 documents pg_stat_lock counters for successful acquisitions after waiting longer than deadlock_timeout. The article states both restrictions.
Charitable reading
The article restricts pg_stat_lock counts to acquired locks whose waits exceeded deadlock_timeout.

Source

Source · https://www.postgresql.org/docs/19/monitoring-stats.htmlOnly incremented when the lock was successfully acquired after waiting longer than deadlock_timeout .

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)…heavyweight-lock waits that lasted longer than deadlock_timeout and were acquired…
All sources and excerpts · 1
EvidenceOnly incremented when the lock was successfully acquired after waiting longer than deadlock_timeout .
How the review tested this

Review: We checked the surrounding pg_stat_lock table. Both waits and wait_time require successful acquisition after exceeding deadlock_timeout. We checked both acquisition success and timeout restrictions. E-67 applies both restrictions to waits and wait_time in PostgreSQL 19.

F24

synchronous_commit off can lose acknowledged transactions after a crash

ACCURATEFactual · holds up after review

Claim ledger

Article says
…gives up durability on a crash…
What is true
REL_18_6 doc/src/sgml/config.sgml:3201 warns that recent acknowledged transactions can disappear after a crash. The article correctly states this tradeoff for synchronous_commit = off.
Charitable reading
The durability warning concerns recent transactions acknowledged before their WAL reaches durable storage.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:3201-3201result in some recent allegedly-committed transactions being lost, but

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)…gives up durability on a crash…
All sources and excerpts · 1
Evidence result in some recent allegedly-committed transactions being lost, but
How the review tested this

Review: We tested whether F24 implies corruption or inevitable loss. It states only the documented possibility of losing recent commits. We checked whether the durability statement implied database corruption. F24 limits the consequence to losing recent acknowledged transactions, consistent with E-69.

F25

The original slow-request reduction rounds to 60%

ACCURATEFactual · holds up after review

Claim ledger

Article says
…baseline 1.51 ms 3.08 ms 10.98 ms 26.7 ms 972…
What is true
Fix C removes 584 of 972 requests exceeding 5 milliseconds, or 60.1% (derived: (972 − 388) / 972). The displayed p99.9 decreases 47.4%. The displayed maximum decreases 62.5%.
Charitable reading
The 60% claim concerns requests exceeding 5 milliseconds, rather than a 60% reduction in every latency statistic.

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

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

In the article · section “The two fixes it suggests, tried”

In the article

excerpt · section “The two fixes it suggests, tried” · as fetched 2026-11-03 · open in article ↗ (opens in new tab)

The two fixes it suggests, tried

Run Change Mean p99 p99.9 Max Requests over 5 ms baseline 1.51 ms 3.08 ms 10.98 ms 26.7 ms 972 fix A synchronous_commit = off 0.83 ms 1.74 ms 11.36 ms 25.7 ms 688 fix B 2 GiB shared_buffers , prewarmed, no memory limit 1.34 ms 2.82 ms 11.30 ms 23.9 ms 954 fix C background job in 5-row chunks 1.52 ms 2.92 ms 5.78 ms 10.0 ms 388
How the review tested this

Review: We recalculated all three reductions. They round to 60.1%, 47.4%, and 62.5% for the displayed values. We recalculated all 3 reductions. The slow-request count falls 60.1%, p99.9 falls 47.4%, and maximum latency falls 62.5%.

F26

The three repeat reductions match the filtered counts

ACCURATEFactual · holds up after review

Claim ledger

Article says
…by 100%, 92% and 27% in three repeats…
What is true
The first pair removes 100% of 125 slow requests. The second removes 92% of 300 slow requests. The third removes 26.6% of 334 slow requests, which rounds to 27%.
Charitable reading
The article explicitly applies the stall exclusion before calculating these repeat reductions.

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)…by 100%, 92% and 27% in three repeats…
How the review tested this

Review: We recalculated each pair separately. The 89-request reduction from 334 requests rounds to 27%, as stated. We recalculated the filtered count reductions: 100%, 92%, and 26.6%. F26 preserves the stall-exclusion qualification.

F27

Both flush distributions total 6 seconds

ACCURATEFactual · holds up after review

Claim ledger

Article says
…30,000 flushes of 200 μs…
What is true
The uniform distribution totals 6 seconds across 30,000 flushes. The mixed distribution totals 6 seconds: 2.97 seconds plus 3.03 seconds. Both average 200 microseconds per flush.
Charitable reading
The example compares aggregate counts and means while allowing different duration distributions.

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)…30,000 flushes of 200 μs…
How the review tested this

Review: We converted microseconds and milliseconds before summing. Both distributions contain 30,000 flushes totaling 6 seconds. We recalculated both totals. Each distribution contains 30,000 flushes totaling 6 seconds, with a 200-microsecond mean.

F28

The short-wait example yields 4 expected samples

ACCURATEFactual · holds up after review

Claim ledger

Article says
Twenty of them in an hour are 40 ms out of 3,600 seconds…
What is true
Twenty 2-millisecond waits total 40 milliseconds per hour. A 10-millisecond sampler takes 360,000 samples per hour. Uniformly distributed wait phases yield 4 expected hits (derived: 40 milliseconds / 10 milliseconds).
Charitable reading
The article states an average sampling result. Uniformly distributed wait phases supply the implied statistical assumption.

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)Twenty of them in an hour are 40 ms out of 3,600 seconds…
How the review tested this

Review: We tested synchronized wait phases against the expected-hit calculation. F28 explicitly assumes uniform phases, under which 4 expected hits is correct. We tested whether 4 hits were guaranteed. F28 states an expectation under uniformly distributed phases, correctly distinguishing arithmetic from sampling guarantees.

Notes

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

A wait flag does not establish that a backend is off CPU

NOTEholds up after review

Claim ledger

Article says
…a wait is "not running, and here is the name"…
What is true
Wait flags bracket instrumented operations. fd.c wraps pg_preadv with the flag. WaitEventSetWait sets the flag before checking whether a latch already permits immediate return. An instrumented interval can include CPU work without sleeping.
Charitable reading
The article correctly includes scheduling delay. Its phrase about not running goes beyond what the flag establishes.

Source

Source · REL_18_6 · src/backend/storage/file/fd.c:2185-2187pgstat_report_wait_start(wait_event_info); returnCode = pg_preadv(vfdP->fd, iov, iovcnt, offset); pgstat_report_wait_end();

Not graded: no reader would act differently on it.

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 wait is "not running, and here is the name"…
All sources and excerpts · 3
Evidence pgstat_report_wait_start(wait_event_info); returnCode = pg_preadv(vfdP->fd, iov, iovcnt, offset); pgstat_report_wait_end();
Evidence pgstat_report_wait_start(wait_event_info); #ifndef WIN32 waiting = true;
Evidence /* * Check if the latch is set already first. If so, we either exit * immediately or ask the kernel for further events available right * now without waiting, depending on how many events the caller wants.
How the review tested this

Review: We considered the article's scheduling-delay caveat. Immediate latch returns still show why an active flag does not establish sleep. We tested the charitable scheduling-delay interpretation. E-45 still permits immediate return after setting the flag. The ungraded qualification survives.

More in this report

Section checks · 9 sections

Section checks

AspectGradeFindingsCoverage
Wait-event mechanismA1 verified-accurate86% of claims (13 of 15)
Two kinds of timeA2 verified-accurate85% of claims (6 of 7)
Dashboard samplingA1 imprecise · 1 verified-accurate100% of claims (5 of 5, plus 1 that need data we do not have)
Limits of sharesA7 verified-accurate100% of claims (17 of 17, plus 1 that need data we do not have)
Existing toolsA4 verified-accurate100% of claims (11 of 11, plus 3 that need data we do not have)
Checkout workloadA2 verified-accurate100% of claims (5 of 5, plus 7 that need data we do not have)
Attempted fixesA4 verified-accurate100% of claims (6 of 6, plus 5 that need data we do not have)
Fix and repeatsA1 verified-accurate100% of claims (8 of 8, plus 11 that need data we do not have)
Conclusions and toolsA1 verified-accurate100% of claims (1 of 1, plus 6 that need data we do not have)
Coverage and assessment · Checked 91 of 95 Postgres claims across 14 sections

A — the findings address the article's main subject. What we did not check is listed below. The findings directly check live-flag sampling, missing wait histories, and the arithmetic behind the checkout comparisons.

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 reproduce the latency measurements or verify their raw logs and trace recordings.
  • We did not verify the workload SQL, transaction boundaries between chunks, or stall-filter scripts.
  • We did not verify the patch and external tracer implementations or every named dashboard's sampling implementation.
  • We did not check the article's figures against their underlying data.
  • We did not reproduce the checkout measurements or inspect the per-request log archives.
  • We did not read the conference slides or retrieve the figure-generation directory.
  • We did not verify every monitoring product's implementation or pg_wait_tracer's host-privilege requirements.
  • We did not verify the PostgreSQL 18 repeat or the independent tracer diagnosis.
  • We did not reproduce the checkout measurements or independently recompute their summaries from raw latency logs and trace rings.
  • We did not inspect the individual request's timeline image or verify its 87% lock share and I/O durations.
  • We did not verify the 11,879 statement calls or the background job's complete execution-time statistics.
  • We did not verify request arrival times against the 0.5-second interval after each stall.
  • We did not finish checking whether the article reports a benchmark.
  • We did not finish checking the evidence for the central claim.
  • Applicable: we did not complete every applicable check.
  • Consistent: we did not complete every applicable check.
  • Transparent: we did not complete every applicable check.
  • Safe: we did not complete every applicable check.
  • Section “Dashboard drill-down”: we checked 1 of 3 checkable claims.
  • 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.
  • Transparent: we did not finish checking whether the article names its author and date.
  • We did not finish checking the article's experiments.
  • We did not finish checking the steps the article gives for production.
  • We did not finish checking whether the article reports a benchmark.
  • We hold no source mapping for “postgres-ai/docs”, so we did not check the article's claims about its code.

Script checks

  • No fenced or preformatted code blocks were identified. Inline snippets and other setup instructions were not checked for syntax.
Checked 91 of 95 Postgres claims across 14 sections
  • Introduction: 4 claims are the author's own account; nothing checkable; not counted: 3 not a claim
  • Summary: 2 of 2 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 2 duplicate, 1 not a claim
  • Wait-event mechanism: 13 of 15 Postgres claims checked; not checked: 2 for other reasons
  • Two kinds of time: 6 of 7 Postgres claims checked; not counted: 1 duplicate; not checked: 1 for other reasons
  • Dashboard sampling: 5 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 3 product or opinion, 1 duplicate
  • Limits of shares: 17 of 17 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 1 duplicate
  • Existing tools: 11 of 11 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate
  • Checkout workload: 5 of 5 Postgres claims checked, plus 7 that need data we do not have; not counted: 3 product or opinion, 1 not a claim
  • Dashboard results: 9 of 9 Postgres claims checked, plus 2 that need data we do not have
  • Attempted fixes: 6 of 6 Postgres claims checked, plus 5 that need data we do not have; not counted: 2 product or opinion, 2 duplicate
  • Per-request diagnosis: 7 of 7 Postgres claims checked, plus 16 that need data we do not have; not counted: 1 not a claim
  • Fix and repeats: 8 of 8 Postgres claims checked, plus 11 that need data we do not have
  • Dashboard drill-down: 1 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion; not checked: 1 for other reasons
  • Conclusions and tools: 1 of 1 Postgres claims checked, plus 6 that need data we do not have; not counted: 1 product or opinion, 2 duplicate, 4 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 24 checked · 1 caveat. Applicable A · 0 checked. Consistent A · 0 wrong of 4 checked · 0 caveats. Transparent A · 0 wrong of 9 checked · 0 caveats. Safe A · 0 checked. A 0 wrong of 24 checked · 1 caveatFactual A0 wrong of 241 caveat A 0 checkedApplicable A0 checked A 0 wrong of 4 checked · 0 caveatsConsistent A0 wrong of 40 caveats A 0 wrong of 9 checked · 0 caveatsTransparent A0 wrong of 90 caveats A 0 checkedSafe A0 checked A

By topic: Wait-event mechanism — 1 finding, 0 wrong · Two kinds of time — 2 findings, 0 wrong · Dashboard sampling — 2 findings, 0 wrong · Limits of shares — 7 findings, 0 wrong · Existing tools — 4 findings, 0 wrong · Checkout workload — 2 findings, 0 wrong · Attempted fixes — 4 findings, 0 wrong · Fix and repeats — 1 finding, 0 wrong · Conclusions and tools — 1 finding, 0 wrong

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

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

We checked 24 claims.

AxisLetterWrongCaveatsCheckedCoverage
FactualA0124assessed: A · 0 wrong of 24 checked · 1 caveat
ApplicableA000partly assessed
ConsistentA004not assessed: A · 0 wrong of 4 checked · 0 caveats
TransparentA009partly assessed: A · 0 wrong of 9 checked · 0 caveats · partly assessed
SafeA000not assessed
Topics · 9 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Wait-event mechanism0 issues 1 checked F10 issues 1 checked
Two kinds of time0 issues 2 checked F2 F220 issues 1 checked
Dashboard sampling1 issue 2 checked F15 F170 issues 2 checked0 issues 1 checked
Limits of shares0 issues 7 checked F7 F14 F19 F20 F23 F27 F280 issues 5 checked0 issues 2 checked0 issues 3 checked
Existing tools0 issues 4 checked F3 F4 F5 F120 issues 2 checked
Checkout workload0 issues 2 checked F9 F100 issues 1 checked0 issues 2 checked
Attempted fixes0 issues 4 checked F8 F11 F24 F250 issues 1 checked0 issues 1 checked0 issues 1 checked
Fix and repeats0 issues 1 checked F260 issues 1 checked
Conclusions and tools0 issues 1 checked F180 issues 1 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-11-03 22:53 UTC · A · audited with v1.1.5

    Article as first submitted. 23 accurate · 0 wrong · 1 caveat.

    ElephantSeal: A. Open: central claim not checked.

    Changes: First audit. Open: F17 “Fixed sampling does not guarantee unbiased time shares” (mostly accurate).

Questions and answers

Questions and answers

What is pgTrue?

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

What does the letter grade mean?

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

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

What is the ElephantSeal?

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

Can an author reply?

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

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

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

# pgTrue report: What your Postgres is waiting for, and why the dashboard can't tell you

Article title: What your Postgres is waiting for, and why the dashboard can't tell you
Article URL: https://postgres.ai/blog/20261103-what-postgres-is-waiting-for
Report URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece
Audited revision: 1 of 1, 2026-11-03 22:53:55 UTC
Overall letter: A

## Axes

- Factual: A · 0 wrong · 24 checked · 1 caveats · assessed
- Applicable: A · 0 wrong · 0 checked · 0 caveats · partly assessed
- Consistent: A · 0 wrong · 4 checked · 0 caveats · not assessed
- Transparent: A · 0 wrong · 9 checked · 0 caveats · partly assessed
- Safe: A · 0 wrong · 0 checked · 0 caveats · not assessed

ElephantSeal: A.
Open conditions: central claim not checked.

## Report metadata

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

## Findings needing a change (1)

### F17 · Imprecise · Factual · Fixed sampling does not guarantee unbiased time shares
Location: excerpt · section “How every dashboard sees waits” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=The%20shares%20it%20produces%20are%20unbiased%20estimates)
Article says:
```text
The shares it produces are unbiased estimates…
```
What is true:
Periodic samples need independence from workload timing to support the claimed guarantee. pg_wait_sampling 1.1.11 uses configured periods in collector.c:413–450. Correlated workload phases can distort shares despite many samples. The reported agreement within 2 percentage points remains a separate measurement.
So what:
Compare profiles at different pg_wait_sampling.profile_period settings before choosing a tuning change from their percentages.
Charitable reading:
Independent sampling can estimate time shares accurately. The article reports agreement within 2 percentage points in this workload.
Review: We tested the charitable assumption of workload-independent sampling. The article states an unconditional guarantee, while collector.c uses periodic deadlines. F17 preserves the reported agreement and names a concrete profile_period comparison. We tested the statistical shorthand reading. Fixed sampling periods do not establish workload-independent sampling. Changing profile_period is concrete, and wasted-work remains proportionate.

Sources:
- [[email protected] · collector.c:413-414](https://github.com/postgrespro/pg_wait_sampling/blob/7e3a5fc937393596c0a51c5881dd63d7208408d1/collector.c#L413-L414)
  Excerpt:
  ```text
  write_history = (time_elapsed_history >= (int64) pgws_historyPeriod);
		write_profile = (time_elapsed_profile >= (int64) pgws_profilePeriod);
  ```
- [[email protected] · collector.c:449-450](https://github.com/postgrespro/pg_wait_sampling/blob/7e3a5fc937393596c0a51c5881dd63d7208408d1/collector.c#L449-L450)
  Excerpt:
  ```text
  time_to_sleep = Min(pgws_historyPeriod - (int) time_elapsed_history,
							pgws_profilePeriod - (int) time_elapsed_profile);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F17

## Verified accurate claims (23)

### F1 · Accurate · Factual · Wait events use a live 4-byte field
Location: excerpt · section “What a wait event is” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=it%20writes%20a%204%2Dbyte%20code,own%20slot%20in%20shared%20memory)
Article says:
```text
…it writes a 4-byte code for the wait into its own slot in shared memory…
```
What is true:
PostgreSQL 18 writes the wait code into shared PGPROC memory and clears it to zero. pg_stat_get_activity converts that code into type and event names. The flag functions themselves neither time nor count waits.
Charitable reading:
The claim describes the core flag functions, not separate I/O accounting.
Review: We tested whether separate timing facilities contradict F1. Its restriction to the flag functions preserves accuracy. We checked whether separate accounting invalidated the claim. F1 limits its statement to flag functions, which write and clear uint32 storage.

Sources:
- [REL_18_6 · src/include/utils/wait_event.h:69-88](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/utils/wait_event.h#L69-L88)
  Excerpt:
  ```text
  pgstat_report_wait_start(uint32 wait_event_info)
{
	/*
	 * Since this is a four-byte field which is always read and written as
	 * four-bytes, updates are atomic.
	 */
	*(volatile uint32 *) my_wait_event_info = wait_event_info;
}

/* ----------
 * pgstat_report_wait_end() -
 *
 *	Called to report end of a wait.
 * ----------
 */
static inline void
pgstat_report_wait_end(void)
{
	/* see pgstat_report_wait_start() */
	*(volatile uint32 *) my_wait_event_info = 0;
  ```
- [REL_18_6 · src/backend/utils/adt/pgstatfuncs.c:451-453](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/pgstatfuncs.c#L451-L453)
  Excerpt:
  ```text
  raw_wait_event = UINT32_ACCESS_ONCE(proc->wait_event_info);
				wait_event_type = pgstat_get_wait_event_type(raw_wait_event);
				wait_event = pgstat_get_wait_event(raw_wait_event);
  ```
- [REL_18_6 · src/backend/storage/lmgr/proc.c:539-540](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L539-L540)
  Excerpt:
  ```text
  /* now that we have a proc, report wait events to shared memory */
	pgstat_set_wait_event_storage(&MyProc->wait_event_info);
  ```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:889-899](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L889-L899)
  Excerpt:
  ```text
  <entry role="catalog_table_entry"><para role="column_definition">
       <structfield>wait_event</structfield> <type>text</type>
      </para>
      <para>
       Wait event name if backend is currently waiting, otherwise NULL.
       See <xref linkend="wait-event-activity-table"/> through
       <xref linkend="wait-event-timeout-table"/>.
      </para></entry>
     </row>

     <row>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F1

### F2 · Accurate · Factual · track_io_timing adds I/O durations to EXPLAIN
Location: excerpt · section “Two kinds of time” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=With%20track_io_timing%20it%20also%20reports%20I%2FO%20time.)
Article says:
```text
With track_io_timing it also reports I/O time.
```
What is true:
EXPLAIN reports elapsed node time. With track_io_timing, buffer instrumentation also records I/O durations. These totals do not reconstruct individual waits.
Charitable reading:
PostgreSQL 18 includes buffer information by default with ANALYZE.
Review: We checked elapsed timing against I/O instrumentation. Neither source turns those totals into individual wait histories. We tested whether EXPLAIN separates individual waits. E-20 documents aggregate I/O durations, and E-49 accumulates elapsed node time.

Sources:
- [REL_18_6 · doc/src/sgml/ref/explain.sgml:185-190](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/explain.sgml#L185-L190)
  Excerpt:
  ```text
  Include information on buffer usage. Specifically, include the number of
      shared blocks hit, read, dirtied, and written, the number of local blocks
      hit, read, dirtied, and written, the number of temp blocks read and
      written, and the time spent reading and writing data file blocks, local
      blocks and temporary file blocks (in milliseconds) if
      <xref linkend="guc-track-io-timing"/> is enabled.  A
  ```
- [REL_18_6 · src/backend/storage/buffer/bufmgr.c:1962-1967](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L1962-L1967)
  Excerpt:
  ```text
  io_start = pgstat_prepare_io_time(track_io_timing);
		smgrstartreadv(ioh, operation->smgr, forknum,
					   blocknum,
					   io_pages, io_buffers_len);
		pgstat_count_io_op_time(io_object, io_context, IOOP_READ,
								io_start, 1, io_buffers_len * BLCKSZ);
  ```
- [REL_18_6 · src/backend/executor/instrument.c:98-99](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/instrument.c#L98-L99)
  Excerpt:
  ```text
  INSTR_TIME_SET_CURRENT(endtime);
		INSTR_TIME_ACCUM_DIFF(instr->counter, endtime, instr->starttime);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F2

### F3 · Accurate · Factual · PostgreSQL 18 exposes aggregate and per-backend I/O counters
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=pg_stat_io%20%2C%20per%20backend%20pg_stat_get_backend_io%28%29)
Article says:
```text
…pg_stat_io , per backend pg_stat_get_backend_io()…
```
What is true:
pg_stat_io exposes operation counts and time totals. pg_stat_get_backend_io takes a backend PID and returns the same fields. Neither interface provides individual durations or a maximum duration.
Charitable reading:
These counters cover tracked operations, not every possible file access.
Review: We checked the PID argument and output fields. The interfaces contain totals without individual durations or maxima. We checked for duration distributions or maxima among the returned fields. E-22 lists aggregate counters, and E-23 specifies identical per-backend fields.

Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:1171-1193](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L1171-L1193)
  Excerpt:
  ```text
  CREATE VIEW pg_stat_io AS
SELECT
       b.backend_type,
       b.object,
       b.context,
       b.reads,
       b.read_bytes,
       b.read_time,
       b.writes,
       b.write_bytes,
       b.write_time,
       b.writebacks,
       b.writeback_time,
       b.extends,
       b.extend_bytes,
       b.extend_time,
       b.hits,
       b.evictions,
       b.reuses,
       b.fsyncs,
       b.fsync_time,
       b.stats_reset
FROM pg_stat_get_io() b;
  ```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:4885-4887](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L4885-L4887)
  Excerpt:
  ```text
  Returns I/O statistics about the backend with the specified
        process ID. The output fields are exactly the same as the ones in the
        <structname>pg_stat_io</structname> view.
  ```
- [REL_18_6 · src/backend/utils/adt/pgstatfuncs.c:1600-1606](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/pgstatfuncs.c#L1600-L1606)
  Excerpt:
  ```text
  pid = PG_GETARG_INT32(0);
	backend_stats = pgstat_fetch_stat_backend_by_pid(pid, &bktype);

	if (!backend_stats)
		return (Datum) 0;

	bktype_stats = &backend_stats->io_stats;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F3

### F4 · Accurate · Factual · pg_blocking_pids reports current lock blockers
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=pg_blocking_pids%28%29%20the%20blocker%27s%20PID%20while%20the%20wait%20is%20in%20progress)
Article says:
```text
…pg_blocking_pids() the blocker's PID while the wait is in progress…
```
What is true:
pg_blocking_pids reads a snapshot of lock-manager state. It returns blocker PIDs while the target is blocked.
Charitable reading:
The article describes current blockers, not historical lock chains.
Review: We tested a historical-blocker interpretation. GetBlockerStatusData instead supplies the current lock-manager snapshot described by F4. We tested the historical-blocker interpretation. E-26 takes a current lock-manager snapshot, consistent with E-25.

Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:24996-25000](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L24996-L25000)
  Excerpt:
  ```text
  Returns an array of the process ID(s) of the sessions that are
        blocking the server process with the specified process ID from
        acquiring a lock, or an empty array if there is no such server process
        or it is not blocked.
       </para>
  ```
- [REL_18_6 · src/backend/utils/adt/lockfuncs.c:475-476](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/lockfuncs.c#L475-L476)
  Excerpt:
  ```text
  /* Collect a snapshot of lock manager state */
	lockData = GetBlockerStatusData(blocked_pid);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F4

### F5 · Accurate · Factual · deadlock_timeout defaults to 1 second
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=deadlock_timeout%20%281%20s%20by%20default%29)
Article says:
```text
…deadlock_timeout (1 s by default)…
```
What is true:
deadlock_timeout defaults to 1,000 milliseconds in PostgreSQL 18. It schedules deadlock checks and sets the log_lock_waits threshold. Administrators can lower it when investigating short locking delays.
Charitable reading:
The article explicitly identifies 1 second as the default, not a fixed minimum.
Review: We checked whether 1 second was a fixed minimum. Both the article and F5 correctly identify a configurable default. We checked whether 1 second was a fixed minimum. E-27 sets the default, and E-28 explicitly permits shorter investigation settings.

Sources:
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:2266-2274](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2266-L2274)
  Excerpt:
  ```text
  {"deadlock_timeout", PGC_SUSET, LOCK_MANAGEMENT,
			gettext_noop("Sets the time to wait on a lock before checking for deadlock."),
			NULL,
			GUC_UNIT_MS
		},
		&DeadlockTimeout,
		1000, 1, INT_MAX,
		NULL, NULL, NULL
	},
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:11270-11274](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L11270-L11274)
  Excerpt:
  ```text
  When <xref linkend="guc-log-lock-waits"/> is set,
        this parameter also determines the amount of time to wait before
        a log message is issued about the lock wait.  If you are trying
        to investigate locking delays you might want to set a shorter than
        normal <varname>deadlock_timeout</varname>.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F5

### F7 · Accurate · Factual · pg_wait_sampling defaults match the article
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=pg_wait_sampling%20keeps%20the%20last%205%2C000%20samples%20by%20default)
Article says:
```text
…pg_wait_sampling keeps the last 5,000 samples by default…
```
What is true:
pg_wait_sampling 1.1.11 defaults to a 5,000-entry history and 10-millisecond history and profile periods. Its collector records backend states and increments sample counts. Samples do not record every transition.
Charitable reading:
The history capacity counts backend observations, not sampling rounds.
Review: We distinguished backend observations from sampling rounds. The 5,000-entry capacity and both 10-millisecond defaults match version 1.1.11. We checked whether 5,000 meant sampling rounds. E-34 stores backend observations, while E-33 confirms both 10-millisecond defaults.

Sources:
- [[email protected] · README.md:142-144](https://github.com/postgrespro/pg_wait_sampling/blob/7e3a5fc937393596c0a51c5881dd63d7208408d1/README.md#L142-L144)
  Excerpt:
  ```text
  | pg_wait_sampling.history_size    | int4      | Size of history in-memory ring buffer       |          5000 |
| pg_wait_sampling.history_period  | int4      | Period for history sampling in milliseconds |            10 |
| pg_wait_sampling.profile_period  | int4      | Period for profile sampling in milliseconds |            10 |
  ```
- [[email protected] · collector.c:169-184](https://github.com/postgrespro/pg_wait_sampling/blob/7e3a5fc937393596c0a51c5881dd63d7208408d1/collector.c#L169-L184)
  Excerpt:
  ```text
  if (!pgws_should_sample_proc(proc, &item.pid, &item.wait_event_info))
			continue;

		if (pgws_profileQueries)
			item.queryId = pgws_proc_queryids[i];
		else
			item.queryId = 0;

		item.ts = ts;

		/* Write to the history if needed */
		if (write_history)
		{
			observation = get_next_observation(observations);
			*observation = item;
		}
  ```
- [[email protected] · collector.c:195-199](https://github.com/postgrespro/pg_wait_sampling/blob/7e3a5fc937393596c0a51c5881dd63d7208408d1/collector.c#L195-L199)
  Excerpt:
  ```text
  profileItem = (ProfileItem *) hash_search(profile_hash, &item, HASH_ENTER, &found);
			if (found)
				profileItem->count++;
			else
				profileItem->count = 1;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F7

### F8 · Accurate · Factual · synchronous_commit off trades commit durability for less waiting
Location: excerpt · section “The two fixes it suggests, tried” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=synchronous_commit%20%3D%20off)
Article says:
```text
…synchronous_commit = off…
```
What is true:
synchronous_commit off permits ordinary commits without waiting for local WAL flush. A crash can lose recently acknowledged transactions. PostgreSQL retains database consistency.
Charitable reading:
The article states the durability cost. We did not verify the measured speedup.
Review: We checked forced-flush exceptions in xact.c. The qualification about ordinary commits avoids claiming that off eliminates every flush. We checked forced-flush exceptions in E-37. F8 says ordinary commits, preserving those exceptions and E-36's consistency guarantee.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:3198-3203](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L3198-L3203)
  Excerpt:
  ```text
  <xref linkend="guc-fsync"/>, setting this parameter to <literal>off</literal>
        does not create any risk of database inconsistency: an operating
        system or database crash might
        result in some recent allegedly-committed transactions being lost, but
        the database state will be just the same as if those transactions had
        been aborted cleanly.  So, turning <varname>synchronous_commit</varname> off
  ```
- [REL_18_6 · src/backend/access/transam/xact.c:1498-1502](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L1498-L1502)
  Excerpt:
  ```text
  if ((wrote_xlog && markXidCommitted &&
		 synchronous_commit > SYNCHRONOUS_COMMIT_OFF) ||
		forceSyncCommit || nrels > 0)
	{
		XLogFlush(XactLastRecEnd);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F8

### F9 · Accurate · Factual · Row locks persist until the transaction ends
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=it%20holds%20the%20row%20locks,100%20items%20until%20it%20finishes)
Article says:
```text
…it holds the row locks on those 100 items until it finishes…
```
What is true:
PostgreSQL 18 releases row locks at transaction end or savepoint rollback. Separate autocommit transactions can shorten lock retention. Dividing one transaction into several statements alone does not release its row locks.
Charitable reading:
The described single-statement job fits the autocommit reading. The workload SQL remains unchecked.
Review: We tested whether splitting statements alone releases locks. F9 explicitly requires separate transactions and does not verify the workload SQL. We tested whether statement chunking alone releases locks. F9 explicitly requires separate transactions and does not certify the unchecked workload SQL.

Sources:
- [REL_18_6 · doc/src/sgml/mvcc.sgml:1252-1255](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/mvcc.sgml#L1252-L1255)
  Excerpt:
  ```text
  on the same row.  Row-level locks do not affect data querying; they
     block only <emphasis>writers and lockers</emphasis> to the same
     row.  Row-level locks are released at transaction end or during
     savepoint rollback, just like table-level locks.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F9

### F10 · Accurate · Factual · Rate-limited pgbench includes schedule lag in latency
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=Latency%20is%20counted%20from%20each,does%20at%20a%20fixed%20rate.)
Article says:
```text
Latency is counted from each request's scheduled start, as pgbench does at a fixed rate.
```
What is true:
With throttling, pgbench measures transaction latency from scheduled start. Its reported latency includes time waiting for the previous transaction to finish.
Charitable reading:
This verifies pgbench semantics, not the article's log-processing scripts.
Review: We checked whether latency starts at actual execution. The throttled pgbench documentation explicitly uses scheduled start times. We checked actual-start versus scheduled-start semantics. E-39 explicitly includes schedule lag when throttling applies.

Sources:
- [REL_18_6 · doc/src/sgml/ref/pgbench.sgml:658-662](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/pgbench.sgml#L658-L662)
  Excerpt:
  ```text
  When throttling is active, the transaction latency reported at the
        end of the run is calculated from the scheduled start times, so it
        includes the time each transaction had to wait for the previous
        transaction to finish. The wait time is called the schedule lag time,
        and its average and maximum are also reported separately. The
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F10

### F11 · Accurate · Factual · shared_buffers controls shared buffer memory
Location: excerpt · section “The two fixes it suggests, tried” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=2%20GiB%20shared_buffers)
Article says:
```text
…2 GiB shared_buffers…
```
What is true:
shared_buffers controls PostgreSQL shared buffer memory and takes effect at server start. A 2-GiB setting is within the supported range. It does not establish that the experiment eliminated physical reads.
Charitable reading:
We did not verify the prewarming procedure or memory limit.
Review: We checked whether F11 certifies the measured removal of reads. It explicitly limits verification to the setting and supported range. We checked whether F11 certified eliminated disk reads. It verifies the setting's meaning and range, while explicitly withholding that experimental conclusion.

Sources:
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:2379-2387](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2379-L2387)
  Excerpt:
  ```text
  {"shared_buffers", PGC_POSTMASTER, RESOURCES_MEM,
			gettext_noop("Sets the number of shared memory buffers used by the server."),
			NULL,
			GUC_UNIT_BLOCKS
		},
		&NBuffers,
		16384, 16, INT_MAX / 2,
		NULL, NULL, NULL
	},
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:1735-1746](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L1735-L1746)
  Excerpt:
  ```text
  Sets the amount of memory the database server uses for shared
        memory buffers.  The default is typically 128 megabytes
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F11

### F12 · Accurate · Factual · pg_stat_statements records statement totals without wait histories
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=pg_stat_statements%20calls%2C%20total%20and%20mean,blocks%20read%3B%20no%20wait%20breakdown)
Article says:
```text
…pg_stat_statements calls, total and mean time, blocks read; no wait breakdown…
```
What is true:
pg_stat_statements records call counts and execution-time totals, means, minima, maxima, and variance. Its counters include blocks read. It does not record an ordered history of individual wait events.
Charitable reading:
The article lists available totals without claiming that its list is exhaustive.
Review: We checked additional timing counters around E-42. Their variance calculation supports F12 without providing individual wait histories. We checked counter updates and surrounding variance calculations. pg_stat_statements records statement aggregates, without ordered individual wait histories.

Sources:
- [REL_18_6 · contrib/pg_stat_statements/pg_stat_statements.c:1409-1418](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_stat_statements/pg_stat_statements.c#L1409-L1418)
  Excerpt:
  ```text
  entry->counters.usage = USAGE_INIT;

		entry->counters.calls[kind] += 1;
		entry->counters.total_time[kind] += total_time;

		if (entry->counters.calls[kind] == 1)
		{
			entry->counters.min_time[kind] = total_time;
			entry->counters.max_time[kind] = total_time;
			entry->counters.mean_time[kind] = total_time;
  ```
- [REL_18_6 · contrib/pg_stat_statements/pg_stat_statements.c:167-169](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_stat_statements/pg_stat_statements.c#L167-L169)
  Excerpt:
  ```text
  int64		rows;			/* total # of retrieved or affected rows */
	int64		shared_blks_hit;	/* # of shared buffer hits */
	int64		shared_blks_read;	/* # of shared disk blocks read */
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F12

### F14 · Accurate · Factual · track_wal_io_timing controls WAL I/O timing
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=or%20track_wal_io_timing%20for%20WAL)
Article says:
```text
…or track_wal_io_timing for WAL…
```
What is true:
PostgreSQL 18 uses track_wal_io_timing when timing WAL synchronization. WAL durations appear under object wal in pg_stat_io and pg_stat_get_backend_io.
Charitable reading:
The article correctly separates WAL timing from track_io_timing.
Review: We checked for confusion between track_io_timing and track_wal_io_timing. The WAL synchronization code uses the latter. We checked whether track_io_timing controls WAL synchronization timing. E-46 uses track_wal_io_timing, and E-47 identifies both reporting interfaces.

Sources:
- [REL_18_6 · src/backend/access/transam/xlog.c:8763-8767](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xlog.c#L8763-L8767)
  Excerpt:
  ```text
  * Measure I/O timing to sync the WAL file for pg_stat_io.
	 */
	start = pgstat_prepare_io_time(track_wal_io_timing);

	pgstat_report_wait_start(WAIT_EVENT_WAL_SYNC);
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:8787-8793](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L8787-L8793)
  Excerpt:
  ```text
  I/O timing information is displayed in
        <link linkend="monitoring-pg-stat-io-view">
        <structname>pg_stat_io</structname></link> for the
        <varname>object</varname> <literal>wal</literal> and in the output of
        the <link linkend="pg-stat-get-backend-io">
        <function>pg_stat_get_backend_io()</function></link> function for the
        <varname>object</varname> <literal>wal</literal>.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F14

### F15 · Accurate · Factual · Query Store records sampled wait events
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=Azure%20Database%20for%20PostgreSQL%20query%20store)
Article says:
```text
…Azure Database for PostgreSQL query store…
```
What is true:
Query Store samples wait events through pgms_wait_sampling.history_period. Its documented default is 100 milliseconds.
Charitable reading:
The article does not assign pg_wait_sampling's 10-millisecond default to this service.
Review: We tested whether the article assigns this service a 10-millisecond interval. It does not, and E-48 supports 100 milliseconds. We checked whether F15 transferred the extension's 10-millisecond default to Query Store. It correctly gives the documented 100-millisecond default.

Sources:
- [https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-query-store](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-query-store)
  Excerpt:
  ```text
  pgms_wait_sampling.history_period Frequency, in milliseconds, at which wait events are sampled. 100 1 - 600000
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F15

### F18 · Accurate · Factual · The wait-tracing patch remains under review
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=a%20patch%20under%20review%20on%20pgsql%2Dhackers%2C%20pg_wait_event_tracing)
Article says:
```text
…a patch under review on pgsql-hackers, pg_wait_event_tracing…
```
What is true:
Patch 6984 remains Needs review in the November 2026 commitfest. The article correctly describes the patch as under review.
Charitable reading:
The claim concerns the proposed tracing patch's review status on November 3, 2026.
Review: We checked the November entry against the earlier commitfest status. Patch 6984 remained Needs review on the recorded page. We checked the applicable commitfest dates. E-56 lists Needs review for November 2026, matching the publication date.

Sources:
- [https://commitfest.postgresql.org/patch/6984/](https://commitfest.postgresql.org/patch/6984/)
  Excerpt:
  ```text
  Status PG20-3 (2026-11-01 – 2026-11-30): Needs review
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F18

### F19 · Accurate · Factual · PostgreSQL 19 reached release-candidate status in October 2026
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=a%20release%20candidate%20since%20October%202026)
Article says:
```text
…a release candidate since October 2026…
```
What is true:
The official documentation dates PostgreSQL 19 RC 1 to October 15, 2026. That supports the article's publication-day description.
Charitable reading:
The article identifies PostgreSQL 19 as a release candidate, rather than a released stable major.
Review: We checked the date and release-candidate designation against the recorded official page. Both support the publication-day statement. We checked whether the citation concerned PostgreSQL 18. E-58 explicitly announces PostgreSQL 19 RC 1 on October 15, 2026.

Sources:
- [https://www.postgresql.org/docs/19/monitoring-stats.html](https://www.postgresql.org/docs/19/monitoring-stats.html)
  Excerpt:
  ```text
  October 15, 2026: PostgreSQL 19 RC 1 Released!
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F19

### F20 · Accurate · Factual · PostgreSQL 18 added WAL activity to pg_stat_io
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=WAL%20included%20from%20Postgres%2018)
Article says:
```text
…WAL included from Postgres 18…
```
What is true:
REL_18_6 doc/src/sgml/release-18.sgml:9839 records the addition of WAL activity to pg_stat_io. The article gives the correct major-version floor.
Charitable reading:
The version floor concerns WAL activity in pg_stat_io, rather than the earlier pg_stat_wal view.
Review: We tested confusion with the older pg_stat_wal view. The release entry specifically names WAL data in pg_stat_io. We checked whether the version floor confused pg_stat_wal with pg_stat_io. E-60 specifically records WAL additions to pg_stat_io.

Sources:
- [REL_18_6 · doc/src/sgml/release-18.sgml:9839-9839](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/release-18.sgml#L9839-L9839)
  Excerpt:
  ```text
  2025-02-04 [a051e71e2] Add data for WAL in pg_stat_io and backend statistics
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F20

### F22 · Accurate · Factual · EXPLAIN ANALYZE reports elapsed node time
Location: excerpt · section “Two kinds of time” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=Its%20node%20times%20are%20elapsed%20time)
Article says:
```text
Its node times are elapsed time…
```
What is true:
REL_18_6 doc/src/sgml/ref/explain.sgml:84–85 specifies elapsed milliseconds within each plan node. These values include waits occurring inside the measured interval. They do not identify individual wait events.
Charitable reading:
The claim concerns elapsed time within instrumented plan nodes.
Review: We checked whether F22 includes waits outside node instrumentation. It confines the statement to the measured interval. We tested whether node times represented CPU time alone. E-65 explicitly defines elapsed milliseconds within each plan node.

Sources:
- [REL_18_6 · doc/src/sgml/ref/explain.sgml:84-85](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/explain.sgml#L84-L85)
  Excerpt:
  ```text
  the display, including the total elapsed time expended within each plan
   node (in milliseconds) and the total number of rows it actually returned.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F22

### F23 · Accurate · Factual · pg_stat_lock excludes short waits and unsuccessful acquisitions
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=heavyweight%2Dlock%20waits%20that%20lasted%20longer%20than%20deadlock_timeout%20and%20were%20acquired)
Article says:
```text
…heavyweight-lock waits that lasted longer than deadlock_timeout and were acquired…
```
What is true:
PostgreSQL 19 documents pg_stat_lock counters for successful acquisitions after waiting longer than deadlock_timeout. The article states both restrictions.
Charitable reading:
The article restricts pg_stat_lock counts to acquired locks whose waits exceeded deadlock_timeout.
Review: We checked the surrounding pg_stat_lock table. Both waits and wait_time require successful acquisition after exceeding deadlock_timeout. We checked both acquisition success and timeout restrictions. E-67 applies both restrictions to waits and wait_time in PostgreSQL 19.

Sources:
- [https://www.postgresql.org/docs/19/monitoring-stats.html](https://www.postgresql.org/docs/19/monitoring-stats.html)
  Excerpt:
  ```text
  Only incremented when the lock was successfully acquired after waiting longer than deadlock_timeout .
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F23

### F24 · Accurate · Factual · synchronous_commit off can lose acknowledged transactions after a crash
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=gives%20up%20durability%20on%20a%20crash)
Article says:
```text
…gives up durability on a crash…
```
What is true:
REL_18_6 doc/src/sgml/config.sgml:3201 warns that recent acknowledged transactions can disappear after a crash. The article correctly states this tradeoff for synchronous_commit = off.
Charitable reading:
The durability warning concerns recent transactions acknowledged before their WAL reaches durable storage.
Review: We tested whether F24 implies corruption or inevitable loss. It states only the documented possibility of losing recent commits. We checked whether the durability statement implied database corruption. F24 limits the consequence to losing recent acknowledged transactions, consistent with E-69.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:3201-3201](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L3201-L3201)
  Excerpt:
  ```text
  result in some recent allegedly-committed transactions being lost, but
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F24

### F25 · Accurate · Factual · The original slow-request reduction rounds to 60%
Location: excerpt · section “The two fixes it suggests, tried” · as fetched 2026-11-03 · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=baseline%201.51%20ms%203.08%20ms%2010.98%20ms%2026.7%20ms%20972)
Article says:
```text
…baseline 1.51 ms 3.08 ms 10.98 ms 26.7 ms 972…
```
What is true:
Fix C removes 584 of 972 requests exceeding 5 milliseconds, or 60.1% (derived: (972 − 388) / 972). The displayed p99.9 decreases 47.4%. The displayed maximum decreases 62.5%.
Charitable reading:
The 60% claim concerns requests exceeding 5 milliseconds, rather than a 60% reduction in every latency statistic.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated all three reductions. They round to 60.1%, 47.4%, and 62.5% for the displayed values. We recalculated all 3 reductions. The slow-request count falls 60.1%, p99.9 falls 47.4%, and maximum latency falls 62.5%.

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F25

### F26 · Accurate · Factual · The three repeat reductions match the filtered counts
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=by%20100%25%2C%2092%25%20and%2027%25%20in%20three%20repeats)
Article says:
```text
…by 100%, 92% and 27% in three repeats…
```
What is true:
The first pair removes 100% of 125 slow requests. The second removes 92% of 300 slow requests. The third removes 26.6% of 334 slow requests, which rounds to 27%.
Charitable reading:
The article explicitly applies the stall exclusion before calculating these repeat reductions.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated each pair separately. The 89-request reduction from 334 requests rounds to 27%, as stated. We recalculated the filtered count reductions: 100%, 92%, and 26.6%. F26 preserves the stall-exclusion qualification.

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F26

### F27 · Accurate · Factual · Both flush distributions total 6 seconds
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=30%2C000%20flushes%20of%20200%20%CE%BCs)
Article says:
```text
…30,000 flushes of 200 μs…
```
What is true:
The uniform distribution totals 6 seconds across 30,000 flushes. The mixed distribution totals 6 seconds: 2.97 seconds plus 3.03 seconds. Both average 200 microseconds per flush.
Charitable reading:
The example compares aggregate counts and means while allowing different duration distributions.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We converted microseconds and milliseconds before summing. Both distributions contain 30,000 flushes totaling 6 seconds. We recalculated both totals. Each distribution contains 30,000 flushes totaling 6 seconds, with a 200-microsecond mean.

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F27

### F28 · Accurate · Factual · The short-wait example yields 4 expected samples
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=Twenty%20of%20them%20in%20an,ms%20out%20of%203%2C600%20seconds)
Article says:
```text
Twenty of them in an hour are 40 ms out of 3,600 seconds…
```
What is true:
Twenty 2-millisecond waits total 40 milliseconds per hour. A 10-millisecond sampler takes 360,000 samples per hour. Uniformly distributed wait phases yield 4 expected hits (derived: 40 milliseconds / 10 milliseconds).
Charitable reading:
The article states an average sampling result. Uniformly distributed wait phases supply the implied statistical assumption.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We tested synchronized wait phases against the expected-hit calculation. F28 explicitly assumes uniform phases, under which 4 expected hits is correct. We tested whether 4 hits were guaranteed. F28 states an expectation under uniformly distributed phases, correctly distinguishing arithmetic from sampling guarantees.

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F28

## Notes (not graded) (1)

### F13 · Note ·  · A wait flag does not establish that a backend is off CPU
Location: Article · exact quote · [open in article](https://postgres.ai/blog/20261103-what-postgres-is-waiting-for#:~:text=a%20wait%20is%20%22not%20running%2C%20and%20here%20is%20the%20name%22)
Article says:
```text
…a wait is "not running, and here is the name"…
```
What is true:
Wait flags bracket instrumented operations. fd.c wraps pg_preadv with the flag. WaitEventSetWait sets the flag before checking whether a latch already permits immediate return. An instrumented interval can include CPU work without sleeping.
Charitable reading:
The article correctly includes scheduling delay. Its phrase about not running goes beyond what the flag establishes.
Explanation: Not graded: no reader would act differently on it.
Review: We considered the article's scheduling-delay caveat. Immediate latch returns still show why an active flag does not establish sleep. We tested the charitable scheduling-delay interpretation. E-45 still permits immediate return after setting the flag. The ungraded qualification survives.

Sources:
- [REL_18_6 · src/backend/storage/file/fd.c:2185-2187](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L2185-L2187)
  Excerpt:
  ```text
  pgstat_report_wait_start(wait_event_info);
	returnCode = pg_preadv(vfdP->fd, iov, iovcnt, offset);
	pgstat_report_wait_end();
  ```
- [REL_18_6 · src/backend/storage/ipc/waiteventset.c:1062-1065](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/waiteventset.c#L1062-L1065)
  Excerpt:
  ```text
  pgstat_report_wait_start(wait_event_info);

#ifndef WIN32
	waiting = true;
  ```
- [REL_18_6 · src/backend/storage/ipc/waiteventset.c:1074-1077](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/waiteventset.c#L1074-L1077)
  Excerpt:
  ```text
  /*
		 * Check if the latch is set already first.  If so, we either exit
		 * immediately or ask the kernel for further events available right
		 * now without waiting, depending on how many events the caller wants.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece#F13

## Withdrawn findings (0)

None.

## Section checks

- Wait-event mechanism · A · 1 verified-accurate · 86% of claims (13 of 15)
- Two kinds of time · A · 2 verified-accurate · 85% of claims (6 of 7)
- Dashboard sampling · A · 1 imprecise · 1 verified-accurate · 100% of claims (5 of 5, plus 1 that need data we do not have)
- Limits of shares · A · 7 verified-accurate · 100% of claims (17 of 17, plus 1 that need data we do not have)
- Existing tools · A · 4 verified-accurate · 100% of claims (11 of 11, plus 3 that need data we do not have)
- Checkout workload · A · 2 verified-accurate · 100% of claims (5 of 5, plus 7 that need data we do not have)
- Attempted fixes · A · 4 verified-accurate · 100% of claims (6 of 6, plus 5 that need data we do not have)
- Fix and repeats · A · 1 verified-accurate · 100% of claims (8 of 8, plus 11 that need data we do not have)
- Conclusions and tools · A · 1 verified-accurate · 100% of claims (1 of 1, plus 6 that need data we do not have)

## Claim coverage

- Introduction: 4 claims are the author's own account; nothing checkable; not counted: 3 not a claim
- Summary: 2 of 2 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 2 duplicate, 1 not a claim
- Wait-event mechanism: 13 of 15 Postgres claims checked; not checked: 2 for other reasons
- Two kinds of time: 6 of 7 Postgres claims checked; not counted: 1 duplicate; not checked: 1 for other reasons
- Dashboard sampling: 5 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 3 product or opinion, 1 duplicate
- Limits of shares: 17 of 17 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 1 duplicate
- Existing tools: 11 of 11 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate
- Checkout workload: 5 of 5 Postgres claims checked, plus 7 that need data we do not have; not counted: 3 product or opinion, 1 not a claim
- Dashboard results: 9 of 9 Postgres claims checked, plus 2 that need data we do not have
- Attempted fixes: 6 of 6 Postgres claims checked, plus 5 that need data we do not have; not counted: 2 product or opinion, 2 duplicate
- Per-request diagnosis: 7 of 7 Postgres claims checked, plus 16 that need data we do not have; not counted: 1 not a claim
- Fix and repeats: 8 of 8 Postgres claims checked, plus 11 that need data we do not have
- Dashboard drill-down: 1 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion; not checked: 1 for other reasons
- Conclusions and tools: 1 of 1 Postgres claims checked, plus 6 that need data we do not have; not counted: 1 product or opinion, 2 duplicate, 4 not a claim

## What we did not check

- We did not reproduce the latency measurements or verify their raw logs and trace recordings.
- We did not verify the workload SQL, transaction boundaries between chunks, or stall-filter scripts.
- We did not verify the patch and external tracer implementations or every named dashboard's sampling implementation.
- We did not check the article's figures against their underlying data.
- We did not reproduce the checkout measurements or inspect the per-request log archives.
- We did not read the conference slides or retrieve the figure-generation directory.
- We did not verify every monitoring product's implementation or pg_wait_tracer's host-privilege requirements.
- We did not verify the PostgreSQL 18 repeat or the independent tracer diagnosis.
- We did not reproduce the checkout measurements or independently recompute their summaries from raw latency logs and trace rings.
- We did not inspect the individual request's timeline image or verify its 87% lock share and I/O durations.
- We did not verify the 11,879 statement calls or the background job's complete execution-time statistics.
- We did not verify request arrival times against the 0.5-second interval after each stall.
- reproducibility: benchmark check did not finish
- central claim: evidence check did not finish
- Applicable: we did not complete every applicable check.
- Consistent: we did not complete every applicable check.
- Transparent: we did not complete every applicable check.
- Safe: we did not complete every applicable check.
- Section “Dashboard drill-down”: we checked 1 of 3 checkable claims.
- Transparent: claims sourced check did not finish.
- Transparent: claims dated check did not finish.
- Transparent: interest disclosed check did not finish.
- Transparent: author dated check did not finish.
- experiments: check did not finish
- production actions: check did not finish
- benchmark: check did not finish
- We hold no source mapping for “postgres-ai/docs”, so we did not check the article's claims about its code.
- 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. The findings directly check live-flag sampling, missing wait histories, and the arithmetic behind the checkout comparisons.
- 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/postgrespro/pg_wait_sampling v1.1.11 at commit 7e3a5fc937393596c0a51c5881dd63d7208408d1 (pinned target); https://commitfest.postgresql.org/patch/6984/ (fetched 2026-11-03T22:54:54.473108Z); https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html (fetched 2026-11-03T22:54:28.526602Z); https://docs.datadoghq.com/database_monitoring/ (fetched 2026-11-03T22:54:32.839556Z); https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-query-store (fetched 2026-11-03T22:54:30.709578Z); https://pganalyze.com/ (fetched 2026-11-03T22:54:31.992234Z); https://postgres.ai/blog/tags/monitoring (fetched 2026-11-03T22:55:04.815648Z); https://postgres.ai/blog/tags/postgres-insights (fetched 2026-11-03T22:55:03.628938Z); https://postgres.ai/blog/tags/wait-events (fetched 2026-11-03T22:55:05.798175Z); https://postgres.ai/docs/monitoring/metrics/wait-events (fetched 2026-11-03T22:54:35.611618Z); https://www.postgresql.eu/events/pgconfeu2026/schedule/session/7907-stop-guessing-unlocking-wait-events-at-scale-with-existing-and-new-tools/ (fetched 2026-11-03T22:55:02.257410Z); https://www.postgresql.org/docs/19/monitoring-stats.html (fetched 2026-11-03T22:54:37.429373Z); https://www.postgresql.org/docs/current/functions-info.html (fetched 2026-11-03T22:54:40.831007Z); https://www.postgresql.org/docs/current/monitoring-stats.html (fetched 2026-11-03T22:54:23.273497Z); https://www.postgresql.org/docs/current/pgbench.html (fetched 2026-11-03T22:54:52.070279Z); https://www.postgresql.org/docs/current/pgstatstatements.html (fetched 2026-11-03T22:54:44.107309Z); https://www.postgresql.org/docs/current/runtime-config-logging.html (fetched 2026-11-03T22:54:42.704910Z); https://www.postgresql.org/docs/current/runtime-config-statistics.html (fetched 2026-11-03T22:54:26.134818Z); https://www.postgresql.org/docs/current/sql-explain.html (fetched 2026-11-03T22:54:24.709973Z); https://www.postgresql.org/docs/current/view-pg-locks.html (fetched 2026-11-03T22:54:39.065392Z); https://www.postgresql.org/message-id/CAPHG-0moXufhp9ssiVHE%2B83A7SyTApTxf4zMr4h7X6%2BtEDTrEQ%40mail.gmail.com (fetched 2026-11-03T22:54:53.083540Z).
- Article captured 2026-11-03T22:53:55.029383Z · SHA-256 fb1e5ca57da34ad209d10370ffe238fea4fe8d3f49055c572ad05c34a3732ff8 · Text extracted from the article's HTML.
- Policy SHA-256 6f0609b6b5e61de72f34a27008a92aa3bc42062bc5b2aa8d5c99a137b94a28b4 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not reproduce the checkout measurements or recompute their summaries from raw request logs and trace recordings.
- We did not verify the workload SQL, transaction boundaries between chunks, or stall-filter scripts.
- We did not verify the tracing implementations, host-privilege requirements, or every named dashboard's sampling implementation.
- We did not verify the PostgreSQL 18 repeat or the independent tracer diagnosis.
- We did not inspect the individual request's timeline image. We did not verify its 87% lock share or I/O durations.
- We did not check the other figures against their underlying data.
- We did not verify the 11,879 statement calls or request arrival times within 0.5 seconds after stalls.
- We did not read the conference slides or retrieve the figure-generation directory.
- We did not check inline SQL and setup instructions for syntax or runtime behavior.
- The article gives November 3, 2026, without a publication time. We list that date at midnight UTC.
- article target version: bound to the most-cited major; also named 19 (3×)
- source: postgres 18 was read at REL_18_6, its newest release when the article was published
- source: the article names no pg_wait_sampling release, so it was read at v1.1.11, the latest release when it was published
- source: we did not check the article's claims about a linked GitLab project against its source code, because we keep no copy of it
- 7 fetched pages are not listed above, because our policy does not allow linking them.
- withheld: F16 — this finding failed a check this edition requires.
- withheld: F21 — this finding failed a check this edition requires.
- withheld: F6 — this finding failed a check this edition requires.
- review: the findings were written by one model and reviewed independently by a different model.
- 8 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 2 pinned source trees, and 20 fetched pages.
- 25 survived · 0 weakened · 0 withdrawn.

## Edition changes

- F1 · recalibrated.
- F2 · recalibrated.
- F3 · recalibrated.
- F4 · recalibrated.
- F5 · recalibrated.
- F7 · recalibrated.
- F8 · recalibrated.
- F9 · recalibrated.
- F10 · recalibrated.
- F11 · recalibrated.
- F12 · recalibrated.
- F13 · recalibrated.
- F14 · recalibrated.
- F15 · recalibrated.
- F17 · recalibrated.
- F18 · recalibrated.
- F19 · recalibrated.
- F20 · recalibrated.
- F22 · recalibrated.
- F23 · recalibrated.
- F24 · recalibrated.
- F25 · recalibrated.
- F26 · recalibrated.
- F27 · recalibrated.
- F28 · recalibrated.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/22c04666-2b3e-46e2-8d9d-c19e197ffece?v=2) · this page · 2026-11-03 22:53 UTC · A · audited with v1.1.5
  Article as first submitted. 23 accurate · 0 wrong · 1 caveat.
  ElephantSeal: A. Open: central claim not checked.
  Changes: First audit. Open: F17 “Fixed sampling does not guarantee unbiased time shares” (mostly accurate).

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