Skip to content

Commit 0f66d21

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

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
return 0;
14871491
}
14881492

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy