mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Say ANALYZE, not VACUUM, in error message on analyze in hot standby.
Tomonaru Katsumata
This commit is contained in:
@ -1006,10 +1006,14 @@ standard_ProcessUtility(Node *parsetree,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case T_VacuumStmt:
|
case T_VacuumStmt:
|
||||||
|
{
|
||||||
|
VacuumStmt *stmt = (VacuumStmt *) parsetree;
|
||||||
|
|
||||||
/* we choose to allow this during "read only" transactions */
|
/* we choose to allow this during "read only" transactions */
|
||||||
PreventCommandDuringRecovery("VACUUM");
|
PreventCommandDuringRecovery((stmt->options & VACOPT_VACUUM) ?
|
||||||
vacuum((VacuumStmt *) parsetree, InvalidOid, true, NULL, false,
|
"VACUUM" : "ANALYZE");
|
||||||
isTopLevel);
|
vacuum(stmt, InvalidOid, true, NULL, false, isTopLevel);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T_ExplainStmt:
|
case T_ExplainStmt:
|
||||||
|
Reference in New Issue
Block a user