fix windows support
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 15 Feb 2019 07:04:11 +0000 (10:04 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 15 Feb 2019 07:04:11 +0000 (10:04 +0300)
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)