From a0985bc4d883b6fe65ce7e03aa4cf14efe0b9907 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 17 Sep 2012 12:40:06 +0400 Subject: [PATCH] fix MSVS2010 compile problem --- plantuner.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) { -- 2.46.1