pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix pg_rewind bugs when rewinding a standby server.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  58 ++++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 156 ++++++++++++++++++++++++++
3 files changed, 201 insertions(+), 24 deletions(-)



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

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/81e3c868f891bf291a3ad38d81b04096146c2f6f

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  60 ++++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 165 ++++++++++++++++++++++++++
3 files changed, 211 insertions(+), 25 deletions(-)



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

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2b4f3130382fe2f8705863e4d38589d4d69cd695

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  56 +++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 156 ++++++++++++++++++++++++++
3 files changed, 200 insertions(+), 23 deletions(-)



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

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0740857de7804609783eb9f11f055776c1fff4e8

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  56 +++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 165 ++++++++++++++++++++++++++
3 files changed, 209 insertions(+), 23 deletions(-)



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

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63e316f0bc1d73276b94283ab482513892c5ee75

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  56 +++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 161 ++++++++++++++++++++++++++
3 files changed, 205 insertions(+), 23 deletions(-)



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

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8b5c353ecec81102680ba6ab82ce73961dd266a1

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  56 +++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 161 ++++++++++++++++++++++++++
3 files changed, 205 insertions(+), 23 deletions(-)



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

* pgsql: Fix pg_rewind bugs when rewinding a standby server.
@ 2020-12-03 14:08  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 7+ messages in thread

From: Heikki Linnakangas @ 2020-12-03 14:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix pg_rewind bugs when rewinding a standby server.

If the target is a standby server, its WAL doesn't end at the last
checkpoint record, but at minRecoveryPoint. We must scan all the
WAL from the last common checkpoint all the way up to minRecoveryPoint
for modified pages, and also consider that portion when determining
whether the server needs rewinding.

Backpatch to all supported versions.

Author: Ian Barwick and me
Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gma...

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/020f153dbb48519ebb9780ddbfe87b0532324d49

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c                 |  11 +-
src/bin/pg_rewind/pg_rewind.c                 |  56 +++++----
src/bin/pg_rewind/t/008_min_recovery_point.pl | 156 ++++++++++++++++++++++++++
3 files changed, 200 insertions(+), 23 deletions(-)



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


end of thread, other threads:[~2020-12-03 14:08 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-12-03 14:08 pgsql: Fix pg_rewind bugs when rewinding a standby server. Heikki Linnakangas <heikki.linnakangas@iki.fi>

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