postgresql/src/backend/access
Michael Paquier d9fadbf131 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.
2018-07-24 10:32:56 +09:00
..
brin Fail BRIN control functions during recovery explicitly 2018-06-14 12:51:32 -04:00
common Improve performance of tuple conversion map generation 2018-07-13 19:54:05 +03:00
gin Fix handling of empty uncompressed posting list pages in GIN 2018-07-19 21:04:17 +03:00
gist Rethink how to get float.h in old Windows API for isnan/isinf 2018-07-11 09:11:48 -04:00
hash Clean up warnings from -Wimplicit-fallthrough. 2018-05-01 19:35:08 -04:00
heap Fix inadequate buffer locking in FSM and VM page re-initialization. 2018-07-13 11:53:10 -04:00
index Revise BuildIndexValueDescription to simplify it 2018-07-16 20:20:15 -04:00
nbtree Avoid emitting a bogus WAL record when recycling an all-zero btree page. 2018-07-09 19:26:19 -04:00
rmgrdesc printf("%lf") is not portable, so omit the "l". 2018-05-20 11:40:54 -04:00
spgist Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
tablesample Rethink how to get float.h in old Windows API for isnan/isinf 2018-07-11 09:11:48 -04:00
transam Fix calculation for WAL segment recycling and removal 2018-07-24 10:32:56 +09:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00