From: Teodor Sigaev Date: Fri, 21 Nov 2014 13:17:08 +0000 (+0300) Subject: support 9.4 X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=f248b98ef1f0850601f197310d917ca835976cf2;p=online_analyze.git support 9.4 --- 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 );