• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revision64fe7671a3f6ffc65dd1d8f03f60e627ba17bca0 (tree)
Time2019-08-29 17:23:26
AuthorJignesh Shah <jkshah@amaz...>
CommiterKyotaro Horiguchi

Log Message

Fix is_dummy_rel based on changes in PostgreSQL 10.8

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.

Change Summary

Incremental Difference

--- a/core.c
+++ b/core.c
@@ -40,7 +40,6 @@
4040 * make_rels_by_clauseless_joins()
4141 * join_is_legal()
4242 * has_join_restriction()
43- * is_dummy_rel()
4443 * mark_dummy_rel()
4544 * restriction_is_constant_false()
4645 *
@@ -1396,16 +1395,6 @@ has_join_restriction(PlannerInfo *root, RelOptInfo *rel)
13961395
13971396
13981397 /*
1399- * is_dummy_rel --- has relation been proven empty?
1400- */
1401-static bool
1402-is_dummy_rel(RelOptInfo *rel)
1403-{
1404- return IS_DUMMY_REL(rel);
1405-}
1406-
1407-
1408-/*
14091398 * Mark a relation as proven empty.
14101399 *
14111400 * During GEQO planning, this can get invoked more than once on the same
Show on old repository browser