From: Teodor Sigaev Date: Mon, 17 Sep 2012 08:40:06 +0000 (+0400) Subject: fix MSVS2010 compile problem X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=a0985bc4d883b6fe65ce7e03aa4cf14efe0b9907;p=plantuner.git fix MSVS2010 compile problem --- diff --git a/plantuner.c b/plantuner.c index 5ef74dd..6fb5bcf 100644 --- a/plantuner.c +++ b/plantuner.c @@ -81,11 +81,13 @@ indexesAssign(const char * newval, bool doit, GucSource source, bool isDisable) foreach(l, namelist) { char *curname = (char *) lfirst(l); - Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), #if PG_VERSION_NUM >= 90200 - NoLock, -#endif + Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), + NoLock, true); +#else + Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), true); +#endif if (indexOid == InvalidOid) {