Fix custom validators call in build_local_reloptions()
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 23 Apr 2023 10:55:49 +0000 (13:55 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 23 Apr 2023 11:00:06 +0000 (14:00 +0300)
commit6e7361c85e95a09ee0d1fbb2f8460962b86489ab
tree9e6e62f64372a86231eb40f7a6d40d17e877eff2
parent109363de0a8906ed6b0b4ab5f8e8e3daa3df929a
Fix custom validators call in build_local_reloptions()

We need to call them only when validate == true.

Backpatch to 13, where opclass options were introduced.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/2656633.1681831542%40sss.pgh.pa.us
Reviewed-by: Tom Lane, Pavel Borisov
Backpatch-through: 13
src/backend/access/common/reloptions.c