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 519be09 commit ae4fc52Copy full SHA for ae4fc52
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