diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-30 21:21:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-30 21:21:33 +0000 |
commit | e6df063cf2e7b0d91e23de3a39cb67863af4bb33 (patch) | |
tree | 3ba362f4fcb3ceef1d14029c64c38ee5135d51df | |
parent | 48c192c15e828812d62194126d869d0b104a4ef1 (diff) | |
download | postgresql-e6df063cf2e7b0d91e23de3a39cb67863af4bb33.tar.gz postgresql-e6df063cf2e7b0d91e23de3a39cb67863af4bb33.zip |
Dept of second thoughts: recursive case in ANALYZE shouldn't emit a
pgstats message. This might need to be done differently later, but
with the current logic that's what should happen.
-rw-r--r-- | src/backend/commands/analyze.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index aa41cd3d4c4..5946c4a8307 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.145 2009/12/30 20:32:14 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.146 2009/12/30 21:21:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -565,9 +565,12 @@ do_analyze_rel(Relation onerel, VacuumStmt *vacstmt, /* * Report ANALYZE to the stats collector, too; likewise, tell it to * adopt these numbers only if we're not inside a VACUUM that got a - * better number. + * better number. However, a call with inh = true shouldn't reset + * the stats. */ - pgstat_report_analyze(onerel, update_reltuples, totalrows, totaldeadrows); + if (!inh) + pgstat_report_analyze(onerel, update_reltuples, + totalrows, totaldeadrows); /* We skip to here if there were no analyzable columns */ cleanup: |