Commit cd0f42e8 authored by Bruce Momjian's avatar Bruce Momjian

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
parent f63cbcca
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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:; ...@@ -687,6 +687,12 @@ pageloop:;
*/ */
*totalrows = floor((double) onerel->rd_nblocks * tuplesperpage + 0.5); *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; return numrows;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment