Fix custom validators call in build_local_reloptions()
authorAlexander Korotkov
Sun, 23 Apr 2023 10:55:49 +0000 (13:55 +0300)
committerAlexander Korotkov
Sun, 23 Apr 2023 11:00:13 +0000 (14:00 +0300)
commit9ef5a358378423a1208bee73b9cb3381f27cd3c2
tree300a107329b7f4de3c0e386beaba2452c2287a49
parentdde926b0f67d461f578e29c5505f21e0c710fba0
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