aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2000-11-22 02:19:14 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2000-11-22 02:19:14 +0000
commit36933b4628acd2ae4e9ffa688af1ecdfce46d60c (patch)
treebb10d37861ec5133a023716b17a360a30fa27f16 /src
parent5ce0804b5129c2a55176834b9ebf8b92640ef44d (diff)
downloadpostgresql-36933b4628acd2ae4e9ffa688af1ecdfce46d60c.tar.gz
postgresql-36933b4628acd2ae4e9ffa688af1ecdfce46d60c.zip
avoid opening view files.
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/buffer/xlog_bufmgr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/xlog_bufmgr.c b/src/backend/storage/buffer/xlog_bufmgr.c
index b00edd1be86..ff6bff29a1d 100644
--- a/src/backend/storage/buffer/xlog_bufmgr.c
+++ b/src/backend/storage/buffer/xlog_bufmgr.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/xlog_bufmgr.c,v 1.3 2000/11/10 03:53:44 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/xlog_bufmgr.c,v 1.4 2000/11/22 02:19:14 inoue Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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)));
}
/* ---------------------------------------------------------------------