mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Say ANALYZE, not VACUUM, in error message on analyze in hot standby.
Tomonaru Katsumata
This commit is contained in:
parent
9c0e2b9182
commit
b28cc92d7d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user