@@ -273,25 +273,22 @@ extern void create_plain_partial_paths(PlannerInfo *root,
273273
274274
275275/*
276- * ExecEvalExpr
277- *
278- * 'errmsg' specifies error string when result of ExecEvalExpr doesn't return
279- * a single value
276+ * ExecEvalExpr()
277+ * NOTE: 'errmsg' specifies error string when ExecEvalExpr returns multiple values.
280278 */
281279#if PG_VERSION_NUM >= 100000
282280#define ExecEvalExprCompat (expr , econtext , isNull , errHandler ) \
283281 ExecEvalExpr((expr), (econtext), (isNull))
284282#elif PG_VERSION_NUM >= 90500
285283#include "partition_filter.h"
286- extern Datum exprResult ;
287- extern ExprDoneCond isDone ;
288- static inline void
289- dummy_handler () { }
290- static inline void
291- not_signle_result_handler ()
292- {
293- elog (ERROR , ERR_PART_ATTR_MULTIPLE_RESULTS );
294- }
284+
285+ /* Variables for ExecEvalExprCompat() */
286+ extern Datum exprResult ;
287+ extern ExprDoneCond isDone ;
288+
289+ /* Error handlers */
290+ static inline void mult_result_handler () { elog (ERROR , ERR_PART_ATTR_MULTIPLE_RESULTS ); }
291+
295292#define ExecEvalExprCompat (expr , econtext , isNull , errHandler ) \
296293( \
297294 exprResult = ExecEvalExpr((expr), (econtext), (isNull), &isDone), \
@@ -481,11 +478,11 @@ extern int oid_cmp(const void *p1, const void *p2);
481478 completionTag ) \
482479 do { \
483480 PlannedStmt *stmt = makeNode(PlannedStmt); \
484- stmt->commandType = CMD_UTILITY; \
485- stmt->canSetTag = true; \
486- stmt->utilityStmt = (parsetree); \
487- stmt->stmt_location = -1; \
488- stmt->stmt_len = 0; \
481+ stmt->commandType = CMD_UTILITY; \
482+ stmt->canSetTag = true; \
483+ stmt->utilityStmt = (parsetree); \
484+ stmt->stmt_location = -1; \
485+ stmt->stmt_len = 0; \
489486 ProcessUtility(stmt, (queryString), (context), (params), NULL, \
490487 (dest), (completionTag)); \
491488 } while (0)
@@ -550,9 +547,6 @@ extern void set_rel_consider_parallel(PlannerInfo *root,
550547 */
551548
552549void set_append_rel_size_compat (PlannerInfo * root , RelOptInfo * rel , Index rti );
553- List * init_createstmts_for_partition (RangeVar * parent_rv ,
554- RangeVar * partition_rv ,
555- char * tablespace );
556550
557551
558552#endif /* PG_COMPAT_H */
0 commit comments