From 9bb33c2a4b021b8cd4bb4641f68dda0c3ec0e19f Mon Sep 17 00:00:00 2001 From: flyly Date: Sat, 12 Jun 2021 16:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=EF=BC=9A=E3=80=90=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E8=8C=83=E7=95=B4=EF=BC=9A=E5=88=86=E5=B8=83=E5=BC=8F?= =?UTF-8?q?=E3=80=91=E3=80=90=E6=B5=8B=E8=AF=95=E7=B1=BB=E5=9E=8B=EF=BC=9A?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E9=95=BF=E7=A8=B3=E3=80=91=E3=80=90=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=B4=BB=E5=8A=A8=EF=BC=9A=E4=B8=93=E9=A1=B9=E3=80=91?= =?UTF-8?q?=E3=80=90=E4=B8=93=E9=A1=B9=E5=90=8D=E7=A7=B0=EF=BC=9A=E5=8E=8B?= =?UTF-8?q?=E5=8A=9B=E9=95=BF=E7=A8=B3=E3=80=91=E3=80=90=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=EF=BC=9A=E8=A3=B8=E6=9C=BA=E3=80=91=E6=89=A7=E8=A1=8CTPCC+?= =?UTF-8?q?=E6=B7=B7=E5=90=88DDL=E3=80=81DML=E4=B8=9A=E5=8A=A1=EF=BC=8CCN?= =?UTF-8?q?=E4=BA=A7=E7=94=9Fhang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/utils/error/elog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/backend/utils/error/elog.cpp b/src/common/backend/utils/error/elog.cpp index bdff1e3cd..aef980f04 100644 --- a/src/common/backend/utils/error/elog.cpp +++ b/src/common/backend/utils/error/elog.cpp @@ -514,7 +514,10 @@ void errfinish(int dummy, ...) if (edata->elevel >= u_sess->attr.attr_common.backtrace_min_messages) { StringInfoData buf; initStringInfo(&buf); + + HOLD_INTERRUPTS(); int ret = output_backtrace_to_log(&buf); + RESUME_INTERRUPTS(); if (0 == ret) { edata->backtrace_log = pstrdup(buf.data);