mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 21:31:14 +02:00
_mdfd_getrelnfd() should include kernel error code in failure message.
This commit is contained in:
parent
e18f5011aa
commit
244fd47124
@ -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 New Issue
Block a user