From f248b98ef1f0850601f197310d917ca835976cf2 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 21 Nov 2014 16:17:08 +0300 Subject: [PATCH] support 9.4 --- README.online_analyze | 2 +- online_analyze.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.online_analyze b/README.online_analyze index 42c692f..3bb942c 100644 --- a/README.online_analyze +++ b/README.online_analyze @@ -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'; diff --git a/online_analyze.c b/online_analyze.c index 8f965c1..299ae57 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -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 ); -- 2.46.1