|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.145 2009/12/3020:32:14 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.146 2009/12/3021:21:33 tgl Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -565,9 +565,12 @@ do_analyze_rel(Relation onerel, VacuumStmt *vacstmt, |
565 | 565 | /* |
566 | 566 | * Report ANALYZE to the stats collector, too; likewise, tell it to |
567 | 567 | * adopt these numbers only if we're not inside a VACUUM that got a |
568 | | - * better number. |
| 568 | + * better number. However, a call with inh = true shouldn't reset |
| 569 | + * the stats. |
569 | 570 | */ |
570 | | -pgstat_report_analyze(onerel,update_reltuples,totalrows,totaldeadrows); |
| 571 | +if (!inh) |
| 572 | +pgstat_report_analyze(onerel,update_reltuples, |
| 573 | +totalrows,totaldeadrows); |
571 | 574 |
|
572 | 575 | /* We skip to here if there were no analyzable columns */ |
573 | 576 | cleanup: |
|