pgsql: amcheck: Fixes for right page check during unique constraint che

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: amcheck: Fixes for right page check during unique constraint che
Date: 2024-05-26 04:14:27
Message-ID: E1sB5H9-001nfm-K7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

amcheck: Fixes for right page check during unique constraint check

* Don't forget to pfree() the right page when it's to be ignored.
* Report error on unexpected non-leaf right page even if this page is not
to be ignored. This restores the logic which was unintendedly changed
in 97e5b0026f.

Reported-by: Pavel Borisov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/945ec4c4bca1e1c4347cd3f93135e96770ac1b4c

Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-05-26 11:58:46 pgsql: Fix potential NULL pointer dereference in getIdentitySequence()
Previous Message Bruce Momjian 2024-05-26 03:56:29 pgsql: doc PG 17 relnotes: improve btree "set/array" matching item