diff options
author | Michael Paquier <michael@paquier.xyz> | 2018-07-24 10:32:56 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2018-07-24 10:32:56 +0900 |
commit | d9fadbf13103d46c0c6b4b92c62ee13f57524896 (patch) | |
tree | 5c80c313662b886d6618f5be7f4d3f26a68b40ba /src/backend/utils/adt/numutils.c | |
parent | 1bc180cd2acc55e31b61c4cc9ab4b07670a2566e (diff) | |
download | postgresql-d9fadbf13103d46c0c6b4b92c62ee13f57524896.tar.gz postgresql-d9fadbf13103d46c0c6b4b92c62ee13f57524896.zip |
Fix calculation for WAL segment recycling and removal
Commit 4b0d28de06 has removed the prior checkpoint and related
facilities but has left WAL recycling based on the LSN of the prior
checkpoint, which causes incorrect calculations for WAL removal and
recycling for max_wal_size and min_wal_size. This commit changes things
so as the base calculation point is the last checkpoint generated.
Reported-by: Kyotaro Horiguchi
Author: Kyotaro Horiguchi
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/20180723.135748.42558387.horiguchi.kyotaro@lab.ntt.co.jp
Backpatch: 11-, where the prior checkpoint has been removed.
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
0 files changed, 0 insertions, 0 deletions