Skip to content

Commit 38bf80e

Browse files
committed
Previous commit fix: but still notify about change.
1 parent 32fd611 commit 38bf80e

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

src/hooks.c

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy