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

Commit0f66d21

Browse files
Emit msg re skipping ANALYZE for absent inh tree
When checking a table that has an inheritance tree marked,if no child tables remain, we skip ANALYZE. This patch emitsa message to show that the action has been skipped.Author: Etsuro FujitaReviewer: Furuya Osamu
1 parent85b506b commit0f66d21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/commands/analyze.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,10 @@ acquire_inherited_sample_rows(Relation onerel, int elevel,
14831483
/* CCI because we already updated the pg_class row in this command */
14841484
CommandCounterIncrement();
14851485
SetRelationHasSubclass(RelationGetRelid(onerel), false);
1486+
ereport(elevel,
1487+
(errmsg("skipping analyze of \"%s.%s\" inheritance tree --- this inheritance tree contains no child tables",
1488+
get_namespace_name(RelationGetNamespace(onerel)),
1489+
RelationGetRelationName(onerel))));
14861490
return0;
14871491
}
14881492

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp