summaryrefslogtreecommitdiff
path: root/src/backend/storage/smgr
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-11-16 04:14:03 +0000
committerBruce Momjian <bruce@momjian.us>1999-11-16 04:14:03 +0000
commitdc5c7713bcd620e4b8cee6c282e55afdd2a97749 (patch)
tree382583a4058b773bade83ea5c40e4a63dc720830 /src/backend/storage/smgr
parentbf5d51e7fe1ecc6d6aaf24d37ea29904194e32a2 (diff)
downloadpostgresql-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/smgr')
-rw-r--r--src/backend/storage/smgr/md.c8
1 files changed, 4 insertions, 4 deletions
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)