]> granicus.if.org Git - postgresql/commitdiff
Try to make recently-added analyze log message look something like
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Sep 2003 22:59:28 +0000 (22:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Sep 2003 22:59:28 +0000 (22:59 +0000)
the others in style.

src/backend/commands/analyze.c

index 844dce19b59247f02aa5974478ef04ee2b43c887..4c66e672a81bf7b6401f2d110742589cf456f18f 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.60 2003/08/26 15:38:42 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.61 2003/09/11 22:59:28 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -690,8 +690,10 @@ pageloop:;
        /*
         * Emit some interesting relation info 
         */
-       elog(elevel, "  pages = %d rows/page = %d rows = %.0f", 
-               onerel->rd_nblocks, (int)tuplesperpage, *totalrows);
+       ereport(elevel,
+                       (errmsg("\"%s\": %u pages, %.1f average rows/page in sample, %.0f estimated rows",
+                                       RelationGetRelationName(onerel),
+                                       onerel->rd_nblocks, tuplesperpage, *totalrows)));
 
        return numrows;
 }