Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024e00a commit aba3abeCopy full SHA for aba3abe
contrib/pg_trgm/trgm_op.c
@@ -7,6 +7,7 @@
7
8
#include "catalog/pg_type.h"
9
#include "lib/qunique.h"
10
+#include "miscadmin.h"
11
#include "trgm.h"
12
#include "tsearch/ts_locale.h"
13
#include "utils/lsyscache.h"
@@ -492,8 +493,12 @@ iterate_word_similarity(int *trg2indexes,
492
493
494
for (i = 0; i < len2; i++)
495
{
496
+ int trgindex;
497
+
498
+ CHECK_FOR_INTERRUPTS();
499
500
/* Get index of next trigram */
- int trgindex = trg2indexes[i];
501
+ trgindex = trg2indexes[i];
502
503
/* Update last position of this trigram */
504
if (lower >= 0 || found[trgindex])
0 commit comments