{"kind": "relopts", "major": "18", "item": {"slug": "btree-vacuum-cleanup-index-scale-factor", "name": "vacuum_cleanup_index_scale_factor", "name_zh": "vacuum_cleanup_index_scale_factor", "category": "B-tree indexes", "summary": "Not recorded in the selected version.", "aliases": ["btree.vacuum_cleanup_index_scale_factor"], "versions": {"11": {"facts": [{"label": "Applies to", "value": "B-tree indexes"}, {"label": "Value type", "value": "floating point"}], "related": [{"url": "/docs/guc/vacuum_cleanup_index_scale_factor/?v=11", "label": "Global parameter vacuum_cleanup_index_scale_factor"}, {"url": "/docs/sql/create-index/?v=11", "label": "CREATE INDEX"}], "release": {"ref": "Local English manual 11.22", "label": "11.22", "major": "11", "channel": "historical", "revision": "284f2186559443efefbb1ea3b00740c25dccd01e540ecbdb81dadf5127e54a0b"}, "sources": [{"url": "/docs/11/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS", "path": "sql-createindex.html", "label": "PostgreSQL 11 English manual", "sha256": "e7cfb07816fa696f1a7d5a3a8c43287796d08f48bddd6b2413279895b57ff2da"}, {"url": "/docs/11/runtime-config-client.html#GUC-VACUUM-CLEANUP-INDEX-SCALE-FACTOR", "path": "runtime-config-client.html", "label": "Related global parameter: vacuum_cleanup_index_scale_factor", "sha256": "488947b3f6c09ac9a815b8602e852239936b403ef214249fee7aeca1469c25ba"}], "sections": [{"title": "Index access method", "paragraphs": ["This entry applies to B-tree indexes. Set it with CREATE INDEX WITH or ALTER INDEX SET. Read defaults and behavior for this specific access method."]}, {"title": "Related global parameter: vacuum_cleanup_index_scale_factor", "paragraphs": ["The following same-version GUC definition explains its purpose and units. Global defaults and activation rules describe the GUC; the relation-option override rules remain those above.", "Specifies the fraction of the total number of heap tuples counted in the previous statistics collection that can be inserted without incurring an index scan at the VACUUM cleanup stage. This setting currently applies to B-tree indexes only.", "If no tuples were deleted from the heap, B-tree indexes are still scanned at the VACUUM cleanup stage when at least one of the following conditions is met: the index statistics are stale, or the index contains deleted pages that can be recycled during cleanup. Index statistics are considered to be stale if the number of newly inserted tuples exceeds the vacuum_cleanup_index_scale_factor fraction of the total number of heap tuples detected by the previous statistics collection. The total number of heap tuples is stored in the index meta-page. Note that the meta-page does not include this data until VACUUM finds no dead tuples, so B-tree index scan at the cleanup stage can only be skipped if the second and subsequent VACUUM cycles detect no dead tuples.", "The value can range from 0 to 10000000000 . When vacuum_cleanup_index_scale_factor is set to 0 , index scans are never skipped during VACUUM cleanup. The default value is 0.1 ."]}], "signature": "WITH (vacuum_cleanup_index_scale_factor = value)", "description": ["Per-index value for vacuum_cleanup_index_scale_factor ."]}, "12": {"facts": [{"label": "Applies to", "value": "B-tree indexes"}, {"label": "Value type", "value": "floating point"}], "related": [{"url": "/docs/guc/vacuum_cleanup_index_scale_factor/?v=12", "label": "Global parameter vacuum_cleanup_index_scale_factor"}, {"url": "/docs/sql/create-index/?v=12", "label": "CREATE INDEX"}], "release": {"ref": "Local English manual 12.22", "label": "12.22", "major": "12", "channel": "historical", "revision": "0a1032bc0c23478646e9ee7d36edb066dca27b8540fd64d7fd47dcb6a8a6ccb4"}, "sources": [{"url": "/docs/12/sql-createindex.html#INDEX-RELOPTION-VACUUM-CLEANUP-INDEX-SCALE-FACTOR", "path": "sql-createindex.html", "label": "PostgreSQL 12 English manual", "sha256": "deedeb34af9b62564d13ab2d379b31b19d4de6fb89a0e712826211914a0c5805"}, {"url": "/docs/12/runtime-config-client.html#GUC-VACUUM-CLEANUP-INDEX-SCALE-FACTOR", "path": "runtime-config-client.html", "label": "Related global parameter: vacuum_cleanup_index_scale_factor", "sha256": "7f27882cdde3b36cef070cdd14ce3f080b65ed837d3f6b41f3faf454ba89cc63"}], "sections": [{"title": "Index access method", "paragraphs": ["This entry applies to B-tree indexes. Set it with CREATE INDEX WITH or ALTER INDEX SET. Read defaults and behavior for this specific access method."]}, {"title": "Related global parameter: vacuum_cleanup_index_scale_factor", "paragraphs": ["The following same-version GUC definition explains its purpose and units. Global defaults and activation rules describe the GUC; the relation-option override rules remain those above.", "Specifies the fraction of the total number of heap tuples counted in the previous statistics collection that can be inserted without incurring an index scan at the VACUUM cleanup stage. This setting currently applies to B-tree indexes only.", "If no tuples were deleted from the heap, B-tree indexes are still scanned at the VACUUM cleanup stage when at least one of the following conditions is met: the index statistics are stale, or the index contains deleted pages that can be recycled during cleanup. Index statistics are considered to be stale if the number of newly inserted tuples exceeds the vacuum_cleanup_index_scale_factor fraction of the total number of heap tuples detected by the previous statistics collection. The total number of heap tuples is stored in the index meta-page. Note that the meta-page does not include this data until VACUUM finds no dead tuples, so B-tree index scan at the cleanup stage can only be skipped if the second and subsequent VACUUM cycles detect no dead tuples.", "The value can range from 0 to 10000000000 . When vacuum_cleanup_index_scale_factor is set to 0 , index scans are never skipped during VACUUM cleanup. The default value is 0.1 ."]}], "signature": "WITH (vacuum_cleanup_index_scale_factor = value)", "description": ["Per-index value for vacuum_cleanup_index_scale_factor ."]}}, "content_hash": "0bf23d6fc05faee9928cc742382c6de5275972bda7c761aa87e50b424343dc05", "imported_at": "2026-09-27T09:57:58.910"}, "snapshot": null, "comparison": {"left": "10", "right": "11", "status": "added", "diff": "--- PostgreSQL 10\n+++ PostgreSQL 11\n@@ -1 +1,14 @@\n-Not recorded in this version\n+{\n+  \"facts\": [\n+    {\n+      \"label\": \"Applies to\",\n+      \"value\": \"B-tree indexes\"\n+    },\n+    {\n+      \"label\": \"Value type\",\n+      \"value\": \"floating point\"\n+    }\n+  ],\n+  \"signature\": \"WITH (vacuum_cleanup_index_scale_factor = value)\",\n+  \"tables\": null\n+}"}}