From 8cf81e0675b99db2e51fa8272b9f6b5e84b15e67 Mon Sep 17 00:00:00 2001 From: wangfeihuo Date: Sat, 24 Aug 2024 08:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A0=87=E9=A2=98=E3=80=91=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8Cregexp=5Fcount=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=98=AFctr+c=E6=97=A0=E6=B3=95=E6=8E=90=E6=96=AD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E7=9A=84=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?=E3=80=90=E5=AE=9E=E7=8E=B0=E5=86=85=E5=AE=B9=E3=80=91:=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8Cregexp=5Fcount=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=98=AFctr+c=E6=97=A0=E6=B3=95=E6=8E=90=E6=96=AD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E7=9A=84=E9=97=AE=E9=A2=98.=20?= =?UTF-8?q?=E3=80=90=E6=A0=B9=E5=9B=A0=E5=88=86=E6=9E=90=E3=80=91:=20?= =?UTF-8?q?=E5=9C=A8while=20(RE=5Fwchar=5Fexecute())=E6=97=B6=E6=9C=AA?= =?UTF-8?q?=E5=A4=84=E7=90=86CHECK=5FFOR=5FINTERRUPTS();=20=E3=80=90?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=96=B9=E6=A1=88=E3=80=91:=20=E5=9C=A8while?= =?UTF-8?q?=20(RE=5Fwchar=5Fexecute())=E4=B8=AD=E5=A2=9E=E5=8A=A0CHECK=5FF?= =?UTF-8?q?OR=5FINTERRUPTS=E7=9A=84=E5=A4=84=E7=90=86=E3=80=82=20=E3=80=90?= =?UTF-8?q?=E5=85=B3=E8=81=94=E9=9C=80=E6=B1=82=E6=88=96issue=E3=80=91:=20?= =?UTF-8?q?https://e.gitee.com/opengaussorg/dashboard=3Fissue=3DIAK8VI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/utils/adt/regexp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/backend/utils/adt/regexp.cpp b/src/common/backend/utils/adt/regexp.cpp index c9798130d3..2857195a33 100644 --- a/src/common/backend/utils/adt/regexp.cpp +++ b/src/common/backend/utils/adt/regexp.cpp @@ -1222,6 +1222,7 @@ static regexp_matches_ctx* setup_regexp_matches(text* orig_str, text* pattern, /* search for the pattern, perhaps repeatedly */ prev_match_end = 0; while (RE_wchar_execute(cpattern, wide_str, wide_len, start_search, pmatch_len, pmatch)) { + CHECK_FOR_INTERRUPTS(); /* * If requested, ignore degenerate matches, which are zero-length * matches occurring at the start or end of a string or just after a -- Gitee