amcheck: Fixes for right page check during unique constraint check
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 26 May 2024 04:14:12 +0000 (07:14 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 26 May 2024 04:14:12 +0000 (07:14 +0300)
commit945ec4c4bca1e1c4347cd3f93135e96770ac1b4c
tree6e15673ac3d19ecd99f2deae588d01625c7ca7dd
parent4cf9aab2147683100a79bf66a2aa87811674d66c
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
contrib/amcheck/verify_nbtree.c