From 5e5f4628a019343a48a5a1b15ca0e7b9094b765a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Thu, 12 Sep 2019 22:40:24 +0000 Subject: [PATCH] Fix pg12 compile --- src/backend/distributed/executor/local_executor.c | 4 ++++ src/test/regress/.gitignore | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/distributed/executor/local_executor.c b/src/backend/distributed/executor/local_executor.c index 0776b30ef..588fcc05b 100644 --- a/src/backend/distributed/executor/local_executor.c +++ b/src/backend/distributed/executor/local_executor.c @@ -83,7 +83,11 @@ #include "distributed/transaction_management.h" #include "executor/tstoreReceiver.h" #include "executor/tuptable.h" +#if PG_VERSION_NUM >= 120000 +#include "optimizer/optimizer.h" +#else #include "optimizer/planner.h" +#endif #include "nodes/params.h" #include "utils/snapmgr.h" diff --git a/src/test/regress/.gitignore b/src/test/regress/.gitignore index 38f055cfc..e53a4cc02 100644 --- a/src/test/regress/.gitignore +++ b/src/test/regress/.gitignore @@ -18,4 +18,4 @@ /proxy.output # python -**.pyc +*.pyc