mirror of
https://github.com/postgres/postgres.git
synced 2025-05-12 16:21:30 +03:00
Add disk space message to "can not extend" message.
This commit is contained in:
parent
c3a32d7595
commit
35b168656b
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.42 1999/04/19 04:17:11 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.43 1999/04/23 19:37:41 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -518,8 +518,8 @@ transformIdent(ParseState *pstate, Node *expr, int precedence)
|
|||||||
/* we add the relation name for them */
|
/* we add the relation name for them */
|
||||||
att->relname = rte->refname;
|
att->relname = rte->refname;
|
||||||
att->attrs = lcons(makeString(ident->name), NIL);
|
att->attrs = lcons(makeString(ident->name), NIL);
|
||||||
column_result = (Node *) ParseNestedFuncOrColumn(pstate, att, &pstate->p_last_resno,
|
column_result = (Node *) ParseNestedFuncOrColumn(pstate, att,
|
||||||
precedence);
|
&pstate->p_last_resno, precedence);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* try to find the ident as a relation */
|
/* try to find the ident as a relation */
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.22 1999/02/13 23:18:39 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.23 1999/04/23 19:37:42 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -170,7 +170,7 @@ smgrextend(int16 which, Relation reln, char *buffer)
|
|||||||
status = (*(smgrsw[which].smgr_extend)) (reln, buffer);
|
status = (*(smgrsw[which].smgr_extend)) (reln, buffer);
|
||||||
|
|
||||||
if (status == SM_FAIL)
|
if (status == SM_FAIL)
|
||||||
elog(ERROR, "%s: cannot extend", reln->rd_rel->relname.data);
|
elog(ERROR, "%s: cannot extend. Check free disk space.", reln->rd_rel->relname.data);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user