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

Appearance settings

Commit 32fd611

Browse filesBrowse files
committed
Remove wrong fastpath in pathman_enable_assign_hook.
If one of options is disabled, but pathman generally enabled and disable SET comes, we actually need to take some actions.
1 parent 2dd78a5 commit 32fd611
Copy full SHA for 32fd611

File tree

1 file changed

+0
-10
lines changed
Filter options

1 file changed

+0
-10
lines changed

‎src/hooks.c

Copy file name to clipboardExpand all lines: src/hooks.c
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -594,16 +594,6 @@ pathman_enable_assign_hook(bool newval, void *extra)
594594
elog(DEBUG2, "pg_pathman_enable_assign_hook() [newval = %s] triggered",
595595
newval ? "true" : "false");
596596

597-
/* Return quickly if nothing has changed */
598-
if (newval == (pathman_init_state.pg_pathman_enable &&
599-
pathman_init_state.auto_partition &&
600-
pathman_init_state.override_copy &&
601-
pg_pathman_enable_runtimeappend &&
602-
pg_pathman_enable_runtime_merge_append &&
603-
pg_pathman_enable_partition_filter &&
604-
pg_pathman_enable_bounds_cache))
605-
return;
606-
607597
pathman_init_state.auto_partition = newval;
608598
pathman_init_state.override_copy = newval;
609599
pg_pathman_enable_runtimeappend = newval;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.