From 45a3eb24bc400549ca3641363efebea5171e20b8 Mon Sep 17 00:00:00 2001 From: dongning12 Date: Tue, 27 Jun 2023 11:17:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=B5=84=E6=BA=90=E6=B1=A0=E5=8C=96]=E8=A7=A3?= =?UTF-8?q?=E5=86=B3ss=5Fbuffer=5Fctrl=E5=9C=A8=E9=9D=9E=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=B1=A0=E5=8C=96=E7=8E=AF=E5=A2=83=E4=B8=8B=E7=9A=84core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/utils/adt/pgstatfuncs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/backend/utils/adt/pgstatfuncs.cpp b/src/common/backend/utils/adt/pgstatfuncs.cpp index 951af4b047..25231bfb07 100644 --- a/src/common/backend/utils/adt/pgstatfuncs.cpp +++ b/src/common/backend/utils/adt/pgstatfuncs.cpp @@ -8806,6 +8806,11 @@ Datum ss_buffer_ctrl(PG_FUNCTION_ARGS) TupleDesc tupledesc; HeapTuple tuple; + if (!ENABLE_DMS) { + ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("This function is not supported while DMS and DSS disable"))); + } + if (SRF_IS_FIRSTCALL()) { int i; BufferDesc* bufHdr = NULL; -- Gitee