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: Problems with large tables in Postgres — PlanetScale
Article title: Problems with large tables in Postgres — PlanetScale
Article URL: https://planetscale.com/blog/dealing-with-large-tables-in-postgres
Report URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3
Audited revision: 4 of 4, 2026-10-21 05:00:56 UTC
Overall letter: D+
## Axes
- Factual: A · 0 wrong · 19 checked · 0 caveats · assessed
- Applicable: B · 3 wrong · 16 checked · 0 caveats · assessed
- Consistent: B+ · 2 wrong · 19 checked · 0 caveats · assessed
- Transparent: A · 0 wrong · 6 checked · 0 caveats · assessed
- Safe: D · 1 wrong · 39 checked · 0 caveats · partly assessed
ElephantSeal: D+.
Open conditions: the production risk is not yet fixed or warned about.
## Report metadata
- Report: Technical fact-check, edition 3
- pgTrue version: audited with v1.0.17 (approx.) · regraded with v1.1.3
- Issued: 2026-10-21
- 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 3 times; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
## Findings needing a change (6)
### F1 · Inaccurate · Safe · pg_squeeze needs more spare disk than one partition's size
Location: excerpt · section “Wasted time on incomplete repacking” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=the%20spare%20disk%20you%20need,the%20size%20of%20a%20partition)
Article says:
```text
…the spare disk you need to run squeeze is the size of a partition…
```
What is true:
pg_squeeze documents additional free space around twice the target table-and-index size. README.md:379-382 gives that requirement. Processing one partition reduces the target, but does not remove the multiplier or its indexes. The article's estimate can leave a squeeze unable to finish.
So what:
Budget roughly twice the target partition-and-index size in additional disk space before starting pg_squeeze.
Charitable reading:
Partitioning reduces the unit of work. That does not establish the stated free-space amount.
Review: We tested whether the sentence only compares partition size with table size. Its explicit spare-space estimate still omits the documented multiplier. E-14 specifies additional space, so counting existing storage cannot reconcile the figures. The release limitation is already disclosed. We tested whether partition size merely identified the processing unit. The explicit spare-space estimate omits the documented multiplier and indexes. The article names no extension version. The finding discloses its 1.9.4 check.
Sources:
- [pg_squeeze@REL1_9_4 · README.md:379-382](https://github.com/cybertec-postgresql/pg_squeeze/blob/400c5f6ae9bc911073a6824e9a19f4d475fb7331/README.md#L379-L382)
Qualification: Version note: The article names no pg_squeeze version. We checked release 1.9.4.
Excerpt:
```text
Performing a full-table squeeze requires free disk space about twice as large
as the target table and its indexes. For example, if the total size of the
tables and indexes to be squeezed is 1GB, an additional 2GB of disk space is
required.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F1
### F2 · Misleading · Consistent · Misleading: “…a long query anywhere on the cluster still pins every partition.”
Location: excerpt · section “Wasted time on incomplete repacking” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=a%20long%20query%20anywhere%20on,cluster%20still%20pins%20every%20partition.)
Article says:
```text
…a long query anywhere on the cluster still pins every partition.
```
What is true:
Ordinary user-table cleanup normally ignores sessions connected to other databases. procarray.c:1796-1802 checks database identity and explicit exceptions. Shared relations use a broader horizon. An ordinary query in another database does not automatically pin every partition.
So what:
Check old snapshots in the affected database before terminating sessions in other databases or choosing sharding for horizon isolation.
Review: We tested the same-database reading. The article explicitly says anywhere in the cluster. The excerpts establish database filtering and exceptions, but do not identify hot-standby feedback.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/storage/ipc/procarray.c:1778-1779](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/storage/ipc/procarray.c#L1778-L1779)
Excerpt:
```text
* Normally sessions in other databases are ignored for anything but
* the shared horizon.
```
- [REL_19_STABLE@48b43081e5 · src/backend/storage/ipc/procarray.c:1796-1802](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/storage/ipc/procarray.c#L1796-L1802)
Excerpt:
```text
if (proc->databaseId == MyDatabaseId ||
MyDatabaseId == InvalidOid ||
(statusFlags & PROC_AFFECTS_ALL_HORIZONS) ||
in_recovery)
{
h->data_oldest_nonremovable =
TransactionIdOlder(h->data_oldest_nonremovable, xmin);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F2
### F3 · Misleading · Consistent · A later vacuum need not rescan the entire heap
Location: excerpt · section “Wasted time on incomplete repacking” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Vacuum%20will%20need%20to%20walk%20the%20entire%20table%20again%20later.)
Article says:
```text
Vacuum will need to walk the entire table again later.
```
What is true:
Vacuum skips heap blocks that need no processing. vacuumlazy.c:1645-1648 uses the visibility map and scan thresholds to select blocks. An old snapshot can leave some tuples unreclaimable without invalidating completed work on other pages. Another full heap scan is possible, rather than mandatory.
So what:
Inspect vacuum's scanned and skipped pages before treating a completed pass as discarded work or repartitioning to avoid full rescans.
Charitable reading:
Dead tuples on every page can require another complete scan. The article presents that scan as required after a constrained pass.
Review: We considered a workload with unreclaimable tuples on every page. That can require another full scan, which the finding allows. E-37 confirms that completed work can permit page skipping on later runs. We tested the case where every page still needs work. A full scan remains possible. Visibility-map skipping disproves its necessity without denying snapshot-related cleanup delays.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/access/heap/vacuumlazy.c:1645-1648](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/heap/vacuumlazy.c#L1645-L1648)
Excerpt:
```text
* heap_vac_scan_next_block() uses the visibility map, vacuum options, and
* various thresholds to skip blocks which do not need to be processed and
* returns the next block to process or InvalidBlockNumber if there are no
* remaining blocks.
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/maintenance.sgml:390-392](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/maintenance.sgml#L390-L392)
Excerpt:
```text
page is again modified). This has two purposes. First, vacuum
itself can skip such pages on the next run, since there is nothing to
clean up.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F3
### F4 · Misleading · Applicable · Crossing roughly 2 kB does not guarantee out-of-line storage
Location: excerpt · section “Wide tables split across pages and files” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=If%20a%20row%20exceeds%20~2KB%2C%20oversized%20values%20go%20to%20TOAST)
Article says:
```text
If a row exceeds ~2KB, oversized values go to TOAST…
```
What is true:
Default EXTENDED storage tries inline compression before external storage. storage.sgml:467-470 documents that order. heaptoast.c:162-167 implements separate compression and external-storage stages. A row initially exceeding roughly 2 kB can compress enough to remain inline, without adding an external value to vacuum.
So what:
Measure actual TOAST relation size and compression before partitioning or sharding rows merely because their uncompressed size exceeds 2 kB.
Charitable reading:
TOAST can name the whole compression mechanism. The surrounding sentence specifically describes storage in a separate table.
Review: We tested whether TOAST means compression generally. The surrounding article explicitly describes a separate table. E-18 permits compression to avoid external storage, while E-19 confirms the implementation stages. We tested whether TOAST included inline compression here. The surrounding article identifies a separate table. EXTENDED storage permits compression that avoids external storage, which supports the narrower correction.
Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/storage.sgml:467-470](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/storage.sgml#L467-L470)
Excerpt:
```text
<literal>EXTENDED</literal> allows both compression and out-of-line
storage. This is the default for most <acronym>TOAST</acronym>-able data types.
Compression will be attempted first, then out-of-line storage if
the row is still too big.
```
- [REL_19_STABLE@48b43081e5 · src/backend/access/heap/heaptoast.c:162-167](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/heap/heaptoast.c#L162-L167)
Excerpt:
```text
* 1: Inline compress attributes with attstorage EXTENDED, and store very
* large attributes with attstorage EXTENDED or EXTERNAL external
* immediately
* 2: Store attributes with attstorage EXTENDED or EXTERNAL external
* 3: Inline compress attributes with attstorage MAIN
* 4: Store attributes with attstorage MAIN external
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F4
### F5 · Misleading · Applicable · Misleading: “…make every write touch more files.”
Location: excerpt · section “Too many indexes” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=make%20every%20write%20touch%20more%20files.)
Article says:
```text
…make every write touch more files.
```
What is true:
HOT updates can skip ordinary index maintenance. heapam.c:4365-4373 selects TU_None or TU_Summarizing for HOT updates, rather than TU_All. Additional indexes do not make every write update additional index files. This excerpt does not establish HOT eligibility conditions.
So what:
Check HOT update rates and indexed update columns before dropping useful indexes or choosing sharding to reduce update amplification.
Review: We tested the general index-cost reading against every write. E-20 establishes HOT exceptions. It does not establish how update columns and page space determine HOT eligibility.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/access/heap/heapam.c:4365-4373](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/heap/heapam.c#L4365-L4373)
Excerpt:
```text
if (use_hot_update)
{
if (summarized_update)
*update_indexes = TU_Summarizing;
else
*update_indexes = TU_None;
}
else
*update_indexes = TU_All;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F5
### F6 · Misleading · Applicable · PostgreSQL has no hundreds-of-GB cache ceiling
Location: excerpt · section “Slow queries hold connections longer” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=you%27re%20still%20not%20putting%20a%20hundreds%2Dof%2DGB%20table%20into%20cache.)
Article says:
```text
…you're still not putting a hundreds-of-GB table into cache.
```
What is true:
Cache capacity depends on configured memory and available RAM. guc_parameters.dat:2711-2718 permits shared_buffers values above hundreds of GiB with default-size blocks. PostgreSQL also uses the operating-system cache. A sufficiently large instance can cache such a table. Sharding is not required to make that capacity possible.
So what:
Compare the active working set and relation sizes with available RAM before rejecting a larger instance in favor of sharding.
Charitable reading:
A table can exceed the current machine's cache. The sentence rejects caching even after buying additional RAM.
Review: We tested whether the statement only concerns the existing machine. The preceding hardware-upgrade claim rules out that reading. E-21 permits larger caches, and E-22 also identifies operating-system caching. The finding makes no cost-performance promise. We tested a reading limited to the current machine. The article explicitly discusses buying more RAM. The buffer limit and operating-system cache support capacity beyond hundreds of GiB, without proving economic benefits.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/utils/misc/guc_parameters.dat:2711-2718](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/utils/misc/guc_parameters.dat#L2711-L2718)
Excerpt:
```text
{ name => 'shared_buffers', type => 'int', context => 'PGC_POSTMASTER', group => 'RESOURCES_MEM',
short_desc => 'Sets the number of shared memory buffers used by the server.',
flags => 'GUC_UNIT_BLOCKS',
variable => 'NBuffers',
boot_val => '16384',
min => '16',
max => 'INT_MAX / 2',
},
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/config.sgml:1823-1829](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/config.sgml#L1823-L1829)
Excerpt:
```text
reasonable starting value for <varname>shared_buffers</varname> is 25%
of the memory in your system. There are some workloads where even
larger settings for <varname>shared_buffers</varname> are effective, but
because <productname>PostgreSQL</productname> also relies on the
operating system cache, it is unlikely that an allocation of more than
40% of RAM to <varname>shared_buffers</varname> will work better than a
smaller amount. Larger settings for <varname>shared_buffers</varname>
```
- [REL_19_STABLE@48b43081e5 · src/backend/utils/misc/guc_parameters.dat:2711-2718](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/utils/misc/guc_parameters.dat#L2711-L2718)
Excerpt:
```text
{ name => 'shared_buffers', type => 'int', context => 'PGC_POSTMASTER', group => 'RESOURCES_MEM',
short_desc => 'Sets the number of shared memory buffers used by the server.',
flags => 'GUC_UNIT_BLOCKS',
variable => 'NBuffers',
boot_val => '16384',
min => '16',
max => 'INT_MAX / 2',
},
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/config.sgml:1822-1828](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/config.sgml#L1822-L1828)
Excerpt:
```text
If you have a dedicated database server with 1GB or more of RAM, a
reasonable starting value for <varname>shared_buffers</varname> is 25%
of the memory in your system. There are some workloads where even
larger settings for <varname>shared_buffers</varname> are effective, but
because <productname>PostgreSQL</productname> also relies on the
operating system cache, it is unlikely that an allocation of more than
40% of RAM to <varname>shared_buffers</varname> will work better than a
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F6
## Verified accurate claims (13)
### F7 · Accurate · Factual · PostgreSQL 17 uses the stated 20% scale factor
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=On%20Postgres%2017%2C%20the%20default,is%2020%25%20of%20the%20table.)
Article says:
```text
On Postgres 17, the default trigger is 20% of the table.
```
What is true:
PostgreSQL 17 defaults autovacuum_vacuum_scale_factor to 0.2. autovacuum.c:3074 adds the base threshold to that fraction of estimated rows. The article's approximation and later formula describe this mechanism.
Charitable reading:
The article gives an approximate percentage and later includes the additive base threshold.
Review: We checked whether the additive threshold invalidates the 20% approximation. E-24 includes that addition, and the article later supplies the formula. Both citations match PostgreSQL 17. We checked the omitted additive threshold and separate insert trigger. The finding describes the approximate dead-tuple formula and explicitly includes the base threshold.
Sources:
- [REL_17_11 · doc/src/sgml/config.sgml:8794-8797](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/doc/src/sgml/config.sgml#L8794-L8797)
Qualification: Version note: PostgreSQL 17 check for the article's explicit version claim.
Excerpt:
```text
Specifies a fraction of the table size to add to
<varname>autovacuum_vacuum_threshold</varname>
when deciding whether to trigger a <command>VACUUM</command>.
The default is 0.2 (20% of table size).
```
- [REL_17_11 · src/backend/postmaster/autovacuum.c:3074-3076](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/postmaster/autovacuum.c#L3074-L3076)
Qualification: Version note: PostgreSQL 17 check for the article's explicit version claim.
Excerpt:
```text
vacthresh = (float4) vac_base_thresh + vac_scale_factor * reltuples;
vacinsthresh = (float4) vac_ins_base_thresh + vac_ins_scale_factor * reltuples;
anlthresh = (float4) anl_base_thresh + anl_scale_factor * reltuples;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F7
### F8 · Accurate · Factual · PostgreSQL 18 defaults the vacuum threshold cap to 100 million tuples
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=autovacuum_vacuum_max_threshold%20with%20a%20default%20value%20of%20100%2C000%2C000.)
Article says:
```text
…autovacuum_vacuum_max_threshold with a default value of 100,000,000.
```
What is true:
PostgreSQL 18 documents a default cap of 100 million updated or deleted tuples. autovacuum.c:3122-3124 caps the calculated threshold. The article correctly distinguishes this cap from the uncapped scale-factor calculation.
Charitable reading:
The article describes the default cap rather than a guarantee that a worker starts immediately.
Review: We checked whether the finding confuses eligibility with immediate worker scheduling. It describes the threshold cap only. PostgreSQL 18 documentation and code agree on 100 million tuples. We checked whether the cap guarantees immediate worker execution. The finding verifies the calculated threshold only. PostgreSQL 18 documentation and code agree on 100 million tuples.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:9193-9198](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L9193-L9198)
Qualification: Version note: PostgreSQL 18 check for the article's explicit version claim.
Excerpt:
```text
Specifies the maximum number of updated or deleted tuples needed to
trigger a <command>VACUUM</command> in any one table, i.e., a limit on
the value calculated with
<varname>autovacuum_vacuum_threshold</varname> and
<varname>autovacuum_vacuum_scale_factor</varname>. The default is
100,000,000 tuples. If -1 is specified, autovacuum will not enforce a
```
- [REL_18_6 · src/backend/postmaster/autovacuum.c:3122-3124](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L3122-L3124)
Qualification: Version note: PostgreSQL 18 check for the article's explicit version claim.
Excerpt:
```text
vacthresh = (float4) vac_base_thresh + vac_scale_factor * reltuples;
if (vac_max_thresh >= 0 && vacthresh > (float4) vac_max_thresh)
vacthresh = (float4) vac_max_thresh;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F8
### F9 · Accurate · Factual · PostgreSQL 19 parallel autovacuum defaults to disabled
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Postgres%2019%20adds%20parallel%20autovacuum%20%2C%20off%20by%20default.)
Article says:
```text
Postgres 19 adds parallel autovacuum , off by default.
```
What is true:
autovacuum_max_parallel_workers defaults to 0. vacuumparallel.c:796-805 applies that limit to autovacuum workers. Parallel workers process eligible index vacuuming and cleanup phases. They do not change the table's vacuum trigger.
Charitable reading:
Extra workers can shorten eligible index phases. The sentence does not promise parallel heap scanning.
Review: We checked whether parallel autovacuum implies parallel heap scanning. E-27 limits workers to index phases, and the finding states that restriction. E-29 confirms that zero disables the workers. We tested whether parallel autovacuum implied parallel heap scanning. The finding limits workers to eligible index phases and correctly states the default of 0.
Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/config.sgml:9810-9813](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/config.sgml#L9810-L9813)
Excerpt:
```text
Sets the maximum number of parallel workers that can be used by a
single autovacuum worker to process indexes. This limit applies
specifically to the index vacuuming and index cleanup phases (for the
details of each autovacuum phase, please refer to <xref linkend="vacuum-phases"/>).
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/config.sgml:9818-9819](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/config.sgml#L9818-L9819)
Excerpt:
```text
command. Setting this value to 0 disables parallel vacuum during autovacuum.
The default is 0. This parameter can only be set in the
```
- [REL_19_STABLE@48b43081e5 · src/backend/commands/vacuumparallel.c:796-805](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/vacuumparallel.c#L796-L805)
Excerpt:
```text
max_workers = AmAutoVacuumWorkerProcess() ?
autovacuum_max_parallel_workers :
max_parallel_maintenance_workers;
/*
* We don't allow performing parallel operation in standalone backend or
* when parallelism is disabled.
*/
if (!IsUnderPostmaster || max_workers == 0)
return 0;
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/release-19.sgml:69-69](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/release-19.sgml#L69-L69)
Excerpt:
```text
<link linkend="guc-autovacuum-max-parallel-workers">Parallel autovacuum of table indexes</link>
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/config.sgml:9818-9819](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/config.sgml#L9818-L9819)
Excerpt:
```text
command. Setting this value to 0 disables parallel vacuum during autovacuum.
The default is 0. This parameter can only be set in the
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F9
### F10 · Accurate · Factual · Large-table ANALYZE sample demand follows the statistics target
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=It%20samples%20a%20fixed%20number,how%20large%20the%20table%20is.)
Article says:
```text
It samples a fixed number of rows no matter how large the table is.
```
What is true:
analyze.c:2026 sets scalar-statistics sample demand to 300 times the column statistics target. Increasing table size alone does not increase that demand. ref/analyze.sgml:249-253 documents per-column control through ALTER TABLE.
Charitable reading:
The discussion concerns large relations and an unchanged statistics target. Small relations can supply fewer rows.
Review: We tested small-table and changed-statistics-target counterexamples. The finding explicitly concerns large tables and sample demand controlled by the target. E-30 supports that narrower statement without proving universal estimate degradation. We checked sample demand versus actual sampled rows. The finding confines its calculation to scalar-statistics demand at an unchanged target. It does not guarantee identical samples for all tables.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/commands/analyze.c:2026-2026](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/commands/analyze.c#L2026-L2026)
Excerpt:
```text
stats->minrows = 300 * stats->attstattarget;
```
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/ref/analyze.sgml:249-253](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/ref/analyze.sgml#L249-L253)
Excerpt:
```text
The extent of analysis can be controlled by adjusting the
<xref linkend="guc-default-statistics-target"/> configuration variable, or
on a column-by-column basis by setting the per-column statistics
target with <link linkend="sql-altertable"><command>ALTER TABLE ... ALTER COLUMN ... SET
STATISTICS</command></link>.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F10
### F11 · Accurate · Factual · Lower fillfactor reserves space for same-page updates
Location: excerpt · section “Wide tables split across pages and files” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Lower%20the%20fillfactor%20so%20an,stay%20on%20the%20same%20page)
Article says:
```text
Lower the fillfactor so an update can often stay on the same page…
```
What is true:
ref/create_table.sgml:1617-1622 documents reserved page space for updated row versions. This improves the chance of same-page placement and HOT updates. It supports the article's conditional recommendation.
Charitable reading:
The article says often, rather than promising that every update stays on its original page.
Review: We checked whether lower fillfactor guarantees same-page updates. Neither the article nor the finding promises that. E-32 supports the increased chance of same-page placement. We tested whether lower fillfactor guarantees same-page updates. Both article and documentation describe increased opportunity, which supports the conditional finding.
Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/ref/create_table.sgml:1617-1622](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/ref/create_table.sgml#L1617-L1622)
Excerpt:
```text
to the indicated percentage; the remaining space on each page is
reserved for updating rows on that page. This gives <command>UPDATE</command>
a chance to place the updated copy of a row on the same page as the
original, which is more efficient than placing it on a different
page, and makes <link linkend="storage-hot">heap-only tuple
updates</link> more likely.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F11
### F13 · Accurate · Factual · The documented shard contains a PostgreSQL primary and replicas
Location: excerpt · section “Sharding is the solution to large tables” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=each%20shard%20is%20its%20own,its%20own%20WAL%20and%20replicas.)
Article says:
```text
…each shard is its own cluster, with its own WAL and replicas.
```
What is true:
The topology documentation explicitly defines each shard as a PostgreSQL primary and its replicas. This supports independent PostgreSQL instance state per shard. It does not establish the article's workload-specific performance improvements.
Charitable reading:
The statement describes the documented shard architecture, rather than proving workload isolation under every shared infrastructure arrangement.
Review: We checked whether the topology description establishes performance isolation. The finding excludes that conclusion. E-34 directly supports a primary and replicas per shard. We tested whether the architecture statement proves workload isolation. The primary page defines a shard's primary and replicas. The finding expressly excludes workload-specific performance guarantees.
Sources:
- [https://planetscale.com/blog/what-is-a-data-topology](https://planetscale.com/blog/what-is-a-data-topology)
Excerpt:
```text
In Neki, a shard consists of a PostgreSQL primary and its replicas.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F13
### F14 · Accurate · Factual · PostgreSQL 18 introduced autovacuum_vacuum_max_threshold
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Postgres%2018%20added%20autovacuum_vacuum_max_threshold)
Article says:
```text
Postgres 18 added autovacuum_vacuum_max_threshold…
```
What is true:
PostgreSQL 18 introduced autovacuum_vacuum_max_threshold. REL_18_6 records its introduction in release-18.sgml:10261. REL_18_0 documents the parameter in config.sgml:9064.
Charitable reading:
The claim identifies the release introducing the setting, rather than its current value alone.
Review: We tested whether checking a later maintenance release could misdate the feature. E-40 independently places the parameter in PostgreSQL 18.0. E-39 records its introduction. We checked release introduction separately from current availability. The release history records introduction, and PostgreSQL 18.0 documentation contains the parameter. Both commit pins match.
Sources:
- [REL_18_6 · doc/src/sgml/release-18.sgml:10261-10261](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/release-18.sgml#L10261-L10261)
Qualification: Version note: Release history checked at REL_18_6.
Excerpt:
```text
2025-02-05 [306dc520b] Introduce autovacuum_vacuum_max_threshold.
```
- [REL_18_0 · doc/src/sgml/config.sgml:9064-9064](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L9064-L9064)
Qualification: Version note: Checked the PostgreSQL 18.0 version floor.
Excerpt:
```text
<term><varname>autovacuum_vacuum_max_threshold</varname> (<type>integer</type>)
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F14
### F15 · Accurate · Factual · pg_squeeze supports concurrent cleanup and requires activation
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=To%20compact%20a%20bloated%20table,and%20writes%20continue%2C%20enable%20pg_squeeze)
Article says:
```text
To compact a bloated table while reads and writes continue, enable pg_squeeze…
```
What is true:
pg_squeeze REL1_9_4 supports cleanup alongside regular reads and writes. README.md:1 describes that behavior. The service documentation requires dashboard activation through shared libraries and a database restart.
Charitable reading:
Reads and writes continue during the main rewrite. The claim does not promise zero locking throughout.
Review: We tested whether concurrent cleanup means zero locking or no activation interruption. The finding makes neither promise. E-44 supports concurrent operation, and E-45 supports activation plus restart. We tested whether concurrent cleanup promises zero locking. The finding makes no such promise. The README supports concurrent operation, and service documentation supports activation and restart requirements.
Sources:
- [pg_squeeze@REL1_9_4 · README.md:1-3](https://github.com/cybertec-postgresql/pg_squeeze/blob/400c5f6ae9bc911073a6824e9a19f4d475fb7331/README.md#L1-L3)
Excerpt:
```text
PostgreSQL extension that removes unused space from a table and optionally
sorts tuples according to particular index (as if [CLUSTER][2] command was
executed concurrently with regular reads / writes). In fact we try to replace
```
- [https://planetscale.com/docs/postgres/extensions/pg_squeeze](https://planetscale.com/docs/postgres/extensions/pg_squeeze)
Excerpt:
```text
This extension requires activation via the PlanetScale Dashboard before it can be used. It must be enabled through shared libraries and requires a database restart.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F15
### F16 · Accurate · Factual · The 500-million-row threshold rounds correctly
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=A%20table%20with%20~500%20million,dead%20tuples%20before%20autovacuum%20begins.)
Article says:
```text
A table with ~500 million rows needs ~100 million dead tuples before autovacuum begins.
```
What is true:
The default formula gives approximately 100 million dead tuples (derived: 50 + 0.2 × 500 million). REL_17_11 src/backend/postmaster/autovacuum.c:3074 applies that formula.
Charitable reading:
The article rounds the default dead-tuple threshold and discusses PostgreSQL 17.
Review: We recalculated the threshold and checked the additive 50 tuples. The result rounds to 100 million dead tuples. The finding verifies arithmetic rather than guaranteeing worker start time. We recalculated 50 + 0.2 × 500 million. The result rounds to 100 million dead tuples. The finding confines verification to that threshold, rather than all vacuum triggers.
Sources:
- [REL_17_11 · src/backend/postmaster/autovacuum.c:3074-3074](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/postmaster/autovacuum.c#L3074-L3074)
Qualification: Version note: PostgreSQL 17 formula.
Excerpt:
```text
vacthresh = (float4) vac_base_thresh + vac_scale_factor * reltuples;
```
- [REL_17_11 · src/backend/utils/misc/guc_tables.c:3354-3355](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/utils/misc/guc_tables.c#L3354-L3355)
Qualification: Version note: Default base threshold.
Excerpt:
```text
&autovacuum_vac_thresh,
50, 0, INT_MAX,
```
- [REL_17_11 · src/backend/utils/misc/guc_tables.c:3891-3892](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/utils/misc/guc_tables.c#L3891-L3892)
Qualification: Version note: Default scale factor.
Excerpt:
```text
&autovacuum_vac_scale,
0.2, 0.0, 100.0,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F16
### F17 · Accurate · Factual · The billion-row threshold comparison is correct
Location: excerpt · section “Slow, late vacuum” · as fetched 2026-10-21 · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=a%20billion%2Drow%20table%20triggered%20autovacuum,number%29%20instead%20of%20200%20million.)
Article says:
```text
…a billion-row table triggered autovacuum at 100 million (still a high number) instead of 200 million.
```
What is true:
PostgreSQL 18 caps the calculated dead-tuple threshold at 100 million. Without that cap, the illustrated formula gives approximately 200 million. REL_18_6 src/backend/postmaster/autovacuum.c:3122 applies the cap.
Charitable reading:
The article describes the default dead-tuple threshold, rather than guaranteeing the exact start time.
Review: We checked the comparison against the actual cap calculation. E-51 applies the maximum, and E-52 supplies 100 million tuples. The uncapped estimate rounds to 200 million. We recalculated the uncapped billion-row threshold and checked the cap. Approximately 200 million becomes 100 million. The finding avoids guaranteeing worker start time.
Sources:
- [REL_18_6 · src/backend/postmaster/autovacuum.c:3122-3124](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L3122-L3124)
Qualification: Version note: PostgreSQL 18 maximum-threshold calculation.
Excerpt:
```text
vacthresh = (float4) vac_base_thresh + vac_scale_factor * reltuples;
if (vac_max_thresh >= 0 && vacthresh > (float4) vac_max_thresh)
vacthresh = (float4) vac_max_thresh;
```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:3553-3554](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3553-L3554)
Qualification: Version note: Default maximum threshold.
Excerpt:
```text
&autovacuum_vac_max_thresh,
100000000, -1, INT_MAX,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F17
### F18 · Accurate · Factual · Both partition estimates round correctly
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Same%20data%20as%2012%20monthly,million%20dead%20tuples%20per%20partition)
Article says:
```text
…Same data as 12 monthly partitions ~41.7 million each ~8.3 million dead tuples per partition…
```
What is true:
Each equal partition contains approximately 41.7 million rows (derived: 500 million / 12). Its illustrated threshold is approximately 8.33 million dead tuples (derived: 50 + 0.2 × 500 million / 12).
Charitable reading:
The table illustrates 12 equally sized partitions. Calendar partitioning alone does not guarantee equal populations.
Review: We recalculated both figures and tested uneven monthly populations. The finding explicitly assumes equal partitions. That assumption yields 41.7 million rows and approximately 8.33 million dead tuples per partition. We checked equal partition populations rather than assuming calendar months contain equal data. Under the stated illustration, 41.7 million rows and 8.33 million dead tuples round correctly.
Sources:
- [REL_17_11 · src/backend/postmaster/autovacuum.c:3074-3074](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/postmaster/autovacuum.c#L3074-L3074)
Qualification: Version note: PostgreSQL 17 formula.
Excerpt:
```text
vacthresh = (float4) vac_base_thresh + vac_scale_factor * reltuples;
```
- [REL_17_11 · src/backend/utils/misc/guc_tables.c:3354-3355](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/utils/misc/guc_tables.c#L3354-L3355)
Qualification: Version note: Default base threshold.
Excerpt:
```text
&autovacuum_vac_thresh,
50, 0, INT_MAX,
```
- [REL_17_11 · src/backend/utils/misc/guc_tables.c:3891-3892](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/utils/misc/guc_tables.c#L3891-L3892)
Qualification: Version note: Default scale factor.
Excerpt:
```text
&autovacuum_vac_scale,
0.2, 0.0, 100.0,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F18
### F19 · Accurate · Factual · The protective XID threshold rounds to 2.1 billion
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=If%20that%20age%20reaches%20around,Postgres%20goes%20into%20read%2Donly%20mode.)
Article says:
```text
If that age reaches around 2.1 billion, Postgres goes into read-only mode.
```
What is true:
The protective threshold is approximately 2.14 billion XIDs beyond the oldest database horizon (derived: 2^31 − 1 − 3 million). src/backend/access/transam/varsup.c:400 reserves the final 3 million XIDs.
Charitable reading:
Read-only mode describes refusal to assign new XIDs. The article gives an approximate threshold.
Review: We checked whether the arithmetic incorrectly uses the full 32-bit range. E-55 uses half that range, and E-56 subtracts 3 million XIDs. The finding verifies the numerical threshold without claiming a configuration change. We separated the numerical threshold from the phrase read-only mode. The finding verifies only the approximate XID threshold. Its calculation correctly subtracts the reserved 3 million XIDs.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/access/transam/varsup.c:384-384](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/transam/varsup.c#L384-L384)
Excerpt:
```text
xidWrapLimit = oldest_datfrozenxid + (MaxTransactionId >> 1);
```
- [REL_19_STABLE@48b43081e5 · src/backend/access/transam/varsup.c:400-400](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/transam/varsup.c#L400-L400)
Excerpt:
```text
xidStopLimit = xidWrapLimit - 3000000;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F19
### F20 · Accurate · Factual · The three backup categories match PostgreSQL documentation
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Postgres%20gives%20you%20three%20ways%20to%20take%20a%20backup.)
Article says:
```text
…Postgres gives you three ways to take a backup.
```
What is true:
doc/src/sgml/backup.sgml:19 lists SQL dumps, filesystem backups, and continuous archiving. The article uses those 3 categories.
Charitable reading:
The article counts backup categories, rather than individual tools or combinations.
Review: We tested whether additional backup tools invalidate the count. E-58 lists categories, and the finding limits its endorsement to those 3 categories. We tested whether three meant individual tools rather than categories. The article's following descriptions match the documentation's 3 backup categories.
Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/backup.sgml:19-21](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/backup.sgml#L19-L21)
Excerpt:
```text
<listitem><para><acronym>SQL</acronym> dump</para></listitem>
<listitem><para>File system level backup</para></listitem>
<listitem><para>Continuous archiving</para></listitem>
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F20
## Notes (not graded) (4)
### F12 · Note · · Note: “It stats every file in the database serially.”
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=It%20stats%20every%20file%20in%20the%20database%20serially.)
Article says:
```text
It stats every file in the database serially.
```
What is true:
dbsize.c:86-98 reads directory entries serially and calls stat for each entry except dot entries. This excerpt establishes serial metadata calls within a directory. It does not show calculate_database_size invoking the helper or establish CPU utilization.
Explanation: Not graded: no reader would act differently on it.
Review: We checked the helper and its surrounding caller. E-33 records only the directory loop. It omits the caller needed to verify pg_database_size's database-wide behavior.
Sources:
- [REL_19_STABLE@48b43081e5 · src/backend/utils/adt/dbsize.c:86-98](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/utils/adt/dbsize.c#L86-L98)
Excerpt:
```text
while ((direntry = ReadDir(dirdesc, path)) != NULL)
{
struct stat fst;
CHECK_FOR_INTERRUPTS();
if (strcmp(direntry->d_name, ".") == 0 ||
strcmp(direntry->d_name, "..") == 0)
continue;
snprintf(filename, sizeof(filename), "%s/%s", path, direntry->d_name);
if (stat(filename, &fst) < 0)
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F12
### F21 · Note · · Note: “Each toasted value gets a 32-bit OID, about 4 billion per table.”
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=Each%20toasted%20value%20gets%20a,about%204%20billion%20per%20table.)
Article says:
```text
Each toasted value gets a 32-bit OID, about 4 billion per table.
```
What is true:
postgres_ext.h:32 defines Oid as unsigned int. toast_internals.c:217-218 passes the TOAST relation to GetNewOidWithIndex. A 32-bit namespace contains approximately 4.3 billion values. These excerpts do not independently establish the type's bit width or usable identifier count.
Explanation: Not graded: no reader would act differently on it.
Review: We checked the type declaration, allocation call, and arithmetic. Two to the power 32 rounds correctly. E-60 declares unsigned int without establishing its width. E-61 omits allocation limits.
Sources:
- [REL_19_STABLE@48b43081e5 · src/include/postgres_ext.h:32-32](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/include/postgres_ext.h#L32-L32)
Excerpt:
```text
typedef unsigned int Oid;
```
- [REL_19_STABLE@48b43081e5 · src/backend/access/common/toast_internals.c:217-218](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/src/backend/access/common/toast_internals.c#L217-L218)
Excerpt:
```text
toast_pointer.va_valueid =
GetNewOidWithIndex(toastrel,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F21
### F22 · Note · · A different build can use pages larger than 8 KiB
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=you%20cannot%20buy%20greater%20limits%20than%208KB%20pages)
Article says:
```text
…you cannot buy greater limits than 8KB pages…
```
What is true:
PostgreSQL supports build-time page sizes through 32 KiB. doc/src/sgml/installation.sgml:1510 documents that range. Changing page size breaks disk compatibility and prevents pg_upgrade between those builds.
Charitable reading:
The sentence concerns buying hardware. Hardware alone does not change an existing cluster's page size.
Explanation: Not graded: no reader would act differently on it.
Review: We applied the article's hardware-upgrade qualification. Hardware alone does not change page size, so a graded charge would overreach. The existing note correctly supplies the build-time exception and compatibility restriction. We checked the hardware-only reading. Hardware does not change an existing cluster's page size. The finding remains an ungraded note about supported builds and their compatibility restriction.
Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/installation.sgml:1510-1513](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/installation.sgml#L1510-L1513)
Excerpt:
```text
The value must be a power of 2 between 1 and 32 (kilobytes).
Note that changing this value breaks on-disk database compatibility,
meaning you cannot use <command>pg_upgrade</command> to upgrade to
a build with a different block size.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F22
### F23 · Note · · The TOAST target is configurable
Location: Article · exact quote · [open in article](https://planetscale.com/blog/dealing-with-large-tables-in-postgres#:~:text=the%202KB%20TOAST%20threshold)
Article says:
```text
…the 2KB TOAST threshold…
```
What is true:
toast_tuple_target defaults to 2,040 bytes with the default block size. doc/src/sgml/ref/create_table.sgml:1644 permits targets from 128 bytes through 8,160 bytes for that block size.
Charitable reading:
The sentence concerns hardware upgrades. Hardware alone does not alter the configured TOAST target.
Explanation: Not graded: no reader would act differently on it.
Review: We checked whether configuration flexibility contradicts the narrower hardware claim. It does not. The existing note identifies toast_tuple_target and its documented range without grading the hardware statement as incorrect. We checked whether configurability contradicts the hardware limitation. It does not. The ungraded note correctly states the default and permitted target range for default-size blocks.
Sources:
- [REL_19_STABLE@48b43081e5 · doc/src/sgml/ref/create_table.sgml:1644-1646](https://github.com/postgres/postgres/blob/48b43081e550f9e4b04e1184ed6d3fed4f850691/doc/src/sgml/ref/create_table.sgml#L1644-L1646)
Excerpt:
```text
By default this parameter is set to allow at least 4 tuples per block,
which with the default block size will be 2040 bytes. Valid values are
between 128 bytes and the (block size - header), by default 8160 bytes.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3#F23
## Withdrawn findings (0)
None.
## Section checks
- Vacuum and statistics · A · 8 verified-accurate · 63% of claims (21 of 33)
- Transaction IDs · A · 1 verified-accurate · 88% of claims (8 of 9, plus 1 that need data we do not have)
- Vacuum horizons and repacking · B- · 1 inaccuracy · 2 misleading · 1 verified-accurate · 57% of claims (12 of 21, plus 2 that need data we do not have) provisional
- Queries and connections · B+ · 1 misleading · 30% of claims (4 of 13, plus 3 that need data we do not have) provisional
- Backups and recovery · A · 1 verified-accurate · 43% of claims (7 of 16, plus 4 that need data we do not have) provisional
- Indexes · B+ · 1 misleading · 40% of claims (4 of 10, plus 2 that need data we do not have) provisional
- Wide rows and storage · B+ · 1 misleading · 1 verified-accurate · 58% of claims (17 of 29, plus 3 that need data we do not have) provisional
- Sharding conclusion · A · 1 verified-accurate · 100% of claims (1 of 1, plus 5 that need data we do not have)
## Claim coverage
- Introduction: 0 of 4 Postgres claims checked; not counted: 2 product or opinion, 1 not a claim; not checked: 4 for other reasons
- Cascade-delete outage: 1 of 3 Postgres claims checked, plus 9 that need data we do not have; not counted: 4 product or opinion, 1 not a claim; not checked: 2 for other reasons
- Remedies: 3 of 4 Postgres claims checked, plus 1 that need data we do not have; not counted: 5 product or opinion, 2 not a claim; not checked: 1 for other reasons
- Vacuum and statistics: 21 of 33 Postgres claims checked; not counted: 3 product or opinion, 3 duplicate, 2 not a claim; not checked: 12 for other reasons
- Transaction IDs: 8 of 9 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 not a claim; not checked: 1 for other reasons
- Vacuum horizons and repacking: 12 of 21 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 product or opinion, 2 duplicate, 1 not a claim; not checked: 9 for other reasons
- Queries and connections: 4 of 13 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 product or opinion, 1 not a claim; not checked: 9 for other reasons
- Backups and recovery: 7 of 16 Postgres claims checked, plus 4 that need data we do not have; not counted: 3 product or opinion, 3 duplicate, 1 not a claim; not checked: 9 for other reasons
- Indexes: 4 of 10 Postgres claims checked, plus 2 that need data we do not have; not counted: 7 product or opinion, 1 duplicate, 1 not a claim; not checked: 6 for other reasons
- Wide rows and storage: 17 of 29 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 product or opinion, 1 duplicate, 1 not a claim; not checked: 12 for other reasons
- Sharding conclusion: 1 of 1 Postgres claims checked, plus 5 that need data we do not have; not counted: 8 product or opinion, 11 duplicate, 3 not a claim
## What we did not check
- We did not verify the customer's cascade-delete incident or its resource measurements.
- We did not inspect Neki's routing implementation or automatic storage-option management.
- We did not reproduce the article's performance and outage claims.
- We did not complete the tuple-size, heap-allocation, and partition storage-option checks.
- We did not establish the article's public URL.
- We did not verify the customer outage without its schema, logs, and workload measurements.
- We did not independently verify Neki routing, resource isolation, or backup performance.
- We did not check most performance comparisons between sharding, partitioning, and vertical scaling.
- We did not reach the author's social profile or the account registration page.
- We did not establish historical changes to the vendor services after August 25, 2026.
- We did not verify the customer's 100,000 parent-row deletions or child-row counts.
- We did not verify the estimated filesystem copy time or wasted pages from an unsuitable fillfactor.
- Safe: we did not complete every applicable check.
- Section “Vacuum horizons and repacking”: we checked 12 of 23 checkable claims.
- Section “Queries and connections”: we checked 4 of 16 checkable claims.
- Section “Backups and recovery”: we checked 7 of 20 checkable claims.
- Section “Indexes”: we checked 4 of 12 checkable claims.
- Section “Wide rows and storage”: we checked 17 of 32 checkable claims.
- Section “Introduction”: we checked 0 of 4 checkable claims.
- Section “Cascade-delete outage”: we checked 1 of 12 checkable claims.
- We could not decide whether the evidence backs the central claim.
- We could not decide whether the article depends on finding F1.
- We hold no source mapping for “Neki”, so we did not check the article's claims about its code.
## Notes
- Central claim not verified. We checked PostgreSQL mechanisms behind the recommendation, but did not establish that sharding outperforms partitioning or larger instances.
- 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.06 · worst of factual, consistent, safe: D · result D+
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_19_STABLE@48b43081e5 at commit 48b43081e550f9e4b04e1184ed6d3fed4f850691 (pinned target); github.com/cybertec-postgresql/pg_squeeze REL1_9_4 at commit 400c5f6ae9bc911073a6824e9a19f4d475fb7331 (pinned target); https://planetscale.com/blog/author/simeon (fetched 2026-10-21T05:01:11.708479Z); https://planetscale.com/blog/dealing-with-large-tables (fetched 2026-10-21T05:01:22.980572Z); https://planetscale.com/blog/massively-parallel-postgres-backups (fetched 2026-10-21T05:01:20.292931Z); https://planetscale.com/blog/postgres-backups-under-the-hood (fetched 2026-10-21T05:01:17.828534Z); https://planetscale.com/blog/postgresql-mvcc (fetched 2026-10-21T05:01:15.339043Z); https://planetscale.com/blog/what-is-a-data-topology (fetched 2026-10-21T05:01:21.315191Z); https://planetscale.com/blog/whats-new-in-postgres-19 (fetched 2026-10-21T05:01:16.456096Z); https://planetscale.com/docs/postgres/extensions/pg_squeeze (fetched 2026-10-21T05:01:19.206114Z); https://planetscale.com/neki (fetched 2026-10-21T05:01:12.982431Z).
- Article captured 2026-10-21T05:00:56.609640Z · SHA-256 cd2b58e211baf812ab15e4892e4a326b27f97c499a3e8fb27eb75ffde352b2c5 · Text extracted from the article's HTML.
- Policy SHA-256 4041b85689b23ed21e2be55b11681aaf054a2ee3fc3f4740fc91f62a8bd79b81 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not verify the customer's cascade-delete incident, row counts, or resource measurements.
- We did not inspect Neki's routing implementation or automatic storage-option management.
- We did not verify most performance comparisons between sharding, partitioning, and larger instances.
- We did not reproduce the displayed performance and outage claims.
- We did not complete the tuple-size, heap-allocation, and partition storage-option checks.
- We did not verify the estimated filesystem copy time or wasted space from unsuitable fillfactor settings.
- We did not reach the author's social profile or the account registration page.
- We did not establish historical changes to the services after August 25, 2026.
- The article names no pg_squeeze version. We checked release 1.9.4.
- The article gives August 25, 2026 without a publication time. We list that date at midnight UTC.
- article target version: bound to the most-cited major; also named 18 (1×), 17 (1×)
- source: pg_squeeze names no release in the article, so it was read at 1.9.4, the latest at fetch time
- source: we did not check the article's claims about Neki against its source code, because we keep no copy of it
- 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.
- 4 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 2 pinned source trees, and 9 fetched pages.
- 19 survived · 4 weakened · 0 withdrawn.
## Revision history
- [Revision 1](https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3?v=43) · 2026-09-11 17:51 UTC · B · audit version not recorded · regrade version not recorded
Article as first submitted. 1 accurate · 3 wrong · 4 caveats.
ElephantSeal: B.
Changes: First audit. Open: F1 “xmin is still cluster-wide, so a long query anywhere on the cluster still pins every partition.” (misleading); F4 “Vacuum will need to walk the entire table again later.” (misleading); F8 “…cannot be solved by partitioning or vertical scaling are resolved. Postgres' hard-coded ceilings of 32-bit XIDs, TOAST OID…” (misleading); F2 “If a row exceeds ~2KB, oversized values go to TOAST…” (mostly accurate); F3 “…greater limits than 8KB pages, the 2KB TOAST threshold…” (mostly accurate); F5 “Accumulate indexes and pay for it with an enlarged heap…” (mostly accurate); F6 “…the backup doesn't compete with production queries for disk…” (mostly accurate).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3?v=48) · 2026-10-19 06:44 UTC · D+ · audited with v1.0.14 (approx.)
Same article text, re-audited. 17 accurate · 7 wrong · 1 caveat.
ElephantSeal: D+.
Changes: No longer reported: “Vacuum will need to walk the entire table again later.”; “…cannot be solved by partitioning or vertical scaling are resolved. Postgres' hard-coded ceilings of 32-bit XIDs, TOAST OID…”; “If a row exceeds ~2KB, oversized values go to TOAST…”; “…greater limits than 8KB pages, the 2KB TOAST threshold…”; “Accumulate indexes and pay for it with an enlarged heap…”; “…the backup doesn't compete with production queries for disk…”. New: F6 “Additional indexes do not make every write update additional index files” (false); F1 “pg_squeeze requires more free disk than the partition's heap size” (misleading); F4 “Rows over approximately 2 KB do not necessarily move values out of line” (misleading); F21 “…a long query anywhere on the cluster still pins every partition…” (misleading); F23 “Large tables can support appropriate sequential scans” (misleading); F28 “The conclusion contradicts the stated TOAST benefit of partitioning” (misleading); F22 “Repeat VACUUM passes can skip eligible pages” (mostly accurate).
- [Revision 3](https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3?v=50) · 2026-10-19 20:44 UTC · D+ · audited with v1.0.16 (approx.)
Same article text, re-audited. 12 accurate · 5 wrong · 1 caveat.
ElephantSeal: D+.
Changes: No longer reported: “pg_squeeze requires more free disk than the partition's heap size”; “xmin is still cluster-wide, so a long query anywhere on the cluster still pins every partition.”; “Rows over approximately 2 KB do not necessarily move values out of line”; “…a long query anywhere on the cluster still pins every partition…”; “Large tables can support appropriate sequential scans”; “The conclusion contradicts the stated TOAST benefit of partitioning”; “Repeat VACUUM passes can skip eligible pages”. New: F3 “Rows exceeding 2 kB can remain inline after compression” (false); F4 “Additional RAM can cache a table of hundreds of gigabytes” (false); F7 “A subsequent vacuum can skip previously cleaned pages” (false); F2 “Ordinary-table vacuum horizons are normally database-specific” (misleading); F1 “The squeeze disk estimate omits indexes and temporary copies” (mostly accurate).
- [Revision 4](https://pgtrue.postgres.ai/shared/brief/d6f65898-104d-4748-8255-ec4b3cdc84c3?v=53) · this page · 2026-10-21 05:00 UTC · D+ · audited with v1.0.17 (approx.) · regraded with v1.1.3
Same article text, re-audited. 13 accurate · 6 wrong · 0 caveats.
ElephantSeal: D+. Open: the production risk is not yet fixed or warned about.
Changes: No longer reported: “Rows exceeding 2 kB can remain inline after compression”; “Additional RAM can cache a table of hundreds of gigabytes”; “Eligible HOT updates do not write every ordinary index”; “A subsequent vacuum can skip previously cleaned pages”; “Ordinary-table vacuum horizons are normally database-specific”; “The squeeze disk estimate omits indexes and temporary copies”. New: F1 “pg_squeeze needs more spare disk than one partition's size” (false); F2 “…a long query anywhere on the cluster still pins every partition.” (misleading); F3 “A later vacuum need not rescan the entire heap” (misleading); F4 “Crossing roughly 2 kB does not guarantee out-of-line storage” (misleading); F5 “…make every write touch more files.” (misleading); F6 “PostgreSQL has no hundreds-of-GB cache ceiling” (misleading).