From: Tom Lane Date: Thu, 11 Sep 2003 22:59:28 +0000 (+0000) Subject: Try to make recently-added analyze log message look something like X-Git-Tag: REL7_4_BETA3~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47c7f9ef1ccc9e3bc1c9e0b806bd0cd35799a6ed;p=postgresql Try to make recently-added analyze log message look something like the others in style. --- diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 844dce19b5..4c66e672a8 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -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; }