@@ -594,18 +594,28 @@ pathman_enable_assign_hook(bool newval, void *extra)
594
594
elog (DEBUG2 , "pg_pathman_enable_assign_hook() [newval = %s] triggered" ,
595
595
newval ? "true" : "false" );
596
596
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
+
597
612
pathman_init_state .auto_partition = newval ;
598
613
pathman_init_state .override_copy = newval ;
599
614
pg_pathman_enable_runtimeappend = newval ;
600
615
pg_pathman_enable_runtime_merge_append = newval ;
601
616
pg_pathman_enable_partition_filter = newval ;
602
617
pg_pathman_enable_bounds_cache = newval ;
603
618
604
- elog (NOTICE ,
605
- "RuntimeAppend, RuntimeMergeAppend and PartitionFilter nodes "
606
- "and some other options have been %s" ,
607
- newval ? "enabled" : "disabled" );
608
-
609
619
/* Purge caches if pathman was disabled */
610
620
if (!newval )
611
621
{
0 commit comments