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

Commit36933b4

Browse files
author
Hiroshi Inoue
committed
avoid opening view files.
1 parent5ce0804 commit36933b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/storage/buffer/xlog_bufmgr.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/xlog_bufmgr.c,v 1.3 2000/11/10 03:53:44 vadim Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/xlog_bufmgr.c,v 1.4 2000/11/22 02:19:14 inoue Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1158,7 +1158,8 @@ BlockNumber
11581158
RelationGetNumberOfBlocks(Relationrelation)
11591159
{
11601160
return ((relation->rd_myxactonly) ?relation->rd_nblocks :
1161-
smgrnblocks(DEFAULT_SMGR,relation));
1161+
((relation->rd_rel->relkind==RELKIND_VIEW) ?0 :
1162+
smgrnblocks(DEFAULT_SMGR,relation)));
11621163
}
11631164

11641165
/* ---------------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp