提交 ab281fc5 编写于 作者: D Daniel Gustafsson

Explicitly mark abort() as an allowed API call for gpopt

libgpos has a set of banned API calls which needs to be allowed with
the ALLOW_xxx macro in order for gpopt to compile (and thus run).
The changes to ereport() brought a need for allowing abort() since
it now invokes abort when building with --enable-cassert.

This is a temporary fix awaiting the removal of the banning of
function calls entirely. Pushed even though the CI pipeline failed
to provide a clean run (for seeminly unrelated reasons) due to the
absence of this blocking other efforts.
上级 53be41c9
......@@ -13,6 +13,8 @@
//
//---------------------------------------------------------------------------
#define ALLOW_abort
#include "gpopt/CGPOptimizer.h"
#include "gpopt/utils/COptTasks.h"
......
......@@ -177,6 +177,7 @@
#define ALLOW_has_subclass
#define ALLOW_cdbhash_const
#define ALLOW_cdbhash_const_list
#define ALLOW_abort
#define ALLOW_ExecCheckRTPerms
#define ALLOW_evaluate_expr
......
......@@ -14,6 +14,8 @@
//
//---------------------------------------------------------------------------
#define ALLOW_abort
#include "postgres.h"
#include "access/sysattr.h"
......
......@@ -27,6 +27,7 @@
#define ALLOW_MemoryContextFreeImpl
#define ALLOW_CharGetDatum
#define ALLOW_list_head
#define ALLOW_abort
#include "postgres.h"
#include "utils/array.h"
......
......@@ -14,6 +14,7 @@
//
//---------------------------------------------------------------------------
#define ALLOW_abort
#include "postgres.h"
#include "executor/executor.h"
......
......@@ -14,6 +14,7 @@
//---------------------------------------------------------------------------
#define ALLOW_strcasecmp
#define ALLOW_abort
#include "gpopt/utils/gpdbdefs.h"
#include "gpopt/utils/CConstExprEvaluatorProxy.h"
......
......@@ -14,6 +14,7 @@
//---------------------------------------------------------------------------
#define ALLOW_appendStringInfo
#define ALLOW_abort
#include <sys/stat.h>
#include "gpopt/utils/nodeutils.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册