Skip to content

Commit d071a30

Browse files
committed
improve pg_pathman_enable_assign_hook()
1 parent 48f98c9 commit d071a30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hooks.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ pathman_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTb
305305

306306
void pg_pathman_enable_assign_hook(bool newval, void *extra)
307307
{
308-
if (pg_pathman_enable == newval)
308+
/* Return quickly if nothing has changed */
309+
if (newval == (pg_pathman_enable &&
310+
pg_pathman_enable_runtimeappend &&
311+
pg_pathman_enable_runtime_merge_append))
309312
return;
310313

311314
pg_pathman_enable_runtime_merge_append = newval;

0 commit comments

Comments
 (0)