Fix custom validators call in build_local_reloptions()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 6e7361c85e95a09ee0d1fbb2f8460962b86489ab
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2023-04-23T11:00:06Z
Releases: 15.3
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

Files

PathChange+/−
src/backend/access/common/reloptions.c modified +3 −2

Discussion