mirror of https://github.com/citusdata/citus.git
Ensure unsupported VACUUMs don't go to workers
Apparently these two blocks have been incorrect for nearly a year…pull/1836/head
parent
878d8192c4
commit
b12e77ab0e
|
@ -1557,6 +1557,8 @@ IsSupportedDistributedVacuumStmt(Oid relationId, VacuumStmt *vacuumStmt)
|
||||||
errhint("Set citus.enable_ddl_propagation to true in order to "
|
errhint("Set citus.enable_ddl_propagation to true in order to "
|
||||||
"send targeted %s commands to worker nodes.",
|
"send targeted %s commands to worker nodes.",
|
||||||
stmtName)));
|
stmtName)));
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vacuumStmt->options & VACOPT_VERBOSE)
|
if (vacuumStmt->options & VACOPT_VERBOSE)
|
||||||
|
@ -1564,6 +1566,8 @@ IsSupportedDistributedVacuumStmt(Oid relationId, VacuumStmt *vacuumStmt)
|
||||||
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
errmsg("the VERBOSE option is currently unsupported in "
|
errmsg("the VERBOSE option is currently unsupported in "
|
||||||
"distributed %s commands", stmtName)));
|
"distributed %s commands", stmtName)));
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue