Skip to content

Commit 47c7f9e

Browse files
committed
Try to make recently-added analyze log message look something like
the others in style.
1 parent 2a5b6a7 commit 47c7f9e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/commands/analyze.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.60 2003/08/26 15:38:42 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.61 2003/09/11 22:59:28 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -690,8 +690,10 @@ pageloop:;
690690
/*
691691
* Emit some interesting relation info
692692
*/
693-
elog(elevel, " pages = %d rows/page = %d rows = %.0f",
694-
onerel->rd_nblocks, (int)tuplesperpage, *totalrows);
693+
ereport(elevel,
694+
(errmsg("\"%s\": %u pages, %.1f average rows/page in sample, %.0f estimated rows",
695+
RelationGetRelationName(onerel),
696+
onerel->rd_nblocks, tuplesperpage, *totalrows)));
695697

696698
return numrows;
697699
}

0 commit comments

Comments
 (0)