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 10:58:41 +0000 (13:58 +0300)
commitcd115c3530bd59bb0305d62ccef1c9504207ff4c
treeb4129e01bc1f0374fa1476e451317b5e91951ef7
parent0ec0e2095579ca16fb4f3aee086e57fd1a7533eb
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