Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 244fd47

Browse files
committed
_mdfd_getrelnfd() should include kernel error code in failure message.
1 parent e18f501 commit 244fd47

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/smgr

1 file changed

+2
-2
lines changed

src/backend/storage/smgr/md.c

Lines changed: 2 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/smgr/md.c,v 1.82 2001/03/22 03:59:47 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.83 2001/04/02 23:20:24 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -983,7 +983,7 @@ _mdfd_getrelnfd(Relation reln)
983983
if (fd < 0)
984984
{
985985
if ((fd = mdopen(reln)) < 0)
986-
elog(ERROR, "cannot open relation %s",
986+
elog(ERROR, "_mdfd_getrelnfd: cannot open relation %s: %m",
987987
RelationGetRelationName(reln));
988988
reln->rd_fd = fd;
989989
}

0 commit comments

Comments
 (0)