aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-02-02 14:40:05 -0500
committerRobert Haas <rhaas@postgresql.org>2017-02-02 14:43:38 -0500
commit14ca9abfbe4643408ad6ed3279f2f6366cafb3f1 (patch)
tree21d5e0609b018f69c017376c64271bab12720231 /src
parent08bf6e529587e1e9075d013d859af2649c32a511 (diff)
downloadpostgresql-14ca9abfbe4643408ad6ed3279f2f6366cafb3f1.tar.gz
postgresql-14ca9abfbe4643408ad6ed3279f2f6366cafb3f1.zip
Increase upper bound for bgwriter_lru_maxpages.
There is no particularly good reason to limit this value to 1000, so increase the limit to INT_MAX / 2, the same limit we use for shared_buffers. It's not clear how much practical effect larger settings will have, but there seems no harm in letting people try it. Jim Nasby, less a comment change I stripped out. Discussion: http://postgr.es/m/f6e58a22-030b-eb8a-5457-f62fb08d701c@BlueTreble.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/misc/guc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 74ca4e7432d..c53aededcb4 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -2419,7 +2419,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&bgwriter_lru_maxpages,
- 100, 0, 1000,
+ 100, 0, INT_MAX / 2, /* Same upper limit as shared_buffers */
NULL, NULL, NULL
},