Skip to content

Commit

Permalink
Allow --with-wal-segsize=n up to n=1024MB
Browse files Browse the repository at this point in the history
Other part of Beena Emerson's patch to allow testing
  • Loading branch information
simonat2ndQuadrant committed Apr 5, 2017
1 parent ed770c3 commit 00b6b6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
6 changes: 5 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down
2 changes: 1 addition & 1 deletion doc/src/sgml/installation.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 00b6b6f

Please sign in to comment.