pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix calculation for WAL segment recycling and removal
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix calculation for WAL segment recycling and removal
@ 2018-07-24 01:41  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2018-07-24 01:41 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9915735ebbc5c5362f5834f6ad7b86394ded4a85

Modified Files
--------------
src/backend/access/transam/xlog.c | 159 +++++++++++++++++++-------------------
1 file changed, 78 insertions(+), 81 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix calculation for WAL segment recycling and removal
@ 2018-07-24 01:41  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2018-07-24 01:41 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d9fadbf13103d46c0c6b4b92c62ee13f57524896

Modified Files
--------------
src/backend/access/transam/xlog.c | 159 +++++++++++++++++++-------------------
1 file changed, 78 insertions(+), 81 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-07-24 01:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 01:41 pgsql: Fix calculation for WAL segment recycling and removal Michael Paquier <michael@paquier.xyz>
2018-07-24 01:41 pgsql: Fix calculation for WAL segment recycling and removal Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox