support 9.4
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 21 Nov 2014 13:17:08 +0000 (16:17 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 21 Nov 2014 13:17:08 +0000 (16:17 +0300)
README.online_analyze
online_analyze.c

index 42c692f..3bb942c 100644 (file)
@@ -1,7 +1,7 @@
 Module makes an analyze call immediately after INSERT/UPDATE/DELETE/SELECT INTO
 for affected table(s).
 
-Supported versionsi of PostgreSQL: 8.4.*, 9.0.*, 9.1.*, 9.2.*, 9.3.*
+Supported versions of PostgreSQL: 8.4.*, 9.0.*, 9.1.*, 9.2.*, 9.3.*, 9.4*
 
 Usage: LOAD 'online_analyze';
 
index 8f965c1..299ae57 100644 (file)
@@ -400,8 +400,12 @@ makeAnalyze(Oid relOid, CmdType operation, uint32 naffected)
                if (online_analyze_verbose)
                        startStamp = GetCurrentTimestamp();
 
-               analyze_rel(relOid, &vacstmt, GetAccessStrategy(BAS_VACUUM)
-#if (PG_VERSION_NUM < 90004) && (PG_VERSION_NUM >= 90000)
+               analyze_rel(relOid, &vacstmt
+#if PG_VERSION_NUM >= 90018
+                       , true
+#endif
+                       , GetAccessStrategy(BAS_VACUUM)
+#if (PG_VERSION_NUM >= 90000) && (PG_VERSION_NUM < 90004)
                        , true
 #endif
                );