Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c9f7c99

Browse files
committed
original hook invokation fix
1 parent d0af22a commit c9f7c99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pg_pathman.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ pathman_set_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, Ran
432432
int first_child_relid = 0;
433433

434434
if (!pg_pathman_enable)
435-
return;
435+
goto original_hook;
436436

437437
/* This works only for SELECT queries */
438438
if (root->parse->commandType != CMD_SELECT || !inheritance_disabled)
439-
return;
439+
goto original_hook;
440440

441441
/* Lookup partitioning information for parent relation */
442442
prel = get_pathman_relation_info(rte->relid, &found);
@@ -562,6 +562,8 @@ pathman_set_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, Ran
562562
set_append_rel_size(root, rel, rti, rte);
563563
}
564564

565+
original_hook:
566+
565567
/* Invoke original hook if needed */
566568
if (set_rel_pathlist_hook_original != NULL)
567569
{

0 commit comments

Comments
 (0)