Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd0f42e

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 parentf63cbcc commitcd0f42e

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
returnnumrows;
691697
}
692698

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp