projects
/
plantuner.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent warning
[plantuner.git]
/
plantuner.c
diff --git
a/plantuner.c
b/plantuner.c
index
5ef74dd
..
02b7101
100644
(file)
--- 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);
foreach(l, namelist)
{
char *curname = (char *) lfirst(l);
- Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)),
#if PG_VERSION_NUM >= 90200
#if PG_VERSION_NUM >= 90200
- NoLock,
-#endif
+ Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)),
+ NoLock, true);
+#else
+ Oid indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)),
true);
true);
+#endif
if (indexOid == InvalidOid)
{
if (indexOid == InvalidOid)
{
@@
-270,7
+272,7
@@
IndexFilterShow(Oid* indexes, int nIndexes)
len = 1 /* \0 */ + nIndexes * (2 * NAMEDATALEN + 2 /* ', ' */ + 1 /* . */);
ptr = val = palloc(len);
len = 1 /* \0 */ + nIndexes * (2 * NAMEDATALEN + 2 /* ', ' */ + 1 /* . */);
ptr = val = palloc(len);
- *ptr ='\0';
+ *ptr =
(char)
'\0';
for(i=0; i<nIndexes; i++)
{
char *relname = get_rel_name(indexes[i]);
for(i=0; i<nIndexes; i++)
{
char *relname = get_rel_name(indexes[i]);
@@
-290,13
+292,13
@@
IndexFilterShow(Oid* indexes, int nIndexes)
}
static const char*
}
static const char*
-disabledIndexFilterShow()
+disabledIndexFilterShow(
void
)
{
return IndexFilterShow(disabledIndexes, nDisabledIndexes);
}
static const char*
{
return IndexFilterShow(disabledIndexes, nDisabledIndexes);
}
static const char*
-enabledIndexFilterShow()
+enabledIndexFilterShow(
void
)
{
return IndexFilterShow(enabledIndexes, nEnabledIndexes);
}
{
return IndexFilterShow(enabledIndexes, nEnabledIndexes);
}