Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9f7c99

Browse files
committed
original hook invokation fix
1 parentd0af22a commitc9f7c99

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
intfirst_child_relid=0;
433433

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

437437
/* This works only for SELECT queries */
438438
if (root->parse->commandType!=CMD_SELECT|| !inheritance_disabled)
439-
return;
439+
gotooriginal_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)

[8]ページ先頭

©2009-2025 Movatter.jp