File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/backend/storage/buffer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* 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 $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -1158,7 +1158,8 @@ BlockNumber
1158
1158
RelationGetNumberOfBlocks (Relation relation )
1159
1159
{
1160
1160
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 )));
1162
1163
}
1163
1164
1164
1165
/* ---------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments