From e6b215b8c0bb997394d08e1a944c75dd2487dc95 Mon Sep 17 00:00:00 2001 From: Ruslan Fomkin Date: Thu, 5 Dec 2019 12:53:25 +0100 Subject: [PATCH] Remove duplicate allocation during planning Removes duplicate call to setup_append_rel_array and avoids allocating another append_rel_array with the same values during planning queries with hypertables. --- src/planner.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/planner.c b/src/planner.c index 74371ca0e..6603c6b4b 100644 --- a/src/planner.c +++ b/src/planner.c @@ -507,9 +507,6 @@ timescaledb_get_relation_info_hook(PlannerInfo *root, Oid relation_objectid, boo rel->fdw_private = palloc0(sizeof(TimescaleDBPrivate)); ts_plan_expand_hypertable_chunks(ht, root, relation_objectid, inhparent, rel); -#if PG11_GE - setup_append_rel_array(root); -#endif ts_cache_release(hcache); }