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.