Skip to content

Research & analyses / Database integrity

PostgreSQL TOAST: which checks reach the value?

Published 2026-10-21 / Updated 2026-11-19 / Controlled software experiment

A row count, a field length and its readable beginning all survived a one-bit change in an externally stored PostgreSQL value. With page checksums, the full read failed. Without them, it returned different bytes that passed the structural checks we tested.

This is a verification-coverage distinction, not a newly discovered PostgreSQL bug. A restore drill needs to say which values it actually reads and which expectations it compares them with.

On this page13 sections

Same damaged value, different answers

Each fixture contains one bytea value: 24,000 ASCII A bytes and a 45-byte marker. The EXTERNAL strategy stores it without compression in 13 TOAST chunks. After a clean shutdown, we change one marker byte from H to I in the last of four 8,192-byte relation pages. No checksum is recomputed.

The table is generated from recorded outcomes. All clean online controls succeeded and returned the expected complete-value digest. All three executions, each using separate checksum-on and checksum-off clusters, agreed.

After the one-bit change / PostgreSQL 16.15 / synthetic bytea
ProbeChecksums onChecksums off
Row count1 row1 row
Byte length24,045 bytes24,045 bytes
First 32 bytesUnchanged prefixUnchanged prefix
Full-value SHA-256Read/check errorDifferent digest
Heap check without TOASTNo report rowsNo report rows
Heap check with TOASTRead/check errorNo report rows
pg_amcheck: both routesRead/check errorExit 0
pg_amcheck: dependent relation onlyRead/check errorExit 0
pg_amcheck: pointers onlyRead/check errorExit 0
pg_amcheck: neither routeExit 0Exit 0
Offline page checksumsOne bad checksumRefuses: not enabled

With checksums on, the full-value hash query raises a read error: there is no digest to compare. With checksums off, the query succeeds and its digest differs from the expected input. The returned digest also matches an independent Python calculation of the deliberately changed payload.

The offline utility's refusal when checksums are disabled is unavailable verification, not a clean result. It is run only after a clean server shutdown, as required by its documented contract. [4]

The row can describe bytes it does not fetch

TOAST can move large fields to a separate relation and leave an external-value pointer in the main row. That pointer includes size information and the identifiers needed to retrieve the chunks. The main row and complete field are therefore different physical coverage units. [1]

For this uncompressed bytea, octet_length can return the size without reconstructing the value. In the pinned source, byteaoctetlen calls toast_raw_datum_size, whose on-disk external case reads the pointer's stored size. [5] [6]

EXTERNAL substring reads can fetch only the part required. Our 32-byte prefix therefore remains a useful partial-read control, not evidence about every later byte. These optimizations are desirable for ordinary queries; treating them as full-content verification changes the question they answer. [1]

The checksum-off mutation preserves a structurally acceptable chunk and a valid bytea value. amcheck has no copy of the original application payload. Its successful structural checks and the failed expected-digest comparison are compatible results. [2]

An index-only scan can still visit the table

The skipped work can begin before TOAST. An eligible index-only scan obtains query values from the index. It uses the heap page's all-visible bit in the visibility map to decide whether a heap visit is needed for visibility. The plan name alone does not establish that the heap was bypassed. [8]

A separate clean-data demonstration uses 256 integer keys, a B-tree primary key and a nonindexed 64-character text field. The query selects only the keys. Three fresh PostgreSQL 16.15 clusters produced the same four observations below; a fourth execution during release review reproduced them. Each plan was an Index Only Scan returning 256 rows in one loop. This does not describe the damaged TOAST fixture above.

Clean rows / 5 heap pages / PostgreSQL 16.15
StageAll-visible pagesHeap Fetches
After insert0 / 5256
After VACUUM5 / 50
After one UPDATE4 / 557
After VACUUM again5 / 50

These are visibility-fetch attempts, not distinct pages or disk reads. In the pinned executor, the counter increments before trying to fetch a heap tuple when the map cannot establish visibility. An unsuccessful attempt also counts; multiple index entries can lead to the same heap page. [9] [10]

After one committed change to the nonindexed text field, one page lost its all-visible mark and heap fetches resumed. That does not mean 57 pages were read or 57 values were corrupted. The visibility map describes row visibility and freezing, not payload equality. VACUUM establishing a visibility bit is not evidence of content repair. [11]

The harness discourages sequential and bitmap plans, disables parallel query and autovacuum only in its disposable cluster, and checks the actual plan. It records map summaries before and after each instrumented query. A separate SELECT verifies the ordered keys because EXPLAIN ANALYZE discards result rows; neither query requests the text field. The exact nonzero fetch counts are fixture-specific. No cold-cache, timing, corruption-detection or hardware claim follows. [12]

Method and replay instructions | Probe | Tests | Run 1 | Run 2 | Run 3 | Review replay | Capture verifier

Index navigation and row visibility are different problems

Lehman and Yao's 1981 B-link tree lets a search follow a sibling link after a concurrent split makes its parent route stale. Their model uses private page copies. PostgreSQL's shared-buffer implementation still takes page-level read locks. Neither navigation mechanism answers whether a row is visible to a transaction: that is the separate map-and-heap decision illustrated above. [13] [14]

Covering a query is not verifying the table

A covering index supplies the values needed by a particular query. Coverage belongs to that index-query pair: asking for an additional stored field can change the answer. It is distinct from choosing the plan, establishing row visibility and checking content integrity. [22]

In PostgreSQL 18, UNIQUE (x) INCLUDE (y) checks uniqueness of x, not of the pair. The included y is payload, not an index search key. More payload consumes space; an oversized index tuple can make insertion fail. This is a documented contract, not a new PostgreSQL experiment. [23]

Having the requested values still leaves PostgreSQL's visibility-map decision above. Partial-index membership can also prove a predicate even without storing its column, so counting referenced columns alone is not a complete eligibility test. [22]

Read coverage has a storage and execution cost

In PostgreSQL 18, any non-key column also disables B-tree deduplication for that index. Adding INCLUDE payload therefore changes more than the available projection: measure the resulting index size and workload instead of assuming that more coverage is free. [23]

Abadi, Madden and Hachem's SIGMOD 2008 study compared C-Store with several physical designs in a commercial row-store on the Star Schema Benchmark. Its index-only design could avoid base-table reads yet incur expensive record-ID joins to reconstruct columns before filtering. A composite covering index can avoid that particular reconstruction; independent single-column indexes are not equivalent. This is a historical mechanism comparison, not a PostgreSQL benchmark or a transferable speed ratio. The authors also caution that implementation differences complicate cross-system timing comparisons. [26]

One SQLite index, three different requests

Our separate three-row, in-memory fixture creates xy ON t(x,y) beside an unindexed z. Every query requires the same index with SQLite's INDEXED BY xy; this is an experimental control, not a tuning recommendation. The following rows come from the recorded native execution, not a hand-written query-plan prediction. [21] [25]

SQLite 3.45.1 / one fixed index / synthetic clean rows
RequestPlan reports coveringReturned rows
Return x,y; filter xYes[[1,"a"],[1,"b"]]
Also return zNo[[1,"a","keep"],[1,"b","drop"]]
Return x,y; also filter zNo[[1,"a"]]

The output-only change requests z; the filter-only change tests z while still returning x,y. Both lose coverage in this fixture. Equal returned values do not imply equal read paths. Raw SQL, plans and result rows are retained in the observation record; the replay script and tests use only a disposable in-memory database.

EXPLAIN QUERY PLAN is a diagnostic interface whose wording can change between SQLite releases. The tests deliberately fail if the observed classification changes. There is no timing, physical-I/O, corruption or PostgreSQL execution result in this additional fixture. [24]

Estimated rows do not measure read coverage

Query cardinality estimation predicts output rows. PostgreSQL EXPLAIN rows is not a count of inspected tuples, heap fetches or verified payload bytes. Repeated nodes report actual rows as a per-execution average; read loops too. An estimate error and a wrong query answer are different problems. [EXPLAIN]

Predicate selectivity is the matching fraction of an explicit input population. For a simple filter, estimated output equals estimated input multiplied by estimated selectivity. That arithmetic does not make either input a measured count. [Row estimates]

Constructed counting model, not a PostgreSQL or MySQL planner run. Counts are rows; the independent-product column is hypothetical.

Constructed row counts
InputTotala = Ab = XBoth, countedBoth, independent product
correlated84442
independent84422
empty0000Not defined
disjoint84402

The correlated input has four (A, X) rows, two (B, Y) rows and two (NULL, NULL) rows. Each equality matches 4/8 rows, and their conjunction still matches 4/8. Assuming independence gives 8 x (4/8) x (4/8) = 2, not the counted four. The independent control contains two of each pair (A, X), (A, Y), (B, X), (B, Y); there the same product agrees with the count.

The disjoint control retains exactly the correlated input's per-column frequencies, including NULLs, but places the four A values on rows without X. The conjunction now matches zero rows while the independent product stays at two. Perfect single-column counts cannot identify which joint distribution is present; the error can go in either direction.

Poosala and Ioannidis studied this missing joint information at VLDB 1997, comparing multidimensional histograms and a two-dimensional SVD approach. More space for separate marginal histograms cannot recover a dependency those summaries do not represent. Their synthetic range-query evaluation does not establish the accuracy of a current PostgreSQL planner or of this equality-count example. [VLDB 1997]

NULL-bearing rows remain in the input denominator. SQL WHERE keeps true results, not false or unknown results; dividing by the six non-NULL rows would answer a different question. Empty input has zero output but no defined empirical matching fraction. These are population and arithmetic distinctions, not special planner behavior. [WHERE]

PostgreSQL documents correlated-column estimation errors and extended statistics that improve supported cases. Dependency statistics do not generally handle range predicates or incompatible combinations of constants. Fresh statistics are not a universal exact-count guarantee. [Correlated columns] [Statistics limits]

Keep distinct-value counts separate: MySQL SHOW INDEX.Cardinality estimates distinct index values. In the correlated fixture, two distinct non-NULL a values, eight input rows and four matching rows are three different quantities. None establishes that a stored TOAST value was read completely or compared with a trusted digest. [Index cardinality]

The model measures no SQL plan, elapsed time or storage I/O. A smaller matching fraction alone does not guarantee an index is cheaper than a scan. Reproduce the exact count controls with the counting model and tests; the machine-readable results retain every constructed row.

A hash match still needs an equality check

A PostgreSQL hash index stores a four-byte hash in place of the original indexed value. Different values can share that hash. A candidate therefore needs an equality recheck, even when its table location is known exactly. This is expected query behavior, not a detected storage fault. [Hash representation] [Recheck implementation]

Different checks answer different questions / documentary comparison
CheckQuestion answeredNot established
Hash candidate selectionWhich entries have the sought hash?Original-value equality
Equality recheckDoes the candidate satisfy the indexed predicate?Integrity of unrelated stored values
MVCC visibilityIs the row visible to this snapshot?Agreement with trusted expected content
Full-value comparisonDoes the value match the supplied reference?Whether the reference is complete and current

In REL_18_0, hashgettuple sets xs_recheck. The bitmap path also marks inserted tuple IDs for rechecking. A bitmap can retain exact offsets while these candidates still need rechecks: page-level lossiness and hash-value lossiness are separate. More bitmap memory cannot restore values omitted by the hash index. [Hash scan paths] [Bitmap precision]

This access method supports single-column equality searches, not uniqueness enforcement, range lookup or sorted output. It cannot supply an index-only scan. The visibility map does not change that capability; index-only retrieval first requires an access method able to return the needed values. [Hash limits] [Index operations] [Index-only requirements]

Overflow chains and foreground bucket splits can add work, so direct bucket access is not a universal speedup. Choose from the operations and data distribution actually required, not the word "hash". [Bucket costs]

The integrity conclusion is narrower: an equality recheck is not a whole-row or whole-database audit. For example, a predicate on an integer key need not read an unrelated external TOAST value. Full-value verification still needs an explicit object set and a trusted reference. [TOAST storage] [Verification scope]

The comparison above synthesizes PostgreSQL 18 documentation and REL_18_0 source. It is not a new hash-index experiment and does not reinterpret the PostgreSQL 16.15 observations above.

An exact bitmap still rejects a hash collision

In three fresh PostgreSQL 16.15 clusters, our clean two-row fixture finds that text values 15601 and 180514 share hashtext = -1082004559. We deliberately search for this collision; it is not a random sample or a collision-rate estimate. Equality with 15601 returns only that value.

The ordinary hash index scan reports one row removed by index recheck. The bitmap index scan supplies two candidates; its heap scan reports one exact block, zero lossy blocks and one row removed by index recheck. The sequential control returns the same row and removes one by its filter. The table is unchanged before and after every run. Exact location and original-value equality are independent properties.

Planner settings select the three paths only inside a disposable, socket-only cluster; each actual plan and separate query result is checked. These are clean-data execution counters, not corruption detection, physical I/O or speed measurements. The selected hash pair is build-specific, not a cross-version promise. Method | Replay script | Tests | Run 1 | Run 2 | Run 3

A bucket split is not an equality proof

Litwin's 1980 linear-hashing paper separates the overflowing bucket from the next bucket chosen for splitting: a predefined split order lets the address space grow incrementally without a routing directory. Overflow can remain while that order catches up. Its access-cost analysis depends on its hashing and workload assumptions, not a universal one-I/O lookup guarantee. [VLDB 1980, sections 2.1 and 3]

PostgreSQL's implementation likewise expands by splitting one existing bucket. That changes bucket routing, not the stored hash's information: two different values with the same complete hash still require equality checking. Do not confuse sharing a bucket with sharing a full hash. This mechanism comparison is not a reproduction of the paper's performance results. [PostgreSQL implementation notes]

VACUUM can finish without removing heap fetches

An open transaction is not the same as a retained snapshot or an assigned transaction ID. In another clean-data experiment, an idle Repeatable Read snapshot and an idle Read Committed transaction with an XID both prevented all-visible marking. A bare BEGIN did not. This is established engine behavior, not a newly discovered PostgreSQL defect.

We ran five controls in each of 3 fresh PostgreSQL 16.15 clusters: two original runs and one same-host review replay. Every target table received 256 committed keys with a nonindexed text field. The holder was opened before insertion; its early read, where present, touched a separate anchor table. No holder had accessed the target when the first VACUUM ran, and no target row was updated or deleted.

After successful VACUUM / 256 returned keys / five heap pages
Idle holder before insertionAll-visible pagesHeap Fetches
No holder5 / 50
Repeatable Read: BEGIN only5 / 50
Read Committed: anchor SELECT5 / 50
Repeatable Read: anchor SELECT0 / 5256
Read Committed: assigned XID0 / 5256

Each control has four observed stages, giving 60 plans across the three clusters. All returned 256 keys in one loop. These fetches are visibility checks, not distinct pages or physical disk reads. The original damaged-value and quiet index-only experiments above are unchanged.

The two holding controls still recorded 256 fetches immediately after COMMIT. After the next VACUUM, both reached five all-visible pages and zero fetches. Releasing the transaction and updating the visibility map are distinct events.

Why a null xmin is not enough

Repeatable Read retains its established snapshot; Read Committed takes a new one for each command. The XID-only holder could therefore see all 256 new rows in its later query, whereas the old Repeatable Read snapshot saw zero. [15]

In the pinned implementation, ComputeXidHorizons considers both the backend's snapshot xmin and assigned XID. VACUUM's all-visible decision also compares committed insertion IDs with its cutoff. This explains how the XID-only control can constrain marking even while its idle backend_xmin is null. The cutoff is conservative, not a fresh per-table calculation for that reader. [16] [17]

The diagnostic itself can matter: pg_current_xact_id() assigns an ID if needed; pg_current_xact_id_if_assigned() does not allocate one just to report it. The latter is documented behavior, not an additional experimental control here. Inspect both backend_xid and backend_xmin, together with transaction ownership, rather than terminating sessions merely because they are idle. [18] [19]

A related research problem, not a transferred benchmark

Bottcher and colleagues' 2019 Steam paper studies obsolete-version reclamation under long-running transactions. Its evaluation implements competing collectors inside HyPer, keeping the rest of the engine fixed; it does not benchmark PostgreSQL. Eager pruning can remove intermediate versions that no active snapshot needs. That is a different optimization from marking an insert-only heap page all-visible. We use the distinction, not the paper's throughput figures, to interpret this fixture. [20]

The exact page and fetch counts depend on this fixture. There is no timing result, production incidence estimate or independent replication. Active long-running Read Committed statements, replication slots, prepared transactions, exported snapshots and other server versions remain outside the experiment. All-visible does not mean all-frozen or content-verified.

Method and reproduction | Generated results | Probe | Verifier | Tests | Run 1 | Run 2 | Review replay

Two routes to the damaged page

The two pg_amcheck exclusions are easy to confuse. In our commands, --exclude-toast-pointers removes checks reached through main-table references. --no-dependent-toast removes automatic selection of the dependent TOAST relation. Each route alone encountered the checksum error; excluding both produced exit 0. [3]

All four variants select public.payloads and use --no-dependent-indexes. The labels in the table describe the remaining TOAST routes, not all pg_amcheck defaults. Raw results preserve the exact flags and error output. This observation does not establish that every corruption would be found by either route.

Make the restore check's promise explicit

Record the required object set and version, then separate three outcomes: readable metadata, structurally acceptable storage, and equality to trusted expected content. A fresh digest calculated from already changed data only identifies those changed bytes. It cannot supply the missing original.

Use full-value comparisons where content equality matters, retain the checker's selection and exclusion options, and keep failures distinct from missing checks. Neither a complete hash nor a structural check alone demonstrates freshness, the presence of every required object, or successful application recovery. Continue with the backup verification analysis and checksum identity boundaries.

There is a useful historical parallel, not a PostgreSQL result, in Bairavasundaram and colleagues' FAST 2008 field study. The storage stack used different checks for checksum mismatches, block identity and parity. A RAID scrub did not perform the filesystem's identity check. Their logs also could not confirm every disk's scrub exposure. We use that observation-scope lesson, not the study's fleet rates, to interpret this small experiment. [7]

Reproduce the checks, keep the limits

The dataset and reproduction package contain 120 online executions and 12 offline invocations across 6 fresh clusters. The first two runs are the original experiment; the third is a review rerun of the same harness on the same host, not independent peer review. Sixteen Python tests cover the mutation, expected-content oracle, recorded controls and publication generator.

Runtime: Ubuntu PostgreSQL 16.15. The recorded mutation is at relation byte offset 32,716, page 3 with zero-based numbering. Raw files retain executable and harness hashes, settings, outputs and generation timestamps. The script accepts no existing database and mutates only its own stopped, disposable fixtures. Never adapt it to damage a live or valuable database.

We tested one uncompressed bytea and one chosen payload bit. Compression, encoding, concurrency, damaged pointers, index corruption, checksum collisions, restoration, power loss and hardware faults are outside scope. Probes run in a fixed order; no cold-cache I/O count or performance claim follows. Repetition checks reproducibility, not detection probability or real-world failure frequency.

For the retrieval mechanism, see detoasting. For a related read-selection problem, see Parquet checksum coverage.

Exact bitmap positions can still require rechecks

A bitmap index scan can search an ordinary B-tree and collect candidate table locations in memory. It does not imply a stored bitmap index. BitmapAnd and BitmapOr combine these candidates before a bitmap heap scan accesses table tuples. Candidate pages are visited in physical order, not the original index-key order; an ORDER BY may need a separate sort. [40]

Three questions remain separate: how precisely the bitmap identifies locations, whether the tuple is visible to the snapshot, and whether its values satisfy the predicates. Exact entries retain tuple offsets; lossy entries retain pages. A memory budget can cause loss of offset precision, but BRIN also supplies lossy candidates from range summaries. More work_mem does not remove an index access method's approximate matches. [41] [44] [45]

Exact locations can still require rechecks. In REL_18_0 an exact bitmap page carries a separate recheck flag. Consider an illustrative intersection: one predicate supplies exact offsets 2 and 7 on a page, while the other supplies only that candidate page. Both offsets can survive, but each visible candidate still needs the combined condition checked. The addresses are precise; the predicate result is not yet established. This is an explanation of the data structure, not captured query output. The measured hash-collision control above provides a separate concrete example of precise locations requiring predicate rechecks. [41] [46]

PostgreSQL REL_18_0 instrumentation: different fields answer different questions
FieldMeaningNot established
Recheck CondA planned predicate available for rechecksWhether or how many rechecks ran
Rows Removed by Index RecheckFailed predicate rechecks, averaged over loops and roundedEvery rechecked or invisible tuple
Rows Removed by FilterRejections by a separate filter, averaged over loops and roundedFailures of the index recheck condition
Heap Blocks: exact / lossyBlock counters by bitmap precision, not divided by loopsUnique pages, physical-device reads or complete payload verification

The executor evaluates the recheck condition when the bitmap result requires it. A displayed Recheck Cond or zero recheck removals therefore cannot establish how many evaluations occurred. Snapshot-invisible tuples are not thereby counted as failed predicate rechecks. Rounding can even display zero after a failed recheck: one rejection across three loops gives a mean of one third, printed with zero decimal places. This is arithmetic from the formatter, not a new database measurement. [42] [43] [46]

These are query-processing signals, not an integrity audit. Even a visible tuple that passes its predicates need not cause every external TOAST byte to be read. Keep bitmap precision, predicate filtering, buffer activity and full-value verification as distinct measurements. The explanation here uses PostgreSQL 18 documentation and REL_18_0 source; the damaged-value experiment above remains scoped to PostgreSQL 16.15. [29] [1]

Why inverting candidate bits can lose valid rows

A positive candidate bitmap can contain false positives. Inverting it turns those extra candidates into missing negative results. Rechecking the rows that remain cannot recover a row that was never visited. This matters when composing bitmap filters or exporting index results outside the query engine; it is not a claim that PostgreSQL performs this faulty operation.

First define the rows and the predicate's truth

O'Neil and Quass's SIGMOD 1997 paper bounds complement by an existence bitmap because allocated row slots can contain holes. It separately retains NULL and non-NULL masks. That read-mostly warehouse model does not specify modern concurrent visibility. [47]

For one snapshot and compatible row identities, let E be the query's visible rows, T those where p is TRUE, and N those where p is UNKNOWN. Then WHERE NOT p selects E & ~(T | N). By contrast, p IS NOT TRUE selects E & ~T and includes UNKNOWN. N belongs to the complete predicate, not necessarily to one nullable column. [48]

Native SQLite 3.45.1: rows (0,5), (2,6), (4,NULL), (6,7)
Predicate pUNKNOWN IDsNOT p IDs
x = 542, 6
(x = 5) OR (x IS NULL)none2, 6
(x = 5) AND 0none0, 2, 4, 6
x IN (SELECT value FROM rhs)2, 4, 6none
x IN (SELECT value FROM rhs WHERE 0)none0, 2, 4, 6

The rhs table contains 5 and NULL. Its empty-subquery control returns no values. The same NULL-valued row can be TRUE, FALSE or UNKNOWN under different predicates; blindly removing every column NULL is therefore unsafe. All seven predicates were checked with and without an index present, without assuming the planner used it. [49]

Complement reverses the approximation

For a two-valued predicate, if T is contained in candidate set C within E, then E minus C is contained in E minus T. The missing negative rows are exactly C minus T. Our native application-side fixture uses positive candidates 0 and 2 for x=5, whose only true row is 0. After excluding the unknown row, inversion returns only 6; the correct negative answer is 2 and 6. Rechecking the survivor still returns only 6. Refining the positive candidates before inversion restores both answers.

A safe generalization tracks two bounds: L is contained in T, and T in H. With exact N and all masks in the same E, the negative answer lies between E minus (H union N) and E minus (L union N). The first is definite; the second is a complete candidate set to recheck. Without a useful positive lower bound, the negative candidate set may need all of E minus N. A precise bit position alone supplies no such bound.

Keep the snapshot with the mask

In a separate two-connection WAL control, the held SQLite reader keeps its original negative answer, 2 and 6, while a committed writer changes the current answer to 3 and 4. Combining the current E with old T and N deliberately produces 2 and 3. A current-state recheck removes 2 but still misses 4. This is a fault in the constructed mask composition, not SQLite isolation. [50]

Practical check: bind each exported mask to its row-identity mapping, query domain, predicate truth meaning, approximation direction and snapshot. Recheck can remove excess candidates, not restore omitted ones. The proof is backed by 65,536 truth/universe configurations, 6,561 candidate configurations and 15,625 dual-bound configurations, plus native SQLite controls. These are finite synthetic domains, not production failure rates or a PostgreSQL experiment. Joins, volatile predicates and concurrent identity reuse are outside this fixture.

Method and reproduction | Recorded results | Runnable probe | Tests | Source provenance

Primary sources

  1. PostgreSQL 16: TOAST, on-disk storage and EXTERNAL strategy
  2. PostgreSQL 16: amcheck, verify_heapam and verification limits
  3. PostgreSQL 16: pg_amcheck, relation selection and TOAST-pointer exclusions
  4. PostgreSQL 16: pg_checksums, clean-shutdown requirement
  5. PostgreSQL REL_16_15: varlena.c, byteaoctetlen and bytea_substring
  6. PostgreSQL REL_16_15: detoast.c, toast_raw_datum_size
  7. Bairavasundaram et al. An Analysis of Data Corruption in the Storage Stack. FAST 2008, sections 2.2, 3.2 and 4.5
  8. PostgreSQL 16: Index-Only Scans and Covering Indexes
  9. PostgreSQL REL_16_15: IndexOnlyNext, visibility checks and heap-fetch instrumentation
  10. PostgreSQL REL_16_15: explain.c, Heap Fetches output
  11. PostgreSQL 16: Visibility Map
  12. PostgreSQL 16: pg_visibility functions and page-level visibility
  13. Lehman and Yao (1981), Efficient Locking for Concurrent Operations on B-Trees, TODS 6(4), 650-670; DOI 10.1145/319628.319663
  14. PostgreSQL REL_16_15: Btree Indexing, algorithm and shared-buffer differences
  15. PostgreSQL 16: Transaction Isolation
  16. PostgreSQL REL_16_15: ComputeXidHorizons, snapshot and assigned-XID cutoffs
  17. PostgreSQL REL_16_15: lazy_scan_prune, all-visible eligibility
  18. PostgreSQL 16: Transaction ID and Snapshot Information Functions
  19. PostgreSQL 16: pg_stat_activity, backend_xid and backend_xmin
  20. Bottcher, Leis, Neumann and Kemper (2019), Scalable Garbage Collection for In-Memory MVCC Systems, PVLDB 13(2), 128-141; DOI 10.14778/3364324.3364328
  21. SQLite Query Planning: covering indexes
  22. PostgreSQL 18: Index-Only Scans and Covering Indexes
  23. PostgreSQL 18: CREATE INDEX, INCLUDE
  24. SQLite: EXPLAIN QUERY PLAN, table and index scans
  25. SQLite: The INDEXED BY Clause
  26. Abadi, Madden and Hachem (2008), Column-Stores vs. Row-Stores: How Different Are They Really? SIGMOD, sections 4, 6.1 and 6.2; DOI 10.1145/1376616.1376712
  27. PostgreSQL 18: Row Estimation Examples
  28. PostgreSQL 18: Statistics Used by the Planner, dependency limitations
  29. PostgreSQL 18: Using EXPLAIN, output rows and repeated nodes
  30. PostgreSQL 18: WHERE, true versus false or null
  31. MySQL 8.4: SHOW INDEX, Cardinality estimates distinct values
  32. PostgreSQL 18: Multivariate Statistics Examples
  33. Poosala and Ioannidis (VLDB 1997): Selectivity Estimation Without the Attribute Value Independence Assumption
  34. PostgreSQL 18: Hash Indexes, capabilities and overflow trade-offs
  35. PostgreSQL REL_18_0: hash access-method capabilities and mandatory recheck flags
  36. PostgreSQL 18: Index Types, equality and range support
  37. PostgreSQL REL_18_0: tuple-ID bitmap precision and candidate rechecks
  38. Witold Litwin (VLDB 1980), Linear Hashing: A New Tool for File and Table Addressing, pp. 212-223
  39. PostgreSQL REL_18_0 hash implementation: incremental bucket splits and overflow pages
  40. PostgreSQL 18: Combining Multiple Indexes
  41. PostgreSQL REL_18_0: TID bitmap precision, recheck flags and intersections
  42. PostgreSQL REL_18_0: bitmap heap scan predicate rechecks
  43. PostgreSQL REL_18_0: EXPLAIN instrumentation and loop denominators
  44. PostgreSQL REL_18_0: bitmap index scan and work_mem budget
  45. PostgreSQL 18: BRIN candidate pages and lossy scans
  46. PostgreSQL REL_18_0: heap bitmap visibility and tuple retrieval
  47. O'Neil and Quass (SIGMOD 1997): Improved Query Performance with Variant Indexes, sections 2.1.2 and 2.3
  48. PostgreSQL 18: comparison predicates, including IS NOT TRUE
  49. SQLite: expression truth and IN/NOT IN matrix
  50. SQLite: isolation and held WAL reader snapshots

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. PostgreSQL TOAST: which checks reach the value?. Hesela. 2026-11-19. https://hesela.com/analyses/postgresql-toast-read-coverage/