Attached is a (very small) patch to make analyze display some

interesting info in verbose mode about the analyzed relation (pages,
rows per block and rows).

Mark Kirkwood
This commit is contained in:
Bruce Momjian 2003-08-26 15:38:42 +00:00
parent f63cbccac7
commit cd0f42e87c

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.59 2003/08/17 19:58:04 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.60 2003/08/26 15:38:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -687,6 +687,12 @@ pageloop:;
*/
*totalrows = floor((double) onerel->rd_nblocks * tuplesperpage + 0.5);
/*
* Emit some interesting relation info
*/
elog(elevel, " pages = %d rows/page = %d rows = %.0f",
onerel->rd_nblocks, (int)tuplesperpage, *totalrows);
return numrows;
}