Fix visibility of analyze.
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 13 Oct 2017 14:17:01 +0000 (17:17 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 13 Oct 2017 14:17:01 +0000 (17:17 +0300)
Dmitry Ivanov <d.ivanov@postgrespro.ru>

online_analyze.c

index b6ccf68..3051283 100644 (file)
@@ -558,6 +558,9 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected)
 #endif
                );
 
+               /* Make changes visible to subsequent calls */
+               CommandCounterIncrement();
+
                if (online_analyze_verbose)
                {
                        long    secs;