Raise max setting of checkpoint_timeout to 1d
authorSimon Riggs
Sun, 11 Sep 2016 22:26:18 +0000 (23:26 +0100)
committerSimon Riggs
Sun, 11 Sep 2016 22:26:18 +0000 (23:26 +0100)
Previously checkpoint_timeout was capped at 3600s
New max setting is 86400s = 24h = 1d

Discussion: 32558.1454471895@sss.pgh.pa.us

doc/src/sgml/config.sgml
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample

index 7c483c6ef340e73750af5775be34188dbcbced9e..cd66abc8ba6bb6d3bef2084736fa39931b2ffade 100644 (file)
@@ -2614,7 +2614,7 @@ include_dir 'conf.d'
       
        
         Maximum time between automatic WAL checkpoints, in seconds.
-        The valid range is between 30 seconds and one hour.
+        The valid range is between 30 seconds and one day.
         The default is five minutes (5min).
         Increasing this parameter can increase the amount of time needed
         for crash recovery.
index c5178f7cadf80f7a2cd568df4d5933e770769c14..c72bd6190a07e4a0cf03847dfd25f08f80fee884 100644 (file)
@@ -2250,7 +2250,7 @@ static struct config_int ConfigureNamesInt[] =
            GUC_UNIT_S
        },
        &CheckPointTimeout,
-       300, 30, 3600,
+       300, 30, 86400,
        NULL, NULL, NULL
    },
 
index 6d0666c44fc865a9a7e85d5dc76500dcc1bbf9de..b1c3aea9ee0b0a933ebdd8d88c32e49dbdd9c36a 100644 (file)
 
 # - Checkpoints -
 
-#checkpoint_timeout = 5min     # range 30s-1h
+#checkpoint_timeout = 5min     # range 30s-1d
 #max_wal_size = 1GB
 #min_wal_size = 80MB
 #checkpoint_completion_target = 0.5    # checkpoint target duration, 0.0 - 1.0