make compile on 9.2
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 11 Sep 2012 11:58:08 +0000 (15:58 +0400)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 11 Sep 2012 11:58:08 +0000 (15:58 +0400)
plantuner.c

index a91bf06..5ef74dd 100644 (file)
@@ -81,7 +81,11 @@ indexesAssign(const char * newval, bool doit, GucSource source, bool isDisable)
        foreach(l, namelist)
        {
                char            *curname = (char *) lfirst(l);
-               Oid                     indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), true);
+               Oid                     indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), 
+#if PG_VERSION_NUM >= 90200
+                                                                                               NoLock,
+#endif
+                                                                                               true);
 
                if (indexOid == InvalidOid)
                {