!3629 【资源池化】ss_buffer_ctrl对于非资源池化进行拦截

Merge pull request !3629 from 董宁/bugfix3_up
This commit is contained in:
opengauss_bot
2023-06-27 09:01:54 +00:00
committed by Gitee

View File

@ -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;