projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
551ea33
)
avoid opening view files.
author
Hiroshi Inoue
<inoue@tpf.co.jp>
Wed, 22 Nov 2000 02:19:14 +0000
(
02:19
+0000)
committer
Hiroshi Inoue
<inoue@tpf.co.jp>
Wed, 22 Nov 2000 02:19:14 +0000
(
02:19
+0000)
src/backend/storage/buffer/xlog_bufmgr.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/buffer/xlog_bufmgr.c
b/src/backend/storage/buffer/xlog_bufmgr.c
index ca0707d56046ac6c456728b296c8fd96744a96ea..311156b52d78fb49b8b7150b17b91f3d745694dc 100644
(file)
--- a/
src/backend/storage/buffer/xlog_bufmgr.c
+++ b/
src/backend/storage/buffer/xlog_bufmgr.c
@@
-1158,7
+1158,8
@@
BlockNumber
RelationGetNumberOfBlocks(Relation relation)
{
return ((relation->rd_myxactonly) ? relation->rd_nblocks :
- smgrnblocks(DEFAULT_SMGR, relation));
+ ((relation->rd_rel->relkind == RELKIND_VIEW) ? 0 :
+ smgrnblocks(DEFAULT_SMGR, relation)));
}
/* ---------------------------------------------------------------------