File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -479,6 +479,11 @@ iterate_substring_similarity(int *trg2indexes,
479
479
lower = tmp_lower ;
480
480
count = tmp_count ;
481
481
}
482
+ /*
483
+ * if we only check that substring similarity is greater than
484
+ * pg_trgm.substring_limit we do not need to calculate a
485
+ * maximum similarity
486
+ */
482
487
if (check_only && smlr_cur >= trgm_substring_limit )
483
488
break ;
484
489
@@ -492,6 +497,11 @@ iterate_substring_similarity(int *trg2indexes,
492
497
}
493
498
494
499
smlr_max = Max (smlr_max , smlr_cur );
500
+ /*
501
+ * if we only check that substring similarity is greater than
502
+ * pg_trgm.substring_limit we do not need to calculate a
503
+ * maximum similarity
504
+ */
495
505
if (check_only && smlr_max >= trgm_substring_limit )
496
506
break ;
497
507
You can’t perform that action at this time.
0 commit comments