From: Teodor Sigaev Date: Tue, 11 Sep 2012 11:58:08 +0000 (+0400) Subject: make compile on 9.2 X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=9e19c8ca1864564ba32ac238da9ace5cc561418d;p=plantuner.git make compile on 9.2 --- diff --git a/plantuner.c b/plantuner.c index a91bf06..5ef74dd 100644 --- a/plantuner.c +++ b/plantuner.c @@ -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) {