OSDN Git Service

Fix is_dummy_rel based on changes in PostgreSQL 10.8
authorJignesh Shah <jkshah@amazon.com>
Sun, 2 Jun 2019 20:19:27 +0000 (20:19 +0000)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Thu, 29 Aug 2019 08:23:26 +0000 (17:23 +0900)
This breaks compatibility with older minor versions, but don't bother
keeping it. Binary built using newer PG minor versions works for older
minor versions.

core.c

diff --git a/core.c b/core.c
index 48c9410..71cb6ad 100644 (file)
--- a/core.c
+++ b/core.c
@@ -40,7 +40,6 @@
  *     make_rels_by_clauseless_joins()
  *     join_is_legal()
  *     has_join_restriction()
- *     is_dummy_rel()
  *     mark_dummy_rel()
  *     restriction_is_constant_false()
  *
@@ -1396,16 +1395,6 @@ has_join_restriction(PlannerInfo *root, RelOptInfo *rel)
 
 
 /*
- * is_dummy_rel --- has relation been proven empty?
- */
-static bool
-is_dummy_rel(RelOptInfo *rel)
-{
-       return IS_DUMMY_REL(rel);
-}
-
-
-/*
  * Mark a relation as proven empty.
  *
  * During GEQO planning, this can get invoked more than once on the same