Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ef5a35

Browse files
committed
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 LaneDiscussion:https://postgr.es/m/2656633.1681831542%40sss.pgh.pa.usReviewed-by: Tom Lane, Pavel BorisovBackpatch-through: 13
1 parentdde926b commit9ef5a35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/access/common/reloptions.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,8 +1963,9 @@ build_local_reloptions(local_relopts *relopts, Datum options, bool validate)
19631963
fillRelOptions(opts,relopts->relopt_struct_size,vals,noptions,validate,
19641964
elems,noptions);
19651965

1966-
foreach(lc,relopts->validators)
1967-
((relopts_validator)lfirst(lc)) (opts,vals,noptions);
1966+
if (validate)
1967+
foreach(lc,relopts->validators)
1968+
((relopts_validator)lfirst(lc)) (opts,vals,noptions);
19681969

19691970
if (elems)
19701971
pfree(elems);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp