Skip to content

Commit 36933b4

Browse files
author
Hiroshi Inoue
committed
avoid opening view files.
1 parent 5ce0804 commit 36933b4

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(Relation relation)
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)
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