Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c85670

Browse files
committed
Say ANALYZE, not VACUUM, in error message on analyze in hot standby.
Tomonaru Katsumata
1 parent8ebe888 commit3c85670

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

‎src/backend/tcop/utility.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,10 +1071,14 @@ standard_ProcessUtility(Node *parsetree,
10711071
break;
10721072

10731073
caseT_VacuumStmt:
1074-
/* we choose to allow this during "read only" transactions */
1075-
PreventCommandDuringRecovery("VACUUM");
1076-
vacuum((VacuumStmt*)parsetree,InvalidOid, true,NULL, false,
1077-
isTopLevel);
1074+
{
1075+
VacuumStmt*stmt= (VacuumStmt*)parsetree;
1076+
1077+
/* we choose to allow this during "read only" transactions */
1078+
PreventCommandDuringRecovery((stmt->options&VACOPT_VACUUM) ?
1079+
"VACUUM" :"ANALYZE");
1080+
vacuum(stmt,InvalidOid, true,NULL, false,isTopLevel);
1081+
}
10781082
break;
10791083

10801084
caseT_ExplainStmt:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp