Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f248b98

Browse files
committed
support 9.4
1 parent 19a7c6c commit f248b98

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.online_analyze

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Module makes an analyze call immediately after INSERT/UPDATE/DELETE/SELECT INTO
22
for affected table(s).
33

4-
Supported versionsi of PostgreSQL: 8.4.*, 9.0.*, 9.1.*, 9.2.*, 9.3.*
4+
Supported versions of PostgreSQL: 8.4.*, 9.0.*, 9.1.*, 9.2.*, 9.3.*, 9.4*
55

66
Usage: LOAD 'online_analyze';
77

online_analyze.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,12 @@ makeAnalyze(Oid relOid, CmdType operation, uint32 naffected)
400400
if (online_analyze_verbose)
401401
startStamp = GetCurrentTimestamp();
402402

403-
analyze_rel(relOid, &vacstmt, GetAccessStrategy(BAS_VACUUM)
404-
#if (PG_VERSION_NUM < 90004) && (PG_VERSION_NUM >= 90000)
403+
analyze_rel(relOid, &vacstmt
404+
#if PG_VERSION_NUM >= 90018
405+
, true
406+
#endif
407+
, GetAccessStrategy(BAS_VACUUM)
408+
#if (PG_VERSION_NUM >= 90000) && (PG_VERSION_NUM < 90004)
405409
, true
406410
#endif
407411
);

0 commit comments

Comments
 (0)