pgsql: Add additional checks while creating the initial decoding snapsh

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add additional checks while creating the initial decoding snapsh
Date: 2022-11-21 03:37:01
Message-ID: E1owxcC-000A5U-Px@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add additional checks while creating the initial decoding snapshot.

As per one of the CI reports, there is an assertion failure which
indicates that we were trying to use an unenforced xmin horizon for
decoding snapshots. Though, we couldn't figure out the reason for
assertion failure these checks would help us in finding the reason if the
problem happens again in the future.

Author: Amit Kapila based on suggestions by Andres Freund
Reviewd by: Andres Freund
Discussion: https://postgr.es/m/CAA4eK1L8wYcyTPxNzPGkhuO52WBGoOZbT0A73Le=ZUWYAYmdfw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/240e0dbacd390a8465552e27c5af11f67d747adb

Modified Files
--------------
src/backend/replication/logical/snapbuild.c | 29 ++++++++++++++++++-----------
src/backend/replication/walsender.c | 5 +++++
2 files changed, 23 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-11-21 09:32:44 pgsql: Replace SQLValueFunction by COERCE_SQL_SYNTAX
Previous Message Andres Freund 2022-11-20 19:57:01 pgsql: lwlock: Fix quadratic behavior with very long wait lists