projects
/
smlar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fea63f1
)
9.4 support
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 12 Jan 2015 13:45:05 +0000
(16:45 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 12 Jan 2015 13:45:05 +0000
(16:45 +0300)
smlar.c
patch
|
blob
|
history
diff --git
a/smlar.c
b/smlar.c
index
7b34c6e
..
ef89e80
100644
(file)
--- a/
smlar.c
+++ b/
smlar.c
@@
-22,6
+22,12
@@
PG_MODULE_MAGIC;
PG_MODULE_MAGIC;
+#if (PG_VERSION_NUM >= 90400)
+#define SNAPSHOT NULL
+#else
+#define SNAPSHOT SnapshotNow
+#endif
+
static Oid
getDefaultOpclass(Oid amoid, Oid typid)
{
static Oid
getDefaultOpclass(Oid amoid, Oid typid)
{
@@
-40,7
+46,7
@@
getDefaultOpclass(Oid amoid, Oid typid)
scan = systable_beginscan(heapRel,
OpclassAmNameNspIndexId, true,
scan = systable_beginscan(heapRel,
OpclassAmNameNspIndexId, true,
- S
napshotNow
, 1, &skey);
+ S
NAPSHOT
, 1, &skey);
while (HeapTupleIsValid((tuple = systable_getnext(scan))))
{
while (HeapTupleIsValid((tuple = systable_getnext(scan))))
{
@@
-132,7
+138,7
@@
getAMProc(Oid amoid, Oid typid)
#endif
scan = systable_beginscan(heapRel, AccessMethodProcedureIndexId, true,
#endif
scan = systable_beginscan(heapRel, AccessMethodProcedureIndexId, true,
- S
napshotNow
,
+ S
NAPSHOT
,
#if PG_VERSION_NUM >= 90200
4,
#else
#if PG_VERSION_NUM >= 90200
4,
#else