Skip to content

Commit cd0f42e

Browse files
committed
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
1 parent f63cbcc commit cd0f42e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/commands/analyze.c

Lines changed: 7 additions & 1 deletion
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.59 2003/08/17 19:58:04 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/analyze.c,v 1.60 2003/08/26 15:38:42 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -687,6 +687,12 @@ pageloop:;
687687
*/
688688
*totalrows = floor((double) onerel->rd_nblocks * tuplesperpage + 0.5);
689689

690+
/*
691+
* Emit some interesting relation info
692+
*/
693+
elog(elevel, " pages = %d rows/page = %d rows = %.0f",
694+
onerel->rd_nblocks, (int)tuplesperpage, *totalrows);
695+
690696
return numrows;
691697
}
692698

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy