diff options
| author | Bruce Momjian <bruce@momjian.us> | 1999-11-16 04:14:03 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1999-11-16 04:14:03 +0000 |
| commit | dc5c7713bcd620e4b8cee6c282e55afdd2a97749 (patch) | |
| tree | 382583a4058b773bade83ea5c40e4a63dc720830 /src/backend/storage | |
| parent | bf5d51e7fe1ecc6d6aaf24d37ea29904194e32a2 (diff) | |
| download | postgresql-dc5c7713bcd620e4b8cee6c282e55afdd2a97749.tar.gz | |
Commit to make clearer distinction for temp names and real names.
Thanks to Tom Lane for ideas.
Diffstat (limited to 'src/backend/storage')
| -rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 4 | ||||
| -rw-r--r-- | src/backend/storage/smgr/md.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 19bbceb6b1..bd5773e98e 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.65 1999/11/07 23:08:14 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.66 1999/11/16 04:13:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -622,7 +622,7 @@ BufferAlloc(Relation reln, } /* record the database name and relation name for this buffer */ - strcpy(buf->sb_relname, RelationGetRelationName(reln)); + strcpy(buf->sb_relname, RelationGetPhysicalRelationName(reln)); strcpy(buf->sb_dbname, DatabaseName); INIT_BUFFERTAG(&(buf->tag), reln, blockNum); diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c index bf885e676d..0cf2893d79 100644 --- a/src/backend/storage/smgr/md.c +++ b/src/backend/storage/smgr/md.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.59 1999/11/07 23:08:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.60 1999/11/16 04:13:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -121,7 +121,7 @@ mdcreate(Relation reln) char *path; Assert(reln->rd_unlinked && reln->rd_fd < 0); - path = relpath(RelationGetRelationName(reln)); + path = relpath(RelationGetPhysicalRelationName(reln)); #ifndef __CYGWIN32__ fd = FileNameOpenFile(path, O_RDWR | O_CREAT | O_EXCL, 0600); #else @@ -319,7 +319,7 @@ mdopen(Relation reln) int vfd; Assert(reln->rd_fd < 0); - path = relpath(RelationGetRelationName(reln)); + path = relpath(RelationGetPhysicalRelationName(reln)); #ifndef __CYGWIN32__ fd = FileNameOpenFile(path, O_RDWR, 0600); @@ -1011,7 +1011,7 @@ _mdfd_openseg(Relation reln, int segno, int oflags) *fullpath; /* be sure we have enough space for the '.segno', if any */ - path = relpath(RelationGetRelationName(reln)); + path = relpath(RelationGetPhysicalRelationName(reln)); dofree = false; if (segno > 0) |
