@@ -594,18 +594,28 @@ pathman_enable_assign_hook(bool newval, void *extra)
594594elog (DEBUG2 ,"pg_pathman_enable_assign_hook() [newval = %s] triggered" ,
595595newval ?"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+
597612pathman_init_state .auto_partition = newval ;
598613pathman_init_state .override_copy = newval ;
599614pg_pathman_enable_runtimeappend = newval ;
600615pg_pathman_enable_runtime_merge_append = newval ;
601616pg_pathman_enable_partition_filter = newval ;
602617pg_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 */
610620if (!newval )
611621{