From 9e19c8ca1864564ba32ac238da9ace5cc561418d Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 11 Sep 2012 15:58:08 +0400 Subject: [PATCH] make compile on 9.2 --- plantuner.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.46.1