Raise max setting of checkpoint_timeout to 1d
authorSimon Riggs
Sun, 11 Sep 2016 22:27:29 +0000 (23:27 +0100)
committerSimon Riggs
Sun, 11 Sep 2016 22:27:29 +0000 (23:27 +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 4bb32fe7786867b798e16354c42b724426cd1474..45bf8a438b5663e9019dc6d6c6b478b5ded7288d 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 31172ef3007476ba60ca27c2e5d97252ee4fa908..7b7352b5cb2ec009f2b89bdd4222a70261c8de02 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 9644a667ff87a8172a984ea0d77fa23661f03805..ed81e64c0b4d90fe94d54127e9ed19371e6c3d5b 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