!6546 解决 timescaledb时序表查看SQL执行计划数据库挂掉
Merge pull request !6546 from 叶某人/IAWMYE
This commit is contained in:
@ -8915,8 +8915,11 @@ static char* get_variable(
|
||||
schemaname = NULL; /* default assumptions */
|
||||
|
||||
if (NULL != rte->relname && u_sess->hook_cxt.forTsdbHook) {
|
||||
rte->relname = get_rel_name(rte->relid);
|
||||
rte->eref->aliasname = rte->relname;
|
||||
char *relname = get_rel_name(rte->relid);
|
||||
if (relname != NULL) {
|
||||
rte->relname = pstrdup(relname);
|
||||
rte->eref->aliasname = pstrdup(rte->relname);
|
||||
}
|
||||
}
|
||||
|
||||
refname = rte->eref->aliasname;
|
||||
|
||||
@ -338,6 +338,10 @@ Plan* create_plan(PlannerInfo* root, Path* best_path)
|
||||
find_inlist2join_path(root, best_path);
|
||||
}
|
||||
|
||||
if (u_sess->hook_cxt.forTsdbHook && DB_IS_CMPT(PG_FORMAT) && root->minmax_aggs == NIL) {
|
||||
plan->exec_nodes = ng_get_default_computing_group_exec_node();
|
||||
}
|
||||
|
||||
return plan;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user