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

Appearance settings

Commit 0f66d21

Browse filesBrowse 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 emits a message to show that the action has been skipped. Author: Etsuro Fujita Reviewer: Furuya Osamu
1 parent 85b506b commit 0f66d21
Copy full SHA for 0f66d21

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎src/backend/commands/analyze.c

Copy file name to clipboardExpand all lines: src/backend/commands/analyze.c
+4Lines 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
return 0;
14871491
}
14881492

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.