{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c", "published": "2026-11-12T04:49:11Z", "publisher": "PostgresAI", "article": {"title": "B-tree pages, sorted and sparse", "url": "https://boringsql.com/posts/index-storage-and-bloat", "date_published": "2026-11-10T00:00:00Z", "author": "Radim Marek", "publisher": "boringSQL"}, "grade": "A-", "axes": [{"axis": "Factual", "summary": "B+ \u00b7 1 wrong of 20 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "A \u00b7 0 checked \u00b7 partly assessed"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 2 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "A \u00b7 0 wrong of 3 checked \u00b7 0 caveats \u00b7 partly assessed"}, {"axis": "Safe", "summary": "A \u00b7 0 checked \u00b7 partly assessed"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F1", "claim": "\u2026queries that would use it are blocked\u2026", "title": "Plain REINDEX blocks planning for reads beyond the rebuilt index.", "explanation": "Plain REINDEX blocks most newly planned queries against the table. plancat.c:242-256 opens every index before selecting a plan. The 18.6 documentation states this consequence. Some cached plans can continue without the rebuilt index. A maintenance plan that expects other reads to continue can interrupt them.", "verdict": "Misleading", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L282-L286", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:282-286"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/util/plancat.c#L242-L256", "label": "REL_18_6 \u00b7 src/backend/optimizer/util/plancat.c:242-256"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L282-L286", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:282-286"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F4", "claim": "It won't merge two half-empty siblings\u2026", "title": "VACUUM does not merge partially filled B-tree leaves.", "explanation": "PostgreSQL 18.6 considers whole-page deletion after a leaf becomes empty. README:235-239 explains why moving entries between partially filled pages can make concurrent scans miss tuples. VACUUM does not repack those surviving leaves.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/README#L235-L239", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/README:235-239"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/README#L235-L239", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/README:235-239"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F5", "claim": "\u2026a split there leaves the old page 90% full\u2026", "title": "Rightmost splits use the leaf fillfactor target.", "explanation": "nbtsplitloc.c:94-98 targets fillfactor on the old page during rightmost splits. The default target is 90 percent. Ordinary splits generally balance free space. nbtsort.c builds replacement indexes from sorted tuples and applies the configured packing target.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtsplitloc.c#L94-L98", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/nbtsplitloc.c:94-98"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtsort.c#L8-L12", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/nbtsort.c:8-12"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F6", "claim": "bt_page_stats reports 4 fewer because it allows for one more line pointer\u2026", "title": "bt_page_stats reserves 4 bytes for another item identifier.", "explanation": "bt_page_stats calls PageGetFreeSpace. bufpage.c:915-919 subtracts one ItemIdData, which occupies 4 bytes. pgstatindex.c:311 instead accumulates PageGetExactFreeSpace. The article correctly explains this accounting difference.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pageinspect/btreefuncs.c#L188-L188", "label": "REL_18_6 \u00b7 contrib/pageinspect/btreefuncs.c:188-188"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/page/bufpage.c#L915-L919", "label": "REL_18_6 \u00b7 src/backend/storage/page/bufpage.c:915-919"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgstattuple/pgstatindex.c#L311-L311", "label": "REL_18_6 \u00b7 contrib/pgstattuple/pgstatindex.c:311-311"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L891-L895", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:891-895"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/configure.ac#L260-L260", "label": "REL_18_6 \u00b7 configure.ac:260-260"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L792-L792", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:792-792"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pageinspect/btreefuncs.c#L188-L188", "label": "REL_18_6 \u00b7 contrib/pageinspect/btreefuncs.c:188-188"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/page/bufpage.c#L915-L919", "label": "REL_18_6 \u00b7 src/backend/storage/page/bufpage.c:915-919"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L766-L766", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:766-766"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/nbtree.h#L65-L69", "label": "REL_18_6 \u00b7 src/include/access/nbtree.h:65-69"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F7", "claim": "\u2026pageinspect checks for a superuser inside every function\u2026", "title": "Standard pageinspect functions require superuser privileges.", "explanation": "The PostgreSQL 18.6 documentation restricts pageinspect functions to superusers. btreefuncs.c:273-276 enforces that restriction inside the function. Granting EXECUTE alone does not bypass this check.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pageinspect/btreefuncs.c#L273-L276", "label": "REL_18_6 \u00b7 contrib/pageinspect/btreefuncs.c:273-276"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/pageinspect.sgml#L11-L13", "label": "REL_18_6 \u00b7 doc/src/sgml/pageinspect.sgml:11-13"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F8", "claim": "\u2026REINDEX CONCURRENTLY builds a fresh copy of the index next to the old one without blocking reads or writes\u2026", "title": "REINDEX CONCURRENTLY supports the described replacement process since PostgreSQL 12.", "explanation": "REL_12_0 includes REINDEX CONCURRENTLY. The 18.6 documentation describes a replacement index and SHARE UPDATE EXCLUSIVE session locks. These locks permit ordinary reads and writes while preventing conflicting schema changes. Concurrent rebuilding performs more work and waits for relevant transactions.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L391-L395", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:391-395"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L170-L172", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:170-172"}, {"url": "https://github.com/postgres/postgres/blob/ad1f2885b8c82e0c2d56d7974f012cbecce17a17/doc/src/sgml/ref/reindex.sgml#L24-L24", "label": "REL_12_0 \u00b7 doc/src/sgml/ref/reindex.sgml:24-24"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F9", "claim": "\u2026no scan can still be on its way to it\u2026", "title": "Deleted B-tree pages wait for a safe transaction horizon before reuse.", "explanation": "nbtpage.c:2646-2647 records the next full transaction ID when deleting a page. Lines 3048-3052 require that ID to become globally removable before recording reusable space. README:397-401 explains why another transaction can advance this boundary.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtpage.c#L2646-L2647", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/nbtpage.c:2646-2647"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtpage.c#L3048-L3052", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/nbtpage.c:3048-3052"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/README#L397-L401", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/README:397-401"}]}, {"anchor": "F10", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F10", "claim": "\u2026a DELETE operation stamps xmax on the heap tuple\u2026", "explanation": "heapam.c:3123-3132 updates the heap tuple's transaction information and sets xmax. Ordinary deletion leaves index tuple removal for later cleanup. The article correctly separates deletion from VACUUM's index cleanup.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L3123-L3132", "label": "REL_18_6 \u00b7 src/backend/access/heap/heapam.c:3123-3132"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeModifyTable.c#L1808-L1809", "label": "REL_18_6 \u00b7 src/backend/executor/nodeModifyTable.c:1808-1809"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F11", "claim": "\u2026VACUUM FULL , which rebuilds every index on the table as a side effect\u2026", "title": "VACUUM FULL rebuilds the table's indexes during its heap rewrite.", "explanation": "VACUUM FULL writes a replacement heap under ACCESS EXCLUSIVE. cluster.c:1515 calls reindex_relation during that rewrite. Targeting one bloated index with REINDEX avoids this table-wide heap rewrite.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/cluster.c#L1511-L1515", "label": "REL_18_6 \u00b7 src/backend/commands/cluster.c:1511-1515"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/vacuum.sgml#L86-L90", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/vacuum.sgml:86-90"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F12", "claim": "SELECT pg_relation_size('idx_demo') AS heap_size, pg_relation_size('idx_demo_value') AS index_size;\u2026", "title": "The size queries measure the heap and index main forks.", "explanation": "The one-argument pg_relation_size wrapper selects the main fork. dbsize.c:383-388 calculates that fork's size when queried. The calls exclude visibility maps, free-space maps, and separate indexes. Their use matches the article's comparison of heap and B-tree data pages.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_functions.sql#L285-L289", "label": "REL_18_6 \u00b7 src/backend/catalog/system_functions.sql:285-289"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L30160-L30161", "label": "REL_18_6 \u00b7 doc/src/sgml/func.sgml:30160-30161"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/dbsize.c#L383-L388", "label": "REL_18_6 \u00b7 src/backend/utils/adt/dbsize.c:383-388"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F13", "claim": "\u2026line pointers, tuples packed from the bottom up\u2026", "title": "B-tree pages combine item identifiers, backward tuple allocation, and sibling links.", "explanation": "Item identifiers follow the page header and occupy 4 bytes each. PostgreSQL allocates tuple data backward from the free-space boundary. BTPageOpaqueData stores sibling block numbers. nbtsort.c constructs B-tree pages from sorted tuples.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L891-L895", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:891-895"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L913-L915", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:913-915"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/nbtree.h#L65-L69", "label": "REL_18_6 \u00b7 src/include/access/nbtree.h:65-69"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtsort.c#L8-L12", "label": "REL_18_6 \u00b7 src/backend/access/nbtree/nbtsort.c:8-12"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F15", "claim": "\u2026id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY\u2026", "explanation": "The grammar accepts GENERATED ALWAYS AS IDENTITY. The identity sequence supplies omitted id values. generate_series includes its stop value. The largest initial multiplication, 791,900,000, fits the int4 column arithmetic used by this recipe.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ddl.sgml#L268-L270", "label": "REL_18_6 \u00b7 doc/src/sgml/ddl.sgml:268-270"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L4015-L4023", "label": "REL_18_6 \u00b7 src/backend/parser/gram.y:4015-4023"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/int.c#L1590-L1603", "label": "REL_18_6 \u00b7 src/backend/utils/adt/int.c:1590-1603"}]}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F17", "claim": "\u2026Available since PostgreSQL 12, REINDEX CONCURRENTLY\u2026", "title": "PostgreSQL 12 introduced REINDEX CONCURRENTLY", "explanation": "PostgreSQL 12.0 introduced REINDEX CONCURRENTLY. REL_12_0 doc/src/sgml/release-12.sgml:2048-2050 records the addition. PostgreSQL 18.6 retains the option.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/ad1f2885b8c82e0c2d56d7974f012cbecce17a17/doc/src/sgml/release-12.sgml#L2048-L2050", "label": "REL_12_0 \u00b7 doc/src/sgml/release-12.sgml:2048-2050"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L170-L171", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:170-171"}]}, {"anchor": "F18", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F18", "claim": "\u2026without blocking reads or writes\u2026", "explanation": "REINDEX CONCURRENTLY permits normal reads and writes during the rebuild. REL_18_6 doc/src/sgml/ref/reindex.sgml:170-171 confirms that its locks permit concurrent inserts, updates, and deletes. This guarantee does not eliminate resource contention.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L391-L395", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:391-395"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/reindex.sgml#L170-L171", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/reindex.sgml:170-171"}]}, {"anchor": "F19", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F19", "claim": "At the moment of deletion, nothing in the index changes\u2026", "title": "DELETE leaves index tuple removal to later cleanup", "explanation": "Ordinary DELETE does not immediately remove the corresponding index tuples. REL_18_6 src/backend/executor/nodeModifyTable.c:1808-1809 explains that other transactions can still see the heap tuple. Later cleanup removes obsolete index entries.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeModifyTable.c#L1808-L1809", "label": "REL_18_6 \u00b7 src/backend/executor/nodeModifyTable.c:1808-1809"}]}, {"anchor": "F20", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F20", "claim": "B-tree pages use the same 8KB skeleton (24-byte header\u2026", "title": "The default page and header sizes agree", "explanation": "The example uses 8,192-byte pages and a 24-byte fixed header. REL_18_6 configure.ac:260 maps the default 8 kB selection to 8,192 bytes. doc/src/sgml/storage.sgml:792 confirms the header size.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/configure.ac#L260-L260", "label": "REL_18_6 \u00b7 configure.ac:260-260"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L792-L792", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:792-792"}]}, {"anchor": "F21", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F21", "claim": "\u2026The index is 276 pages: the metapage, the root, and 274 leaves.", "title": "The byte totals match the page counts", "explanation": "All displayed byte totals match their page counts at 8,192 bytes per page. The index totals are 276, 385, and 243 pages. The heap total is 443 pages. contrib/pgstattuple/pgstatindex.c:350 includes page 0 in index_size.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/configure.ac#L260-L260", "label": "REL_18_6 \u00b7 configure.ac:260-260"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgstattuple/pgstatindex.c#L350-L354", "label": "REL_18_6 \u00b7 contrib/pgstattuple/pgstatindex.c:350-354"}]}, {"anchor": "F22", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F22", "claim": "\u2026 4 | 1 | 2260992 | 3 | 1 | 274 | 0 | 0 | 89.78 | 0\u2026", "title": "All five leaf-density percentages agree", "explanation": "The five densities agree with 20 bytes per item and 8,152 usable bytes per leaf. Each nonrightmost leaf contributes one high key. Recalculated densities are 89.78%, 18.15%, 53.97%, 64.30%, and 89.83%. contrib/pgstattuple/pgstatindex.c:309 and :360 implement the denominator and percentage.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L792-L792", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:792-792"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgstattuple/pgstatindex.c#L309-L311", "label": "REL_18_6 \u00b7 contrib/pgstattuple/pgstatindex.c:309-311"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgstattuple/pgstatindex.c#L360-L362", "label": "REL_18_6 \u00b7 contrib/pgstattuple/pgstatindex.c:360-362"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L766-L766", "label": "REL_18_6 \u00b7 doc/src/sgml/storage.sgml:766-766"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/nbtree.h#L65-L69", "label": "REL_18_6 \u00b7 src/include/access/nbtree.h:65-69"}]}, {"anchor": "F23", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F23", "claim": "\u2026SELECT (i * 7919) % 100003 FROM generate_series(1, 100000) AS i\u2026", "title": "The modular generator produces the displayed distinct count and bounds", "explanation": "The formula produces 100,000 distinct integer values. Its minimum is 1 and maximum is 100002. Multiplication by 7919 permutes residues modulo 100003 because their greatest common divisor is 1.", "verdict": "Accurate", "sources": []}, {"anchor": "F24", "url": "https://pgtrue.postgres.ai/shared/brief/01a1ce2f-c495-7a1c-9a29-9a37b9f15d5c#F24", "claim": "\u2026 9 | (347,113) | 16 | 08 00 00 00 00 00 00 00\u2026", "explanation": "Key 8 retains ctid (347,113) across the two displayed rows. Its item offset changes from 9 to 2. These quotations establish consistency for key 8, not the other entries.", "verdict": "Accurate", "sources": []}], "grade_reason": "capped by Factual: 1 finding"}