pgsql: Fix custom validators call in build_local_reloptions()

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix custom validators call in build_local_reloptions()
Date: 2023-04-23 11:31:26
Message-ID: E1pqXwD-004UbS-5p@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9ef5a358378423a1208bee73b9cb3381f27cd3c2

Modified Files
--------------
src/backend/access/common/reloptions.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2023-04-23 11:31:39 pgsql: Validate ltree siglen GiST option to be int-aligned
Previous Message Alexander Korotkov 2023-04-23 11:31:07 pgsql: Validate ltree siglen GiST option to be int-aligned