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 38bf80e

Browse filesBrowse files
committed
Previous commit fix: but still notify about change.
1 parent 32fd611 commit 38bf80e
Copy full SHA for 38bf80e

File tree

1 file changed

+15
-5
lines changed
Filter options

1 file changed

+15
-5
lines changed

‎src/hooks.c

Copy file name to clipboardExpand all lines: src/hooks.c
+15-5Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,18 +594,28 @@ 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+
if (!(newval == pathman_init_state.pg_pathman_enable &&
598+
newval == pathman_init_state.auto_partition &&
599+
newval == pathman_init_state.override_copy &&
600+
newval == pg_pathman_enable_runtimeappend &&
601+
newval == pg_pathman_enable_runtime_merge_append &&
602+
newval == pg_pathman_enable_partition_filter &&
603+
newval == pg_pathman_enable_bounds_cache))
604+
{
605+
elog(NOTICE,
606+
"RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes "
607+
"and some other options have been %s",
608+
newval ? "enabled" : "disabled");
609+
}
610+
611+
597612
pathman_init_state.auto_partition = newval;
598613
pathman_init_state.override_copy = newval;
599614
pg_pathman_enable_runtimeappend = newval;
600615
pg_pathman_enable_runtime_merge_append = newval;
601616
pg_pathman_enable_partition_filter = newval;
602617
pg_pathman_enable_bounds_cache = newval;
603618

604-
elog(NOTICE,
605-
"RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes "
606-
"and some other options have been %s",
607-
newval ? "enabled" : "disabled");
608-
609619
/* Purge caches if pathman was disabled */
610620
if (!newval)
611621
{

0 commit comments

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