mirror of https://github.com/citusdata/citus.git
parent
1b98b3ef72
commit
210c840d14
|
@ -980,6 +980,7 @@ DeparseVacuumStmtPrefix(VacuumStmt *vacuumStmt)
|
||||||
{
|
{
|
||||||
StringInfo vacuumPrefix = makeStringInfo();
|
StringInfo vacuumPrefix = makeStringInfo();
|
||||||
const int supportedFlags = (
|
const int supportedFlags = (
|
||||||
|
VACOPT_ANALYZE |
|
||||||
#if (PG_VERSION_NUM >= 90600)
|
#if (PG_VERSION_NUM >= 90600)
|
||||||
VACOPT_DISABLE_PAGE_SKIPPING |
|
VACOPT_DISABLE_PAGE_SKIPPING |
|
||||||
#endif
|
#endif
|
||||||
|
@ -997,6 +998,18 @@ DeparseVacuumStmtPrefix(VacuumStmt *vacuumStmt)
|
||||||
|
|
||||||
appendStringInfoChar(vacuumPrefix, '(');
|
appendStringInfoChar(vacuumPrefix, '(');
|
||||||
|
|
||||||
|
if (vacuumFlags & VACOPT_ANALYZE)
|
||||||
|
{
|
||||||
|
appendStringInfoString(vacuumPrefix, "ANALYZE,");
|
||||||
|
}
|
||||||
|
|
||||||
|
#if (PG_VERSION_NUM >= 90600)
|
||||||
|
if (vacuumFlags & VACOPT_DISABLE_PAGE_SKIPPING)
|
||||||
|
{
|
||||||
|
appendStringInfoString(vacuumPrefix, "DISABLE_PAGE_SKIPPING,");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (vacuumFlags & VACOPT_FREEZE)
|
if (vacuumFlags & VACOPT_FREEZE)
|
||||||
{
|
{
|
||||||
appendStringInfoString(vacuumPrefix, "FREEZE,");
|
appendStringInfoString(vacuumPrefix, "FREEZE,");
|
||||||
|
@ -1007,13 +1020,6 @@ DeparseVacuumStmtPrefix(VacuumStmt *vacuumStmt)
|
||||||
appendStringInfoString(vacuumPrefix, "FULL,");
|
appendStringInfoString(vacuumPrefix, "FULL,");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (PG_VERSION_NUM >= 90600)
|
|
||||||
if (vacuumFlags & VACOPT_DISABLE_PAGE_SKIPPING)
|
|
||||||
{
|
|
||||||
appendStringInfoString(vacuumPrefix, "DISABLE_PAGE_SKIPPING,");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
vacuumPrefix->data[vacuumPrefix->len - 1] = ')';
|
vacuumPrefix->data[vacuumPrefix->len - 1] = ')';
|
||||||
|
|
||||||
appendStringInfoChar(vacuumPrefix, ' ');
|
appendStringInfoChar(vacuumPrefix, ' ');
|
||||||
|
|
Loading…
Reference in New Issue