index 6285a5788894478c21b6012eeb190994fe636013..5c5eb0444ddb2ecc66753a79a3ae74ce1d2e3187 100644 (file)
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.136 2009年05月05日 18:02:11 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.137 2009年05月19日 08:30:00 heikki Exp $
*
*-------------------------------------------------------------------------
*/
}
/*
- * Quit if no analyzable columns
+ * Quit if no analyzable columns and no pg_class update needed.
*/
- if (attr_cnt <= 0 && !analyzableindex)
- {
- /*
- * We report that the table is empty; this is just so that the
- * autovacuum code doesn't go nuts trying to get stats about a
- * zero-column table.
- */
- if (update_reltuples)
- pgstat_report_analyze(onerel, 0, 0);
+ if (attr_cnt <= 0 && !analyzableindex && !update_reltuples)
goto cleanup;
- }
/*
* Determine how many rows we need to sample, using the worst case from