projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fb29d3
)
support 9.1
author
teodor
<teodor>
Mon, 3 Oct 2011 14:31:26 +0000
(14:31 +0000)
committer
teodor
<teodor>
Mon, 3 Oct 2011 14:31:26 +0000
(14:31 +0000)
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
78077e8
..
47943c2
100644
(file)
--- a/
online_analyze.c
+++ b/
online_analyze.c
@@
-338,7
+338,13
@@
makeAnalyze(Oid relOid, CmdType operation, uint32 naffected)
OnlyneAnalyzeTableType reltype;
rel = RelationIdGetRelation(relOid);
OnlyneAnalyzeTableType reltype;
rel = RelationIdGetRelation(relOid);
- reltype = (rel->rd_istemp || rel->rd_islocaltemp) ? OATT_TEMPORARY : OATT_PERSISTENT;
+ reltype =
+#if PG_VERSION_NUM >= 90100
+ (rel->rd_rel->relpersistence == RELPERSISTENCE_TEMP)
+#else
+ (rel->rd_istemp || rel->rd_islocaltemp)
+#endif
+ ? OATT_TEMPORARY : OATT_PERSISTENT;
RelationClose(rel);
/*
RelationClose(rel);
/*