mirror of
https://github.com/postgres/postgres.git
synced 2026-02-27 03:40:28 -05:00
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:
parent
f63cbccac7
commit
cd0f42e87c
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue