summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Riggs2017-04-05 19:38:17 +0000
committerSimon Riggs2017-04-05 19:38:17 +0000
commit00b6b6feb12cef53737287b67ecef6aff1f1d8ab (patch)
tree70eec246ea472e47e55eaaa099b8f814deb48243
parented770c325ca374fee7b3b66f5cb29af1a73a1743 (diff)
Allow --with-wal-segsize=n up to n=1024MB
Other part of Beena Emerson's patch to allow testing
-rwxr-xr-xconfigure6
-rw-r--r--configure.in6
-rw-r--r--doc/src/sgml/installation.sgml2
3 files changed, 11 insertions, 3 deletions
diff --git a/configure b/configure
index 56e3f8f242..de8660d00d 100755
--- a/configure
+++ b/configure
@@ -3725,7 +3725,11 @@ case ${wal_segsize} in
16) ;;
32) ;;
64) ;;
- *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
+ 128) ;;
+ 256) ;;
+ 512) ;;
+ 1024) ;;
+ *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64,128,256,512,1024." "$LINENO" 5
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
$as_echo "${wal_segsize}MB" >&6; }
diff --git a/configure.in b/configure.in
index d7c501af6a..b965f47669 100644
--- a/configure.in
+++ b/configure.in
@@ -358,7 +358,11 @@ case ${wal_segsize} in
16) ;;
32) ;;
64) ;;
- *) AC_MSG_ERROR([Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64.])
+ 128) ;;
+ 256) ;;
+ 512) ;;
+ 1024) ;;
+ *) AC_MSG_ERROR([Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64,128,256,512,1024.])
esac
AC_MSG_RESULT([${wal_segsize}MB])
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index 39774a058a..26bfab1ea5 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -1049,7 +1049,7 @@ su - postgres
the size of each individual file in the WAL log. It may be useful
to adjust this size to control the granularity of WAL log shipping.
The default size is 16 megabytes.
- The value must be a power of 2 between 1 and 64 (megabytes).
+ The value must be a power of 2 between 1 and 1024 (megabytes).
Note that changing this value requires an initdb.
</para>
</listitem>