projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
31796cd
)
fix support of v11
author
Teodor Sigaev
<teodor@sigaev.ru>
Fri, 15 Jun 2018 12:17:29 +0000
(15:17 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Fri, 15 Jun 2018 12:17:29 +0000
(15:17 +0300)
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
20b0e82
..
8af073b
100644
(file)
--- a/
online_analyze.c
+++ b/
online_analyze.c
@@
-927,7
+927,12
@@
onlineAnalyzeHookerUtility(
foreach(l, tblnames)
{
- RangeVar *tblname = (RangeVar*)lfirst(l);
+ RangeVar *tblname =
+#if PG_VERSION_NUM >= 110000
+ (IsA(lfirst(l), VacuumRelation)) ?
+ ((VacuumRelation*)lfirst(l))->relation :
+#endif
+ (RangeVar*)lfirst(l);
Oid tblOid = RangeVarGetRelid(tblname, NoLock, true);
makeAnalyze(tblOid, op, -1);