Ensure unsupported VACUUMs don't go to workers

Apparently these two blocks have been incorrect for nearly a year…
pull/1836/head
Jason Petersen 2017-11-27 11:43:23 -07:00
parent 878d8192c4
commit b12e77ab0e
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 4 additions and 0 deletions

View File

@ -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;