amcheck: Fixes for right page check during unique constraint check

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 945ec4c4bca1e1c4347cd3f93135e96770ac1b4c
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-05-26T04:14:12Z
Releases: 17.0
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

Files

PathChange+/−
contrib/amcheck/verify_nbtree.c modified +12 −10