fix windows support
[plantuner.git] / plantuner.c
index afec4bf..9f0c771 100644 (file)
@@ -83,7 +83,7 @@ indexesAssign(const char * newval, bool doit, GucSource source, bool isDisable)
         * accsess to system catalog
         */
        if (MyBackendId == InvalidBackendId || !IsUnderPostmaster ||
-               !IsNormalProcessingMode() || !IsTransactionState())
+               MyAuxProcType != NotAnAuxProcess ||     !IsTransactionState())
        {
                /* reset init state */
                if (isDisable)