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.
This commit is contained in:
Ruslan Fomkin 2019-12-05 12:53:25 +01:00 committed by Ruslan Fomkin
parent 08ad7b6612
commit e6b215b8c0

View File

@ -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);
}