X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=blobdiff_plain;f=plantuner.c;h=f023d07625942f0df9003c354aeed68b6736dfa1;hp=a91bf067bb5f0bc20f6c61459fb21730505952fc;hb=0e29d69fad22783a8e2c05c2e8c388893d26a773;hpb=6c66d17a2dc6e5372e0136ae495370a359a3f913 diff --git a/plantuner.c b/plantuner.c index a91bf06..f023d07 100644 --- a/plantuner.c +++ b/plantuner.c @@ -81,7 +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)), true); +#if PG_VERSION_NUM >= 90200 + Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), + NoLock, true); +#else + Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), + true); +#endif if (indexOid == InvalidOid) { @@ -286,13 +292,13 @@ IndexFilterShow(Oid* indexes, int nIndexes) } static const char* -disabledIndexFilterShow() +disabledIndexFilterShow(void) { return IndexFilterShow(disabledIndexes, nDisabledIndexes); } static const char* -enabledIndexFilterShow() +enabledIndexFilterShow(void) { return IndexFilterShow(enabledIndexes, nEnabledIndexes); }