mirror of
https://github.com/postgres/postgres.git
synced 2026-04-20 22:00:13 -04:00
_mdfd_getrelnfd() should include kernel error code in failure message.
This commit is contained in:
parent
e18f5011aa
commit
244fd47124
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.82 2001/03/22 03:59:47 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.83 2001/04/02 23:20:24 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -983,7 +983,7 @@ _mdfd_getrelnfd(Relation reln)
|
|||
if (fd < 0)
|
||||
{
|
||||
if ((fd = mdopen(reln)) < 0)
|
||||
elog(ERROR, "cannot open relation %s",
|
||||
elog(ERROR, "_mdfd_getrelnfd: cannot open relation %s: %m",
|
||||
RelationGetRelationName(reln));
|
||||
reln->rd_fd = fd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue