Reorder vacuum GUCs in postgresql.conf.sample to match docs
authorMelanie Plageman <[email protected]>
Mon, 13 Jan 2025 20:21:04 +0000 (15:21 -0500)
committerMelanie Plageman <[email protected]>
Mon, 13 Jan 2025 20:21:04 +0000 (15:21 -0500)
ca9c6a5680d consolidated most of vacuum-related GUCs' documentation into
a new subsection. It neglected, however, to reorganize
postgresql.conf.sample to match the new order. Do this now.

Reported-by: Álvaro Herrera
Discussion: https://postgr.es/m/202501110902.5banlseavz7c%40alvherre.pgsql

src/backend/utils/misc/postgresql.conf.sample

index b2bc43383dbea251f6578da8d04d2086b25bbef2..079efa1baa799eb0bc08c3f163dab8ae57607f65 100644 (file)
 #max_files_per_process = 1000          # min 64
                                        # (change requires restart)
 
-# - Cost-Based Vacuum Delay -
-
-#vacuum_cost_delay = 0                 # 0-100 milliseconds (0 disables)
-#vacuum_cost_page_hit = 1              # 0-10000 credits
-#vacuum_cost_page_miss = 2             # 0-10000 credits
-#vacuum_cost_page_dirty = 20           # 0-10000 credits
-#vacuum_cost_limit = 200               # 1-10000 credits
-
 # - Background Writer -
 
 #bgwriter_delay = 200ms                        # 10-10000ms between rounds
 
 
 #------------------------------------------------------------------------------
-# AUTOVACUUM
+# VACUUMING
 #------------------------------------------------------------------------------
 
+# - Automatic Vacuuming -
+
 #autovacuum = on                       # Enable autovacuum subprocess?  'on'
                                        # requires track_counts to also be on.
 autovacuum_worker_slots = 16   # autovacuum worker slots to allocate
@@ -688,6 +682,22 @@ autovacuum_worker_slots = 16       # autovacuum worker slots to allocate
                                        # autovacuum, -1 means use
                                        # vacuum_cost_limit
 
+# - Cost-Based Vacuum Delay -
+
+#vacuum_cost_delay = 0                 # 0-100 milliseconds (0 disables)
+#vacuum_cost_page_hit = 1              # 0-10000 credits
+#vacuum_cost_page_miss = 2             # 0-10000 credits
+#vacuum_cost_page_dirty = 20           # 0-10000 credits
+#vacuum_cost_limit = 200               # 1-10000 credits
+
+# - Freezing -
+
+#vacuum_freeze_table_age = 150000000
+#vacuum_freeze_min_age = 50000000
+#vacuum_failsafe_age = 1600000000
+#vacuum_multixact_freeze_table_age = 150000000
+#vacuum_multixact_freeze_min_age = 5000000
+#vacuum_multixact_failsafe_age = 1600000000
 
 #------------------------------------------------------------------------------
 # CLIENT CONNECTION DEFAULTS
@@ -722,12 +732,6 @@ autovacuum_worker_slots = 16       # autovacuum worker slots to allocate
 #lock_timeout = 0                              # in milliseconds, 0 is disabled
 #idle_in_transaction_session_timeout = 0       # in milliseconds, 0 is disabled
 #idle_session_timeout = 0                      # in milliseconds, 0 is disabled
-#vacuum_freeze_table_age = 150000000
-#vacuum_freeze_min_age = 50000000
-#vacuum_failsafe_age = 1600000000
-#vacuum_multixact_freeze_table_age = 150000000
-#vacuum_multixact_freeze_min_age = 5000000
-#vacuum_multixact_failsafe_age = 1600000000
 #bytea_output = 'hex'                  # hex, escape
 #xmlbinary = 'base64'
 #xmloption = 'content'