提交 b28cc92d 编写于 作者: H Heikki Linnakangas

Say ANALYZE, not VACUUM, in error message on analyze in hot standby.

Tomonaru Katsumata
上级 9c0e2b91
......@@ -1123,10 +1123,14 @@ standard_ProcessUtility(Node *parsetree,
break;
case T_VacuumStmt:
/* we choose to allow this during "read only" transactions */
PreventCommandDuringRecovery("VACUUM");
vacuum((VacuumStmt *) parsetree, InvalidOid, true, NULL, false,
isTopLevel);
{
VacuumStmt *stmt = (VacuumStmt *) parsetree;
/* we choose to allow this during "read only" transactions */
PreventCommandDuringRecovery((stmt->options & VACOPT_VACUUM) ?
"VACUUM" : "ANALYZE");
vacuum(stmt, InvalidOid, true, NULL, false, isTopLevel);
}
break;
case T_ExplainStmt:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册