diff options
-rw-r--r-- | src/backend/utils/adt/tsvector_op.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c index 4289bef5da7..532363c492c 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -684,6 +684,9 @@ TS_execute(QueryItem *curitem, void *checkval, bool calcnot, /* since this function recurses, it could be driven to stack overflow */ check_stack_depth(); + /* ... and let's check for query cancel while we're at it */ + CHECK_FOR_INTERRUPTS(); + if (curitem->type == QI_VAL) return chkcond(checkval, (QueryOperand *) curitem); |