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 BLimited coverageOpen: the benchmark cannot yet be rerun from what is published; the production risk is not yet fixed or warned about

Embed

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

[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.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/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.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/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.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/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/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/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/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/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/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/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/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/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/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/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6)
<a href="https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6"><img src="https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/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/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/ebdff22c-3e4b-4883-80be-af4b0d91ace6/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
   :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

Why is my Whale Query 1000x Slower in Prod? — Databases hate skew, each hates it differently - Blog (opens in new tab)

exobench.ai
Sound as far as we checked.
0
inaccuracy
0
dangerous-recipe
0
misleading
0
imprecise
0
transcription
0
aged
0
withdrawn
11
verified-accurate

Central claim not verified: choosing PostgreSQL and SQL Server remedies for joins over skewed customer orders. We could not verify this. The article gives a method to reproduce it.

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

ReportTechnical fact-check, edition 3 pgTrue versionaudited with v1.0.14 (approx.) · regraded with v1.1.3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: right-of-reply and corrections policy.

InaccuraciesNone in this edition.

Dangerous or recipe bugsNone in this edition.

Misleading / impreciseNone in this edition.

Verified accurate

F2

enable_nestloop is a user-settable planner option

ACCURATEFactual · holds up after review

Claim ledger

Article says
…One session-level setting.
What is true
src/backend/utils/misc/guc_tables.c:903-909 defines enable_nestloop as USERSET, default on. src/backend/optimizer/path/costsize.c:3281-3285 counts nested loops as disabled when it is off. doc/src/sgml/config.sgml:5765-5769 says this discourages nested loops when alternatives exist. The session-setting description holds.
Charitable reading
The article reports a hash-plan outcome for this benchmark. We checked the setting's mechanism separately from that outcome.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:5765-5769Enables or disables the query planner's use of nested-loop join plans. It is impossible to suppress nested-loop joins entirely, but turning this variable off discourages the planner from using one if there are other methods available. The default is <literal>on</literal>.
In the article · section “Postgres: one free line, 5x faster”

In the article

excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Postgres: one free line, 5x faster

One session-level setting. No schema change, no new index, no rewrite. The planner still estimated ~90 rows out of a join that produced 720,000, so the estimate was just as wrong, but the hash plan doesn't care. It scans order_items once sequentially across a few parallel workers and builds a hash table, instead of doing 720,000 random index probes. The nested-loop plan's cost scales with the number of probes, so a 3,000x underestimate is catastrophic. The hash plan's cost is dominated by a single scan, so the outrageous row-estimate doesn't do anything. Buffer traffic collapsed 230x. The lever was the join strategy, and forbidding the bad algorithm cost exactly one line.

All sources and excerpts · 3
Evidence Enables or disables the query planner's use of nested-loop join plans. It is impossible to suppress nested-loop joins entirely, but turning this variable off discourages the planner from using one if there are other methods available. The default is <literal>on</literal>.
Evidence {"enable_nestloop", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of nested-loop join plans."), NULL, GUC_EXPLAIN }, &enable_nestloop, true,
Evidence /* Count up disabled nodes. */ disabled_nodes = enable_nestloop ? 0 : 1; disabled_nodes += inner_path->disabled_nodes; disabled_nodes += outer_path->disabled_nodes;
How the review tested this

Review: We tested whether the finding promises a hash join. It verifies only the session setting. The source confirms USERSET and discouragement of nested loops. We tested whether the finding promises a forced hash join. It does not. USERSET and the documented discouragement mechanism support its narrower session-setting conclusion.

F3

CREATE STATISTICS does not supply join selectivity estimates

ACCURATEFactual · holds up after review

Claim ledger

Article says
Postgres extended statistics ( CREATE STATISTICS ) won't save you…
What is true
doc/src/sgml/ref/create_statistics.sgml:176-178 states that extended statistics do not support table-join selectivity estimation. CREATE STATISTICS cannot directly encode the article's customer-tier-to-order-fan-out relationship across two tables.
Charitable reading
The claim concerns this cross-table relationship, not every use of extended statistics.

Source

Source · REL_18_6 · doc/src/sgml/ref/create_statistics.sgml:176-178Extended statistics are not currently used by the planner for selectivity estimations made for table joins. This limitation will likely be removed in a future version of <productname>PostgreSQL</productname>.
In the article · section “Why both planners walk into the same wall”

In the article

excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Why both planners walk into the same wall

This is not a tuning problem. It's structural, and it's present in essentially every cost-based optimizer that relies on per-table column statistics. Postgres extended statistics ( CREATE STATISTICS ) won't save you because the correlation is across the join, not within one table. SQL Server filtered statistics have the same ceiling. Both engines miss by roughly the same 2,400–3,000x and pick the same fragile plan.

All sources and excerpts · 1
Evidence Extended statistics are not currently used by the planner for selectivity estimations made for table joins. This limitation will likely be removed in a future version of <productname>PostgreSQL</productname>.
How the review tested this

Review: We tested whether the finding excludes useful within-table statistics. Its conclusion concerns direct cross-table estimation. The documentation states that limitation. We checked whether the finding excludes valid same-table statistics uses. Its conclusion concerns cross-table selectivity. The documentation explicitly states that limitation.

F4

Ordinary nested-loop cost includes repeated inner scans

ACCURATEFactual · holds up after review

Claim ledger

Article says
The nested-loop plan's cost scales with the number of probes…
What is true
src/backend/optimizer/path/costsize.c:3322-3328 adds inner_rescan_run_cost for each additional outer row. Underestimating outer rows can underprice repeated index probes. The article's basic nested-loop cost explanation holds.
Charitable reading
The claim describes ordinary nested-loop probes, not a universal cost formula for every specialized nested-loop plan.

Source

Source · REL_18_6 · src/backend/optimizer/path/costsize.c:3322-3328else { /* Normal case; we'll scan whole input rel for each outer row */ run_cost += inner_run_cost; if (outer_path_rows > 1) run_cost += (outer_path_rows - 1) * inner_rescan_run_cost; }
In the article · section “Postgres: one free line, 5x faster”

In the article

excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Postgres: one free line, 5x faster

One session-level setting. No schema change, no new index, no rewrite. The planner still estimated ~90 rows out of a join that produced 720,000, so the estimate was just as wrong, but the hash plan doesn't care. It scans order_items once sequentially across a few parallel workers and builds a hash table, instead of doing 720,000 random index probes. The nested-loop plan's cost scales with the number of probes, so a 3,000x underestimate is catastrophic. The hash plan's cost is dominated by a single scan, so the outrageous row-estimate doesn't do anything. Buffer traffic collapsed 230x. The lever was the join strategy, and forbidding the bad algorithm cost exactly one line.

All sources and excerpts · 1
Evidence else { /* Normal case; we'll scan whole input rel for each outer row */ run_cost += inner_run_cost; if (outer_path_rows > 1) run_cost += (outer_path_rows - 1) * inner_rescan_run_cost; }
How the review tested this

Review: We checked for an unsupported universal cost formula. The finding specifies ordinary nested loops. E-14 multiplies rescan cost by additional outer rows. We checked whether specialized nested loops invalidate this conclusion. The finding limits itself to ordinary repeated scans. The source multiplies rescan cost by additional outer rows.

F5

Verified accurate: “…SELECT query, calls, mean_exec_time FROM pg_stat_statements…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…SELECT query, calls, mean_exec_time FROM pg_stat_statements…
What is true
REL_18_6 contrib/pg_stat_statements/pg_stat_statements--1.7--1.8.sql:15-34 defines function outputs query, calls, and mean_exec_time. doc/src/sgml/pgstatstatements.sgml:235-238 defines mean_exec_time in milliseconds. These citations support the selected output names and timing unit.

Source

Source · REL_18_6 · doc/src/sgml/pgstatstatements.sgml:235-238 <structfield>mean_exec_time</structfield> <type>double precision</type> </para> <para> Mean time spent executing the statement, in milliseconds
In the article · section “Try this on your own skewed table”

In the article

excerpt · section “Try this on your own skewed table” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Try this on your own skewed table

-- Postgres SELECT query, calls, mean_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 5 ;
All sources and excerpts · 3
Evidence <structfield>mean_exec_time</structfield> <type>double precision</type> </para> <para> Mean time spent executing the statement, in milliseconds
EvidenceCREATE FUNCTION pg_stat_statements(IN showtext boolean, OUT userid oid, OUT dbid oid, OUT queryid bigint, OUT query text, OUT plans int8, OUT total_plan_time float8, OUT min_plan_time float8, OUT max_plan_time float8, OUT mean_plan_time float8, OUT stddev_plan_time float8, OUT calls int8, OUT total_exec_time float8, OUT min_exec_time float8, OUT max_exec_time float8, OUT mean_exec_time float8, OUT stddev_exec_time float8, OUT rows int8, OUT shared_blks_hit int8, OUT shared_blks_read int8,
EvidenceSELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replaceable> [, ...] ) ] ] [ { * | <replaceable class="parameter">expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] } [, ...] ] [ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ] [ WHERE <replaceable class="parameter">condition</replaceable> ] [ GROUP BY [ ALL | DISTINCT ] <replaceable class="parameter">grouping_element</replaceable> [, ...] ]
How the review tested this

Review: The source confirms the output names and timing unit. E-5 omits ORDER BY and LIMIT. E-20 omits their syntax. The complete article query supports the ranking description, but the recorded citations do not cover that verification.

F6

PostgreSQL estimates append children separately

ACCURATEFactual · holds up after review

Claim ledger

Article says
…the optimizer estimates each branch separately…
What is true
src/backend/optimizer/path/allpaths.c:1145-1151 computes each append child's size. Lines 1177-1181 add child row estimates to the parent estimate. Separate branch estimation holds. The claimed accuracy of this benchmark's UNION ALL plan remains unverified.
Charitable reading
Separate branch estimation does not guarantee accurate branch estimates.

Source

Source · REL_18_6 · src/backend/optimizer/path/allpaths.c:1145-1151 /* * Compute the child's size. */ set_rel_size(root, childrel, childRTindex, childRTE); /*
In the article · section “Even the "proper" fix Does Not Transfer”

In the article

excerpt · section “Even the "proper" fix Does Not Transfer” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Even the "proper" fix Does Not Transfer

The mechanism is identical on both engines. Honest statistics produce an honest estimate, and an honest estimate produces a good plan. (And the UNION ALL doesn't reintroduce the blowup, because the optimizer estimates each branch separately and both branches now have clean single-class statistics.) But "fix the cause" is only the best fix when the bad estimate was the binding constraint. On SQL Server it was, so the cause-fix is supreme. On Postgres the bad estimate only caused a recoverable algorithm choice, so the cheap symptom-fix dominates the expensive cause-fix. Same skew, same correct theory, opposite economics.

All sources and excerpts · 2
Evidence /* * Compute the child's size. */ set_rel_size(root, childrel, childRTindex, childRTE); /*
Evidence Assert(childrel->rows > 0); parent_tuples += childrel->tuples; parent_rows += childrel->rows; parent_size += childrel->reltarget->width * childrel->rows;
How the review tested this

Review: We tested whether separate estimation proves accurate estimates. The finding expressly withholds that conclusion. The code computes child sizes and sums their row estimates. We tested whether separate estimation proves accurate estimates or equivalent query results. The finding expressly leaves those unverified. The source computes child sizes and sums their row estimates.

F7

Verified accurate: “…CREATE TABLE customers (id INT PRIMARY KEY , name TEXT , tier TEXT );…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…CREATE TABLE customers (id INT PRIMARY KEY , name TEXT , tier TEXT );…
What is true
The customers declaration uses typed columns and a column primary key. REL_18_6 doc/src/sgml/ref/create_table.sgml:2035-2053 demonstrates that declaration structure. doc/src/sgml/ref/select.sgml:36-40 documents SELECT, FROM, WHERE, and GROUP BY. These excerpts support those structures, rather than validating the complete three-table aggregate.

Source

Source · REL_18_6 · doc/src/sgml/ref/create_table.sgml:2035-2053CREATE TABLE films ( code char(5) CONSTRAINT firstkey PRIMARY KEY, title varchar(40) NOT NULL, did integer NOT NULL, date_prod date, kind varchar(10), len interval hour to minute );
In the article · section “The harmless whale query that Will Eat You”

In the article

excerpt · section “The harmless whale query that Will Eat You” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

The harmless whale query that Will Eat You

-- Schema CREATE TABLE customers (id INT PRIMARY KEY , name TEXT , tier TEXT ); CREATE TABLE orders (id INT PRIMARY KEY , customer_id INT , total NUMERIC ); CREATE TABLE order_items (id INT PRIMARY KEY , order_id INT , quantity INT , unit_price NUMERIC );
SELECT c . tier , COUNT ( * ), SUM ( oi . quantity * oi . unit_price ) FROM customers c JOIN orders o ON o . customer_id = c . id JOIN order_items oi ON oi . order_id = o . id WHERE c . tier = 'enterprise' GROUP BY c . tier
All sources and excerpts · 2
EvidenceCREATE TABLE films ( code char(5) CONSTRAINT firstkey PRIMARY KEY, title varchar(40) NOT NULL, did integer NOT NULL, date_prod date, kind varchar(10), len interval hour to minute );
EvidenceSELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replaceable> [, ...] ) ] ] [ { * | <replaceable class="parameter">expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] } [, ...] ] [ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ] [ WHERE <replaceable class="parameter">condition</replaceable> ] [ GROUP BY [ ALL | DISTINCT ] <replaceable class="parameter">grouping_element</replaceable> [, ...] ]
How the review tested this

Review: We checked the complete schema and query for undeclared columns. They match. However, E-7 records only customers. E-19 demonstrates declarations, and E-20 lists broad SELECT clauses. Those citations do not establish the complete aggregate query's validity.

F11

The displayed PostgreSQL timings support the 5.1× speedup

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Execution time 1,572 ms 309 ms…
What is true
The displayed timings imply a 5.09× speedup (derived: 1,572 ms / 309 ms). Rounding to 5.1× is correct.
Charitable reading
The reported 5.1× figure rounds the displayed timing ratio.

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

In the article · section “Postgres: one free line, 5x faster”

In the article

excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Postgres: one free line, 5x faster

Postgres Nested loop (default) Hash join ( SET enable_nestloop = off ) Execution time 1,572 ms 309 ms Buffer hits ~1,945,000 ~8,500 Speedup baseline 5.1x
How the review tested this

Review: We recalculated 1,572 ms divided by 309 ms. The result rounds to 5.1×. The finding verifies arithmetic only. We recalculated the ratio: 1,572 ms / 309 ms = 5.087. The stated 5.1× follows by rounding. The finding does not independently validate either timing.

F12

The displayed buffer counts support the approximately 230× reduction

ACCURATEFactual · holds up after review

Claim ledger

Article says
…~1,945,000 ~8,500…
What is true
The displayed buffer-hit counts imply a 229× reduction (derived: 1,945,000 hits / 8,500 hits). Approximately 230× is correct.
Charitable reading
Both buffer counts are approximate. A two-significant-figure reduction factor is appropriate.

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

In the article · section “Postgres: one free line, 5x faster”

In the article

excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Postgres: one free line, 5x faster

Postgres Nested loop (default) Hash join ( SET enable_nestloop = off ) Execution time 1,572 ms 309 ms Buffer hits ~1,945,000 ~8,500 Speedup baseline 5.1x
How the review tested this

Review: We recalculated the buffer-hit ratio as 228.8×. Approximately 230× is supported. The finding does not equate buffer hits with physical reads. We recalculated 1,945,000 hits / 8,500 hits = 228.8. Approximately 230× fits the approximate inputs. The finding restricts its conclusion to displayed buffer-hit arithmetic.

F13

The table-split comparison correctly calculates 70 ms and 22%

ACCURATEFactual · holds up after review

Claim ledger

Article says
…391ms, which is 22% slower…
What is true
The split takes 70 ms longer (derived: 391 ms − 321 ms). That increase is 21.8% of the setting's runtime (derived: 70 ms / 321 ms). The article correctly rounds this to 22%.
Charitable reading
The comparison uses the explicitly stated 321 ms run rather than the separate 309 ms run.

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

In the article · section “Even the "proper" fix Does Not Transfer”

In the article

excerpt · section “Even the "proper" fix Does Not Transfer” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Even the "proper" fix Does Not Transfer

On Postgres the split loses (by a bit). The fair UNION ALL reconstruction is 391ms, which is 22% slower than the free SET enable_nestloop = off (321ms) and it costs you a full schema redesign: two order tables, a UNION ALL on every cross-tier query, write routing for new orders, and physically moving rows when a customer changes tier. Postgres never had the deep problem. Its only mistake was picking a nested loop over a hash join, and you can revoke that for free. Reaching for a table split here is cargo-culting a SQL-Server-shaped solution onto an engine that didn't need it.

How the review tested this

Review: We checked the denominator against the separate 309 ms observation. This passage explicitly uses 321 ms. Its 70 ms difference rounds to 22%. We tested the alternate 309 ms denominator. This passage explicitly uses 321 ms. The difference is 70 ms, or 21.8%, which rounds to 22%.

F14

The displayed join counts support approximately 2,400×–3,000× underestimates

ACCURATEFactual · holds up after review

Claim ledger

Article says
…234 → 720,127 ( ~3,000x under ) 298 → 719,417 ( ~2,400x under )…
What is true
PostgreSQL's factor is approximately 3,080× (derived: 720,127 rows / 234 estimated rows). SQL Server's factor is approximately 2,410× (derived: 719,417 rows / 298 estimated rows). The stated approximate factors match.
Charitable reading
The article rounds the two engines' underestimate factors rather than asserting identical ratios.

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

In the article · section “Why both planners walk into the same wall”

In the article

excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Why both planners walk into the same wall

Plan node Postgres est → actual SQL Server est → actual Customer filter ( tier = 'enterprise' ) 13 → 10 (fine) 10 → 10 (exact) Orders join (per enterprise customer) 75 → 39,993 16.5 → 399,669 Top join into order_items 234 → 720,127 ( ~3,000x under ) 298 → 719,417 ( ~2,400x under )
How the review tested this

Review: We recalculated both factors: 3,077× and 2,414×. The article presents approximate values. The finding does not independently validate plan counters. We recalculated both underestimate factors: 3,077× for PostgreSQL and 2,414× for SQL Server. The approximate 3,000× and 2,400× descriptions hold.

F15

The uniform-control appendix correctly rounds its PostgreSQL ratios

ACCURATEFactual · holds up after review

Claim ledger

Article says
…~178 ~720,127 ~4,000x…
What is true
Joined rows increase approximately 4,050× (derived: 720,127 rows / 178 rows). PostgreSQL runtime increases approximately 1,120× (derived: 1,572 ms / 1.4 ms). The appendix's approximate ratios match these calculations.
Charitable reading
The appendix rounds observed row-count and runtime ratios.

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

In the article · section “Try this on your own skewed table”

In the article

excerpt · section “Try this on your own skewed table” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Try this on your own skewed table

Metric Uniform Skewed Ratio Enterprise share of orders ~0.02% 80% — Rows through top join ~178 ~720,127 ~4,000x Postgres exec time 1.4 ms 1,572 ms ~1,120x SQL Server elapsed 1 ms 2,340 ms ~2,340x SQL Server fetch logical reads 457 ~2,071,690 ~4,500x Top-join estimate error ~2x ~3,000x —
How the review tested this

Review: We recalculated 4,046× for rows and 1,123× for runtime. The displayed approximations hold. The finding verifies no causal claim about the control. We recalculated 720,127 rows / 178 rows = 4,046× and 1,572 ms / 1.4 ms = 1,123×. Both displayed approximate ratios follow. Measurement validity remains outside this finding.

Notes

4 not graded: findings no reader would act on differently
F1

Note: “…the 10 whales get smeared into the same per-key density…”

NOTEpartly holds after review

Claim ledger

Article says
…the 10 whales get smeared into the same per-key density…
What is true
PostgreSQL can retain frequent-key frequencies in MCV lists. selfuncs.c:2468-2476 uses matching lists when both inputs have them. planstats.sgml:149-152 distinguishes MCVs from histograms. These facts correct the statistics description. They do not resolve the cross-table correlation that the article identifies or establish that its table split wastes work.
So what
Inspect pg_stats.most_common_vals and most_common_freqs for orders.customer_id before splitting orders or increasing statistics targets.

Source

Source · REL_18_6 · src/backend/utils/adt/selfuncs.c:2468-2476if (have_mcvs1 && have_mcvs2) { /* * We have most-common-value lists for both relations. Run through * the lists to see which MCVs actually join to each other with the * given operator. This allows us to determine the exact join * selectivity for the portion of the relations represented by the MCV * lists. We still have to estimate for the remaining population, but * in a skewed distribution this gives us a big leg up in accuracy.

Not graded: no reader would act differently on it.

In the article · section “Why both planners walk into the same wall”

In the article

excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Why both planners walk into the same wall

The leaf scans are accurate. The joins explode. That signature, accurate leaves and exploding joins, is the fingerprint of join-crossing correlation , and it's distinct from a stale-statistics problem where the leaf would be wrong too. Neither engine's statistics model the correlation between a customer's tier and its order count, because that correlation lives across a join boundary. A single-column histogram on orders.customer_id is averaged over all 50,000 customers, so the 10 whales get smeared into the same per-key density as the 49,990 minnows. The estimator isn't buggy. It's faithfully extrapolating from a statistic that physically cannot express the thing you need it to know.

All sources and excerpts · 2
Evidence if (have_mcvs1 && have_mcvs2) { /* * We have most-common-value lists for both relations. Run through * the lists to see which MCVs actually join to each other with the * given operator. This allows us to determine the exact join * selectivity for the portion of the relations represented by the MCV * lists. We still have to estimate for the remaining population, but * in a skewed distribution this gives us a big leg up in accuracy.
Evidence <function>eqsel</function>. For equality estimation the histogram is not useful; instead the list of <firstterm>most common values</firstterm> (<acronym>MCV</acronym>s) is used to determine the selectivity. Let's have a look at the MCVs, with some additional columns
How the review tested this

Review: The article correctly identifies cross-table correlation. E-8 requires MCV lists on both sides. Neither citation establishes that inspecting existing statistics would avoid the proposed table split. The terminology correction survives, but the claimed wasted work does not. We checked whether MCV support defeats the article's diagnosis. E-8 requires lists on both relations. Neither source establishes that inspecting MCVs avoids splitting orders. The article already identifies the cross-table correlation limitation. The claimed wasted work exceeds the evidence.

F8

Linked pages disagree about SQL Server availability

NOTEholds up after review

Claim ledger

Article says
…spins up real Postgres and Azure SQL instances…
What is true
The architecture documentation lists SQL Server as coming soon. The homepage lists SQL Server among supported databases. Neither page verifies the article's Azure SQL benchmark runs. We cannot establish which page reflects availability at publication.
Charitable reading
SQL Server support may have shipped before the architecture documentation changed.

Source

Source · https://exobench.ai/docs/01-getting-started/02-how-it-worksSQL Server — Coming soon.

Not graded: no reader would act differently on it.

In the article · section “The harmless whale query that Will Eat You”

In the article

excerpt · section “The harmless whale query that Will Eat You” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

The harmless whale query that Will Eat You

I didn't write a line of benchmark code for any of this. ExoBench is an MCP server I built which spins up real Postgres and Azure SQL instances, generates the synthetic data at the distribution you ask for, runs the query, and hands back the actual execution plans. Every number below is QueryTimeStats.ElapsedTime from the SQL Server plan XML or the root-operator actual time from a Postgres EXPLAIN ANALYZE . Nothing here is guessed from documentation. I'll quote my follow-up prompts inline, in boxes like the one above. they are verbatim, typos preserved, so you can see the exact shape of each request that drove the next run.

All sources and excerpts · 2
EvidenceSQL Server — Coming soon.
EvidenceSupported Databases ExoBench works with the databases you already use. PostgreSQL SQLite MySQL SQL Server
How the review tested this

Review: We tested the possibility of stale documentation. The note already allows it and makes no charge against the measurements. Both external quotations match. We tested whether stale documentation disproves the benchmark runs. The finding makes no such claim. Both external quotations match, and the note preserves uncertainty about availability at publication.

F9

SQL Server's per-customer row label conflicts with the workload

NOTEholds up after review

Claim ledger

Article says
…Orders join (per enterprise customer) 75 → 39,993 16.5 → 399,669…
What is true
The stated workload averages 40,000 orders per enterprise customer (derived: 400,000 orders / 10 customers). The table labels 399,669 orders as per customer. That figure approximates the entire enterprise population. The table must distinguish total rows from per-customer rows.
Charitable reading
SQL Server may report a total while PostgreSQL reports a per-loop count. The shared per-customer label does not distinguish them.

Not graded: knowing this would not change what a reader does.

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

In the article · section “Why both planners walk into the same wall”

In the article

excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Why both planners walk into the same wall

Plan node Postgres est → actual SQL Server est → actual Customer filter ( tier = 'enterprise' ) 13 → 10 (fine) 10 → 10 (exact) Orders join (per enterprise customer) 75 → 39,993 16.5 → 399,669 Top join into order_items 234 → 720,127 ( ~3,000x under ) 298 → 719,417 ( ~2,400x under )
How the review tested this

Review: We tested total-row versus per-loop reporting. That explains the number but leaves the shared per-customer label inconsistent. The note avoids alleging incorrect measurements. We considered total-versus-per-loop reporting. That explains the likely origin but does not repair the shared per-customer label. Dividing 400,000 orders among 10 customers gives 40,000 orders per customer.

F10

The stated no-index timing range excludes the slowest listed hint

NOTEholds up after review

Claim ledger

Article says
The entire no-index option space spans 2,007ms to 2,651ms.
What is true
The listed no-index attempts span 2,007 ms to 5,266 ms. The prose gives 2,651 ms as the upper bound. Forced HASH JOIN accounts for the omitted 5,266 ms endpoint.
Charitable reading
The range could summarize alternatives after rejecting the naive hash plan. The word entire also includes that listed attempt.

Not graded: knowing this would not change what a reader does.

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

In the article · section “SQL Server: The Quagmire where every Hint Hits a Wall”

In the article

excerpt · section “SQL Server: The Quagmire where every Hint Hits a Wall” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

SQL Server: The Quagmire where every Hint Hits a Wall

The entire no-index option space spans 2,007ms to 2,651ms. The best result that left the access path alone was 2,007ms, a 13% improvement that still couldn't cross the 2,000ms line. Every single lever hit the same wall, because every one of them still had to perform the same ~720,000-row, ~2-million-logical-read fetch to retrieve quantity and unit_price . No join hint, no estimator override, no join order, no memory grant tweak, no batch-mode toggle, and no query rewrite removes that fetch. It's baked into the access path.

How the review tested this

Review: We tested whether the range excludes the rejected naive attempt. The article says entire and lists that attempt. A numerical note remains justified. We considered excluding the rejected naive hash attempt. The article says the range covers the entire option space. Its listed 5,266 ms attempt exceeds the stated upper endpoint.

More in this report

Section checks · 7 sections

Section checks

AspectGradeFindingsCoverage
Benchmark setupA1 verified-accurate100% of claims (11 of 11, plus 3 that need data we do not have)
Cardinality diagnosisA2 verified-accurate100% of claims (5 of 5, plus 16 that need data we do not have)
Postgres join settingA4 verified-accurate100% of claims (4 of 4, plus 9 that need data we do not have)
SQL Server hintsAnoneno checkable claims
Splitting ordersA2 verified-accurate66% of claims (2 of 3, plus 13 that need data we do not have)
Finding a candidate queryA1 verified-accurate100% of claims (2 of 2, plus 1 that need data we do not have)
Uniform control appendixA1 verified-accurate100% of claims (2 of 2, plus 1 that need data we do not have)
Coverage and assessment · Checked 30 of 31 Postgres claims across 13 sections

Central claim not verified. We checked PostgreSQL mechanisms and displayed arithmetic, but did not verify the SQL Server mechanisms or comparative optimization results.

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

What we did not check

  • We did not verify the displayed execution plans, timings, buffer counts, or generated data distributions.
  • We did not check whether the split-table query preserves results because the article omits that query.
  • We did not check the SQL Server optimizer mechanisms or tuning recipes.
  • We did not reproduce the measurements the article displays.
  • We did not independently verify the article's execution plans, generated data, platform configurations, or benchmark measurements.
  • We could check only 4 distinct pages cited by the article.
  • We did not establish when SQL Server support became available or which database versions the benchmarks used.
  • We did not verify the article's PostgreSQL statistics explanations or SQL Server optimizer mechanisms.
  • We did not independently verify the displayed timings, row counts, buffer counts, or execution plans.
  • We did not read all numerical values from the scale charts.
  • We did not check the PostgreSQL index-type inventory or the planner explanations.
  • We could not decide whether readers can obtain the benchmark environment.
  • We could not decide whether the published benchmark details are complete.
Checked 30 of 31 Postgres claims across 13 sections
  • Summary: 2 of 2 Postgres claims checked, plus 5 that need data we do not have; not counted: 6 product or opinion, 1 duplicate, 3 not a claim
  • Benchmark setup: 11 of 11 Postgres claims checked, plus 3 that need data we do not have; not counted: 12 product or opinion, 4 duplicate, 3 not a claim
  • Uniform control: 9 claims are the author's own account; nothing checkable; not counted: 4 product or opinion, 1 not a claim
  • Cardinality diagnosis: 5 of 5 Postgres claims checked, plus 16 that need data we do not have; not counted: 6 product or opinion, 2 duplicate, 1 not a claim
  • Postgres join setting: 4 of 4 Postgres claims checked, plus 9 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 3 not a claim; not checked: 1 for other reasons
  • SQL Server hints: no checkable claims; not counted: 23 product or opinion, 3 duplicate, 3 not a claim
  • Covering index and batch mode: 2 claims are the author's own account; nothing checkable; not counted: 14 product or opinion, 1 duplicate, 2 not a claim
  • Splitting orders: 2 of 3 Postgres claims checked, plus 13 that need data we do not have; not counted: 11 product or opinion, 1 duplicate, 2 not a claim; not checked: 1 for other reasons
  • Limitations: 3 claims are the author's own account; nothing checkable; not counted: 16 product or opinion, 1 duplicate, 1 not a claim
  • Finding a candidate query: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 4 product or opinion, 3 not a claim
  • Full scoreboards: 2 of 2 Postgres claims checked, plus 5 that need data we do not have; not counted: 7 product or opinion, 5 duplicate, 1 not a claim
  • Uniform control appendix: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 5 product or opinion, 2 duplicate, 1 not a claim
  • Product invitation: no checkable claims; not counted: 2 product or opinion, 3 not a claim

Average of 5 axes: 3.46 · benchmark not reproducible, one step off (no hardware) · result B

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 B. Factual A · 0 wrong of 11 checked · 0 caveats. Applicable A · 0 wrong of 4 checked · 0 caveats. Consistent A · 0 wrong of 11 checked · 0 caveats. Transparent C · 0 wrong of 7 checked · 0 caveats · reproducibility: C (no hardware). Safe B+ · 0 wrong of 5 checked · 0 caveats · 1 unwarned risk. A 0 wrong of 11 checked · 0 caveatsFactual A0 wrong of 110 caveats A 0 wrong of 4 checked · 0 caveatsApplicable A0 wrong of 40 caveats A 0 wrong of 11 checked · 0 caveatsConsistent A0 wrong of 110 caveats C 0 wrong of 7 checked · 0 caveats reproducibility: C (no hardware)Transparent C0 wrong of 70 caveatsreproducibility: C(no hardware) B+ 0 wrong of 5 checked · 0 caveats 1 unwarned riskSafe B+0 wrong of 50 caveats1 unwarned risk B

By topic: Benchmark setup — 1 finding, 0 wrong · Cardinality diagnosis — 2 findings, 0 wrong · Postgres join setting — 4 findings, 0 wrong · Splitting orders — 2 findings, 0 wrong · Finding a candidate query — 1 finding, 0 wrong · Uniform control appendix — 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 11 claims, 6 commands scanned.

AxisLetterWrongCaveatsCheckedCoverage
FactualA0011assessed: A · 0 wrong of 11 checked · 0 caveats
ApplicableA004assessed: A · 0 wrong of 4 checked · 0 caveats
ConsistentA0011assessed: A · 0 wrong of 11 checked · 0 caveats
TransparentC007assessed: C · 0 wrong of 7 checked · 0 caveats · reproducibility: C (no hardware)
SafeB+005assessed: B+ · 0 wrong of 5 checked · 0 caveats · 1 unwarned risk

Safe. Recommended for production with no warning about data loss, downtime or a missing prerequisite: “The enterprise customers get enterprise_orders , everyone else gets regular_orders , and now the histogram on enterprise_orders.customer_id describes only the ten whales, so its average really is ~40,000 orders per customer instead of being drowned by 49,990 minnows.”

Topics · 7 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Benchmark setup0 issues 1 checked F70 issues 1 checked0 issues 1 checked
Cardinality diagnosis0 issues 2 checked F3 F140 issues 1 checked0 issues 2 checked0 issues 2 checked
Postgres join setting0 issues 4 checked F2 F4 F11 F120 issues 4 checked0 issues 2 checked
SQL Server hints
Splitting orders0 issues 2 checked F6 F130 issues 1 checked0 issues 2 checked0 issues 1 checked
Finding a candidate query0 issues 1 checked F50 issues 1 checked0 issues 1 checked
Uniform control appendix0 issues 1 checked F150 issues 1 checked0 issues 1 checked0 issues 1 checked

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

Revisions: 2 · B -> B

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

  1. Revision 1 · 2026-10-13 01:02 UTC · B · audit version not recorded · regrade version not recorded

    Article as first submitted. 5 accurate · 1 wrong · 5 caveats.

    ElephantSeal: B. Open: the central claim is not yet backed by evidence.

    Changes: First audit. Open: F7 “The no-index results extend to 5,266 ms” (false); F1 “…the 10 whales get smeared into the same per-key density as the 49,990 minnows.” (mostly accurate); F2 “enable_nestloop=off discourages nested loops rather than forbidding them” (mostly accurate); F6 “…spins up real Postgres and Azure SQL instances…” (mostly accurate); F8 “…every one of them still had to perform the same ~720,000-row, ~2-million-logical-read fetch…” (mostly accurate); F9 “The SQL Server orders-join count conflicts with the per-customer heading” (mostly accurate).

  2. Revision 2 · this page · 2026-10-19 08:06 UTC · B · audited with v1.0.14 (approx.) · regraded with v1.1.3

    Same article text, re-audited. 11 accurate · 0 wrong · 0 caveats.

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published; the production risk is not yet fixed or warned about.

    Changes: No longer reported: “The no-index results extend to 5,266 ms”; “…the 10 whales get smeared into the same per-key density as the 49,990 minnows.”; “enable_nestloop=off discourages nested loops rather than forbidding them”; “…spins up real Postgres and Azure SQL instances…”; “…every one of them still had to perform the same ~720,000-row, ~2-million-logical-read fetch…”; “The SQL Server orders-join count conflicts with the per-customer heading”. New: none.

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: Why is my Whale Query 1000x Slower in Prod? — Databases hate skew, each hates it differently - Blog

Article title: Why is my Whale Query 1000x Slower in Prod? — Databases hate skew, each hates it differently - Blog
Article URL: https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod
Report URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6
Audited revision: 2 of 2, 2026-10-19 08:06:21 UTC
Overall letter: B

## Axes

- Factual: A · 0 wrong · 11 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 4 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 11 checked · 0 caveats · assessed
- Transparent: C · 0 wrong · 7 checked · 0 caveats · assessed
- Safe: B+ · 0 wrong · 5 checked · 0 caveats · assessed

ElephantSeal: B.
Open conditions: the benchmark cannot yet be rerun from what is published; the production risk is not yet fixed or warned about.

## Report metadata

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

## Findings needing a change (0)

None.

## Verified accurate claims (11)

### F2 · Accurate · Factual · enable_nestloop is a user-settable planner option
Location: excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=One%20session%2Dlevel%20setting.)
Article says:
```text
…One session-level setting.
```
What is true:
src/backend/utils/misc/guc_tables.c:903-909 defines enable_nestloop as USERSET, default on. src/backend/optimizer/path/costsize.c:3281-3285 counts nested loops as disabled when it is off. doc/src/sgml/config.sgml:5765-5769 says this discourages nested loops when alternatives exist. The session-setting description holds.
Charitable reading:
The article reports a hash-plan outcome for this benchmark. We checked the setting's mechanism separately from that outcome.
Review: We tested whether the finding promises a hash join. It verifies only the session setting. The source confirms USERSET and discouragement of nested loops. We tested whether the finding promises a forced hash join. It does not. USERSET and the documented discouragement mechanism support its narrower session-setting conclusion.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:5765-5769](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L5765-L5769)
  Excerpt:
  ```text
  Enables or disables the query planner's use of nested-loop join
        plans. It is impossible to suppress nested-loop joins entirely,
        but turning this variable off discourages the planner from using
        one if there are other methods available. The default is
        <literal>on</literal>.
  ```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:903-909](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L903-L909)
  Excerpt:
  ```text
  {"enable_nestloop", PGC_USERSET, QUERY_TUNING_METHOD,
			gettext_noop("Enables the planner's use of nested-loop join plans."),
			NULL,
			GUC_EXPLAIN
		},
		&enable_nestloop,
		true,
  ```
- [REL_18_6 · src/backend/optimizer/path/costsize.c:3281-3285](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/path/costsize.c#L3281-L3285)
  Excerpt:
  ```text
  /* Count up disabled nodes. */
	disabled_nodes = enable_nestloop ? 0 : 1;
	disabled_nodes += inner_path->disabled_nodes;
	disabled_nodes += outer_path->disabled_nodes;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F2

### F3 · Accurate · Factual · CREATE STATISTICS does not supply join selectivity estimates
Location: excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=Postgres%20extended%20statistics%20%28%20CREATE%20STATISTICS%20%29%20won%27t%20save%20you)
Article says:
```text
Postgres extended statistics ( CREATE STATISTICS ) won't save you…
```
What is true:
doc/src/sgml/ref/create_statistics.sgml:176-178 states that extended statistics do not support table-join selectivity estimation. CREATE STATISTICS cannot directly encode the article's customer-tier-to-order-fan-out relationship across two tables.
Charitable reading:
The claim concerns this cross-table relationship, not every use of extended statistics.
Review: We tested whether the finding excludes useful within-table statistics. Its conclusion concerns direct cross-table estimation. The documentation states that limitation. We checked whether the finding excludes valid same-table statistics uses. Its conclusion concerns cross-table selectivity. The documentation explicitly states that limitation.

Sources:
- [REL_18_6 · doc/src/sgml/ref/create_statistics.sgml:176-178](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_statistics.sgml#L176-L178)
  Excerpt:
  ```text
  Extended statistics are not currently used by the planner for selectivity
   estimations made for table joins.  This limitation will likely be removed
   in a future version of <productname>PostgreSQL</productname>.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F3

### F4 · Accurate · Factual · Ordinary nested-loop cost includes repeated inner scans
Location: excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=The%20nested%2Dloop%20plan%27s%20cost%20scales%20with%20the%20number%20of%20probes)
Article says:
```text
The nested-loop plan's cost scales with the number of probes…
```
What is true:
src/backend/optimizer/path/costsize.c:3322-3328 adds inner_rescan_run_cost for each additional outer row. Underestimating outer rows can underprice repeated index probes. The article's basic nested-loop cost explanation holds.
Charitable reading:
The claim describes ordinary nested-loop probes, not a universal cost formula for every specialized nested-loop plan.
Review: We checked for an unsupported universal cost formula. The finding specifies ordinary nested loops. E-14 multiplies rescan cost by additional outer rows. We checked whether specialized nested loops invalidate this conclusion. The finding limits itself to ordinary repeated scans. The source multiplies rescan cost by additional outer rows.

Sources:
- [REL_18_6 · src/backend/optimizer/path/costsize.c:3322-3328](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/path/costsize.c#L3322-L3328)
  Excerpt:
  ```text
  else
	{
		/* Normal case; we'll scan whole input rel for each outer row */
		run_cost += inner_run_cost;
		if (outer_path_rows > 1)
			run_cost += (outer_path_rows - 1) * inner_rescan_run_cost;
	}
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F4

### F5 · Accurate · Factual · Verified accurate: “…SELECT query, calls, mean_exec_time FROM pg_stat_statements…”
Location: excerpt · section “Try this on your own skewed table” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=SELECT%20query%2C%20calls%2C%20mean_exec_time%20FROM%20pg_stat_statements)
Article says:
```text
…SELECT query, calls, mean_exec_time FROM pg_stat_statements…
```
What is true:
REL_18_6 contrib/pg_stat_statements/pg_stat_statements--1.7--1.8.sql:15-34 defines function outputs query, calls, and mean_exec_time. doc/src/sgml/pgstatstatements.sgml:235-238 defines mean_exec_time in milliseconds. These citations support the selected output names and timing unit.
Review: The source confirms the output names and timing unit. E-5 omits ORDER BY and LIMIT. E-20 omits their syntax. The complete article query supports the ranking description, but the recorded citations do not cover that verification.

Sources:
- [REL_18_6 · doc/src/sgml/pgstatstatements.sgml:235-238](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/pgstatstatements.sgml#L235-L238)
  Excerpt:
  ```text
  <structfield>mean_exec_time</structfield> <type>double precision</type>
      </para>
      <para>
       Mean time spent executing the statement, in milliseconds
  ```
- [REL_18_6 · contrib/pg_stat_statements/pg_stat_statements--1.7--1.8.sql:15-34](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_stat_statements/pg_stat_statements--1.7--1.8.sql#L15-L34)
  Excerpt:
  ```text
  CREATE FUNCTION pg_stat_statements(IN showtext boolean,
    OUT userid oid,
    OUT dbid oid,
    OUT queryid bigint,
    OUT query text,
    OUT plans int8,
    OUT total_plan_time float8,
    OUT min_plan_time float8,
    OUT max_plan_time float8,
    OUT mean_plan_time float8,
    OUT stddev_plan_time float8,
    OUT calls int8,
    OUT total_exec_time float8,
    OUT min_exec_time float8,
    OUT max_exec_time float8,
    OUT mean_exec_time float8,
    OUT stddev_exec_time float8,
    OUT rows int8,
    OUT shared_blks_hit int8,
    OUT shared_blks_read int8,
  ```
- [REL_18_6 · doc/src/sgml/ref/select.sgml:36-40](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/select.sgml#L36-L40)
  Excerpt:
  ```text
  SELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replaceable> [, ...] ) ] ]
    [ { * | <replaceable class="parameter">expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] } [, ...] ]
    [ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]
    [ WHERE <replaceable class="parameter">condition</replaceable> ]
    [ GROUP BY [ ALL | DISTINCT ] <replaceable class="parameter">grouping_element</replaceable> [, ...] ]
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F5

### F6 · Accurate · Factual · PostgreSQL estimates append children separately
Location: excerpt · section “Even the "proper" fix Does Not Transfer” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=the%20optimizer%20estimates%20each%20branch%20separately)
Article says:
```text
…the optimizer estimates each branch separately…
```
What is true:
src/backend/optimizer/path/allpaths.c:1145-1151 computes each append child's size. Lines 1177-1181 add child row estimates to the parent estimate. Separate branch estimation holds. The claimed accuracy of this benchmark's UNION ALL plan remains unverified.
Charitable reading:
Separate branch estimation does not guarantee accurate branch estimates.
Review: We tested whether separate estimation proves accurate estimates. The finding expressly withholds that conclusion. The code computes child sizes and sums their row estimates. We tested whether separate estimation proves accurate estimates or equivalent query results. The finding expressly leaves those unverified. The source computes child sizes and sums their row estimates.

Sources:
- [REL_18_6 · src/backend/optimizer/path/allpaths.c:1145-1151](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/path/allpaths.c#L1145-L1151)
  Excerpt:
  ```text
  /*
		 * Compute the child's size.
		 */
		set_rel_size(root, childrel, childRTindex, childRTE);

		/*
  ```
- [REL_18_6 · src/backend/optimizer/path/allpaths.c:1177-1181](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/path/allpaths.c#L1177-L1181)
  Excerpt:
  ```text
  Assert(childrel->rows > 0);

		parent_tuples += childrel->tuples;
		parent_rows += childrel->rows;
		parent_size += childrel->reltarget->width * childrel->rows;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F6

### F7 · Accurate · Factual · Verified accurate: “…CREATE TABLE customers (id INT PRIMARY KEY , name TEXT , tier TEXT );…”
Location: excerpt · section “The harmless whale query that Will Eat You” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=CREATE%20TABLE%20customers%20%28id%20INT,TEXT%20%2C%20tier%20TEXT%20%29%3B)
Article says:
```text
…CREATE TABLE customers (id INT PRIMARY KEY , name TEXT , tier TEXT );…
```
What is true:
The customers declaration uses typed columns and a column primary key. REL_18_6 doc/src/sgml/ref/create_table.sgml:2035-2053 demonstrates that declaration structure. doc/src/sgml/ref/select.sgml:36-40 documents SELECT, FROM, WHERE, and GROUP BY. These excerpts support those structures, rather than validating the complete three-table aggregate.
Review: We checked the complete schema and query for undeclared columns. They match. However, E-7 records only customers. E-19 demonstrates declarations, and E-20 lists broad SELECT clauses. Those citations do not establish the complete aggregate query's validity.

Sources:
- [REL_18_6 · doc/src/sgml/ref/create_table.sgml:2035-2053](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_table.sgml#L2035-L2053)
  Excerpt:
  ```text
  CREATE TABLE films (
    code        char(5) CONSTRAINT firstkey PRIMARY KEY,
    title       varchar(40) NOT NULL,
    did         integer NOT NULL,
    date_prod   date,
    kind        varchar(10),
    len         interval hour to minute
);
  ```
- [REL_18_6 · doc/src/sgml/ref/select.sgml:36-40](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/select.sgml#L36-L40)
  Excerpt:
  ```text
  SELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replaceable> [, ...] ) ] ]
    [ { * | <replaceable class="parameter">expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] } [, ...] ]
    [ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]
    [ WHERE <replaceable class="parameter">condition</replaceable> ]
    [ GROUP BY [ ALL | DISTINCT ] <replaceable class="parameter">grouping_element</replaceable> [, ...] ]
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F7

### F11 · Accurate · Factual · The displayed PostgreSQL timings support the 5.1× speedup
Location: excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=Execution%20time%201%2C572%20ms%20309%20ms)
Article says:
```text
…Execution time 1,572 ms 309 ms…
```
What is true:
The displayed timings imply a 5.09× speedup (derived: 1,572 ms / 309 ms). Rounding to 5.1× is correct.
Charitable reading:
The reported 5.1× figure rounds the displayed timing ratio.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated 1,572 ms divided by 309 ms. The result rounds to 5.1×. The finding verifies arithmetic only. We recalculated the ratio: 1,572 ms / 309 ms = 5.087. The stated 5.1× follows by rounding. The finding does not independently validate either timing.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F11

### F12 · Accurate · Factual · The displayed buffer counts support the approximately 230× reduction
Location: excerpt · section “Postgres: one free line, 5x faster” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=~1%2C945%2C000%20~8%2C500)
Article says:
```text
…~1,945,000 ~8,500…
```
What is true:
The displayed buffer-hit counts imply a 229× reduction (derived: 1,945,000 hits / 8,500 hits). Approximately 230× is correct.
Charitable reading:
Both buffer counts are approximate. A two-significant-figure reduction factor is appropriate.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated the buffer-hit ratio as 228.8×. Approximately 230× is supported. The finding does not equate buffer hits with physical reads. We recalculated 1,945,000 hits / 8,500 hits = 228.8. Approximately 230× fits the approximate inputs. The finding restricts its conclusion to displayed buffer-hit arithmetic.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F12

### F13 · Accurate · Factual · The table-split comparison correctly calculates 70 ms and 22%
Location: excerpt · section “Even the "proper" fix Does Not Transfer” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=391ms%2C%20which%20is%2022%25%20slower)
Article says:
```text
…391ms, which is 22% slower…
```
What is true:
The split takes 70 ms longer (derived: 391 ms − 321 ms). That increase is 21.8% of the setting's runtime (derived: 70 ms / 321 ms). The article correctly rounds this to 22%.
Charitable reading:
The comparison uses the explicitly stated 321 ms run rather than the separate 309 ms run.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We checked the denominator against the separate 309 ms observation. This passage explicitly uses 321 ms. Its 70 ms difference rounds to 22%. We tested the alternate 309 ms denominator. This passage explicitly uses 321 ms. The difference is 70 ms, or 21.8%, which rounds to 22%.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F13

### F14 · Accurate · Factual · The displayed join counts support approximately 2,400×–3,000× underestimates
Location: excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=234%20%E2%86%92%20720%2C127%20%28%20~3%2C000x,719%2C417%20%28%20~2%2C400x%20under%20%29)
Article says:
```text
…234 → 720,127 ( ~3,000x under ) 298 → 719,417 ( ~2,400x under )…
```
What is true:
PostgreSQL's factor is approximately 3,080× (derived: 720,127 rows / 234 estimated rows). SQL Server's factor is approximately 2,410× (derived: 719,417 rows / 298 estimated rows). The stated approximate factors match.
Charitable reading:
The article rounds the two engines' underestimate factors rather than asserting identical ratios.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated both factors: 3,077× and 2,414×. The article presents approximate values. The finding does not independently validate plan counters. We recalculated both underestimate factors: 3,077× for PostgreSQL and 2,414× for SQL Server. The approximate 3,000× and 2,400× descriptions hold.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F14

### F15 · Accurate · Factual · The uniform-control appendix correctly rounds its PostgreSQL ratios
Location: excerpt · section “Try this on your own skewed table” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=~178%20~720%2C127%20~4%2C000x)
Article says:
```text
…~178 ~720,127 ~4,000x…
```
What is true:
Joined rows increase approximately 4,050× (derived: 720,127 rows / 178 rows). PostgreSQL runtime increases approximately 1,120× (derived: 1,572 ms / 1.4 ms). The appendix's approximate ratios match these calculations.
Charitable reading:
The appendix rounds observed row-count and runtime ratios.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We recalculated 4,046× for rows and 1,123× for runtime. The displayed approximations hold. The finding verifies no causal claim about the control. We recalculated 720,127 rows / 178 rows = 4,046× and 1,572 ms / 1.4 ms = 1,123×. Both displayed approximate ratios follow. Measurement validity remains outside this finding.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F15

## Notes (not graded) (4)

### F1 · Note ·  · Note: “…the 10 whales get smeared into the same per-key density…”
Location: excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=the%2010%20whales%20get%20smeared%20into%20the%20same%20per%2Dkey%20density)
Article says:
```text
…the 10 whales get smeared into the same per-key density…
```
What is true:
PostgreSQL can retain frequent-key frequencies in MCV lists. selfuncs.c:2468-2476 uses matching lists when both inputs have them. planstats.sgml:149-152 distinguishes MCVs from histograms. These facts correct the statistics description. They do not resolve the cross-table correlation that the article identifies or establish that its table split wastes work.
So what:
Inspect pg_stats.most_common_vals and most_common_freqs for orders.customer_id before splitting orders or increasing statistics targets.
Explanation: Not graded: no reader would act differently on it.
Review: The article correctly identifies cross-table correlation. E-8 requires MCV lists on both sides. Neither citation establishes that inspecting existing statistics would avoid the proposed table split. The terminology correction survives, but the claimed wasted work does not. We checked whether MCV support defeats the article's diagnosis. E-8 requires lists on both relations. Neither source establishes that inspecting MCVs avoids splitting orders. The article already identifies the cross-table correlation limitation. The claimed wasted work exceeds the evidence.

Sources:
- [REL_18_6 · src/backend/utils/adt/selfuncs.c:2468-2476](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/selfuncs.c#L2468-L2476)
  Excerpt:
  ```text
  if (have_mcvs1 && have_mcvs2)
	{
		/*
		 * We have most-common-value lists for both relations.  Run through
		 * the lists to see which MCVs actually join to each other with the
		 * given operator.  This allows us to determine the exact join
		 * selectivity for the portion of the relations represented by the MCV
		 * lists.  We still have to estimate for the remaining population, but
		 * in a skewed distribution this gives us a big leg up in accuracy.
  ```
- [REL_18_6 · doc/src/sgml/planstats.sgml:149-152](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/planstats.sgml#L149-L152)
  Excerpt:
  ```text
  <function>eqsel</function>.  For equality estimation the histogram is
   not useful; instead the list of <firstterm>most
   common values</firstterm> (<acronym>MCV</acronym>s) is used to determine the
   selectivity. Let's have a look at the MCVs, with some additional columns
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F1

### F8 · Note ·  · Linked pages disagree about SQL Server availability
Location: excerpt · section “The harmless whale query that Will Eat You” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=spins%20up%20real%20Postgres%20and%20Azure%20SQL%20instances)
Article says:
```text
…spins up real  Postgres and Azure SQL instances…
```
What is true:
The architecture documentation lists SQL Server as coming soon. The homepage lists SQL Server among supported databases. Neither page verifies the article's Azure SQL benchmark runs. We cannot establish which page reflects availability at publication.
Charitable reading:
SQL Server support may have shipped before the architecture documentation changed.
Explanation: Not graded: no reader would act differently on it.
Review: We tested the possibility of stale documentation. The note already allows it and makes no charge against the measurements. Both external quotations match. We tested whether stale documentation disproves the benchmark runs. The finding makes no such claim. Both external quotations match, and the note preserves uncertainty about availability at publication.

Sources:
- [https://exobench.ai/docs/01-getting-started/02-how-it-works](https://exobench.ai/docs/01-getting-started/02-how-it-works)
  Excerpt:
  ```text
  SQL Server — Coming soon.
  ```
- [https://exobench.ai/](https://exobench.ai/)
  Excerpt:
  ```text
  Supported Databases ExoBench works with the databases you already use. PostgreSQL SQLite MySQL SQL Server
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F8

### F9 · Note ·  · SQL Server's per-customer row label conflicts with the workload
Location: excerpt · section “Why both planners walk into the same wall” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=Orders%20join%20%28per%20enterprise%20customer%29,%E2%86%92%2039%2C993%2016.5%20%E2%86%92%20399%2C669)
Article says:
```text
…Orders join (per enterprise customer) 75 → 39,993 16.5 → 399,669…
```
What is true:
The stated workload averages 40,000 orders per enterprise customer (derived: 400,000 orders / 10 customers). The table labels 399,669 orders as per customer. That figure approximates the entire enterprise population. The table must distinguish total rows from per-customer rows.
Charitable reading:
SQL Server may report a total while PostgreSQL reports a per-loop count. The shared per-customer label does not distinguish them.
Explanation: Not graded: knowing this would not change what a reader does.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We tested total-row versus per-loop reporting. That explains the number but leaves the shared per-customer label inconsistent. The note avoids alleging incorrect measurements. We considered total-versus-per-loop reporting. That explains the likely origin but does not repair the shared per-customer label. Dividing 400,000 orders among 10 customers gives 40,000 orders per customer.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F9

### F10 · Note ·  · The stated no-index timing range excludes the slowest listed hint
Location: excerpt · section “SQL Server: The Quagmire where every Hint Hits a Wall” · as fetched 2026-10-19 · [open in article](https://exobench.ai/blog/why-is-my-whale-query-1000x-slower-in-prod#:~:text=The%20entire%20no%2Dindex%20option%20space%20spans%202%2C007ms%20to%202%2C651ms.)
Article says:
```text
The entire no-index option space spans 2,007ms to 2,651ms.
```
What is true:
The listed no-index attempts span 2,007 ms to 5,266 ms. The prose gives 2,651 ms as the upper bound. Forced HASH JOIN accounts for the omitted 5,266 ms endpoint.
Charitable reading:
The range could summarize alternatives after rejecting the naive hash plan. The word entire also includes that listed attempt.
Explanation: Not graded: knowing this would not change what a reader does.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We tested whether the range excludes the rejected naive attempt. The article says entire and lists that attempt. A numerical note remains justified. We considered excluding the rejected naive hash attempt. The article says the range covers the entire option space. Its listed 5,266 ms attempt exceeds the stated upper endpoint.

Finding URL: https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6#F10

## Withdrawn findings (0)

None.

## Section checks

- Benchmark setup · A · 1 verified-accurate · 100% of claims (11 of 11, plus 3 that need data we do not have)
- Cardinality diagnosis · A · 2 verified-accurate · 100% of claims (5 of 5, plus 16 that need data we do not have)
- Postgres join setting · A · 4 verified-accurate · 100% of claims (4 of 4, plus 9 that need data we do not have)
- SQL Server hints · A · none · no checkable claims
- Splitting orders · A · 2 verified-accurate · 66% of claims (2 of 3, plus 13 that need data we do not have)
- Finding a candidate query · A · 1 verified-accurate · 100% of claims (2 of 2, plus 1 that need data we do not have)
- Uniform control appendix · A · 1 verified-accurate · 100% of claims (2 of 2, plus 1 that need data we do not have)

## Claim coverage

- Summary: 2 of 2 Postgres claims checked, plus 5 that need data we do not have; not counted: 6 product or opinion, 1 duplicate, 3 not a claim
- Benchmark setup: 11 of 11 Postgres claims checked, plus 3 that need data we do not have; not counted: 12 product or opinion, 4 duplicate, 3 not a claim
- Uniform control: 9 claims are the author's own account; nothing checkable; not counted: 4 product or opinion, 1 not a claim
- Cardinality diagnosis: 5 of 5 Postgres claims checked, plus 16 that need data we do not have; not counted: 6 product or opinion, 2 duplicate, 1 not a claim
- Postgres join setting: 4 of 4 Postgres claims checked, plus 9 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 3 not a claim; not checked: 1 for other reasons
- SQL Server hints: no checkable claims; not counted: 23 product or opinion, 3 duplicate, 3 not a claim
- Covering index and batch mode: 2 claims are the author's own account; nothing checkable; not counted: 14 product or opinion, 1 duplicate, 2 not a claim
- Splitting orders: 2 of 3 Postgres claims checked, plus 13 that need data we do not have; not counted: 11 product or opinion, 1 duplicate, 2 not a claim; not checked: 1 for other reasons
- Limitations: 3 claims are the author's own account; nothing checkable; not counted: 16 product or opinion, 1 duplicate, 1 not a claim
- Finding a candidate query: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 4 product or opinion, 3 not a claim
- Full scoreboards: 2 of 2 Postgres claims checked, plus 5 that need data we do not have; not counted: 7 product or opinion, 5 duplicate, 1 not a claim
- Uniform control appendix: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 5 product or opinion, 2 duplicate, 1 not a claim
- Product invitation: no checkable claims; not counted: 2 product or opinion, 3 not a claim

## What we did not check

- We did not verify the displayed execution plans, timings, buffer counts, or generated data distributions.
- We did not check whether the split-table query preserves results because the article omits that query.
- We did not check the SQL Server optimizer mechanisms or tuning recipes.
- We did not reproduce the measurements the article displays.
- We did not independently verify the article's execution plans, generated data, platform configurations, or benchmark measurements.
- We could check only 4 distinct pages cited by the article.
- We did not establish when SQL Server support became available or which database versions the benchmarks used.
- We did not verify the article's PostgreSQL statistics explanations or SQL Server optimizer mechanisms.
- We did not independently verify the displayed timings, row counts, buffer counts, or execution plans.
- We did not read all numerical values from the scale charts.
- We did not check the PostgreSQL index-type inventory or the planner explanations.
- We could not decide whether readers can obtain the benchmark environment.
- We could not decide whether the published benchmark details are complete.

## Notes

- Central claim not verified. We checked PostgreSQL mechanisms and displayed arithmetic, but did not verify the SQL Server mechanisms or comparative optimization results.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- Average of 5 axes: 3.46 · benchmark not reproducible, one step off (no hardware) · result B
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); https://exobench.ai/ (fetched 2026-10-19T08:06:42.655609Z); https://exobench.ai/docs/01-getting-started/02-how-it-works (fetched 2026-10-19T08:06:41.003403Z); https://exobench.ai/docs/comparison (fetched 2026-10-19T08:06:41.737162Z); https://exobench.ai/getting-started (fetched 2026-10-19T08:06:43.365456Z).
- Article captured 2026-10-19T08:06:21.645964Z · SHA-256 2d542bad080bf031d1d748bd5130e6e527f17ebd1871c23ab9492b4d199ad20d · Text extracted from the article's HTML.
- Policy SHA-256 5bde5aa8f33a1098bb6bee52f1732a662bfd910e2eeb05c9b396768caaba3d06 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- gate: proceeded with reason codes HIGH_INJECTION
- We did not independently verify the execution plans, measurements, generated data distributions, or platform configurations.
- We did not check whether the split-table query preserves results because the article omits that query.
- We did not check the SQL Server optimizer mechanisms or tuning recipes.
- We did not establish which database versions the benchmarks used or when SQL Server support became available.
- We did not read all numerical values from the scale charts.
- We checked 4 distinct linked pages. Five distinct external sources were unavailable.
- The article gives May 26, 2026 without a time. We list that date at midnight UTC.
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-30: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 3 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 4 fetched pages.
- 12 survived · 3 weakened · 0 withdrawn.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6?v=14) · 2026-10-13 01:02 UTC · B · audit version not recorded · regrade version not recorded
  Article as first submitted. 5 accurate · 1 wrong · 5 caveats.
  ElephantSeal: B. Open: the central claim is not yet backed by evidence.
  Changes: First audit. Open: F7 “The no-index results extend to 5,266 ms” (false); F1 “…the 10 whales get smeared into the same per-key density as the 49,990 minnows.” (mostly accurate); F2 “enable_nestloop=off discourages nested loops rather than forbidding them” (mostly accurate); F6 “…spins up real Postgres and Azure SQL instances…” (mostly accurate); F8 “…every one of them still had to perform the same ~720,000-row, ~2-million-logical-read fetch…” (mostly accurate); F9 “The SQL Server orders-join count conflicts with the per-customer heading” (mostly accurate).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/ebdff22c-3e4b-4883-80be-af4b0d91ace6?v=20) · this page · 2026-10-19 08:06 UTC · B · audited with v1.0.14 (approx.) · regraded with v1.1.3
  Same article text, re-audited. 11 accurate · 0 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published; the production risk is not yet fixed or warned about.
  Changes: No longer reported: “The no-index results extend to 5,266 ms”; “…the 10 whales get smeared into the same per-key density as the 49,990 minnows.”; “enable_nestloop=off discourages nested loops rather than forbidding them”; “…spins up real Postgres and Azure SQL instances…”; “…every one of them still had to perform the same ~720,000-row, ~2-million-logical-read fetch…”; “The SQL Server orders-join count conflicts with the per-customer heading”. New: none.

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