mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Goodbye ABORT. Hello ERROR for all errors.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.8 1998/01/07 15:32:19 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.9 1998/01/07 21:03:04 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -36,14 +36,14 @@ makeStringInfo()
|
||||
res = (StringInfo) palloc(sizeof(StringInfoData));
|
||||
if (res == NULL)
|
||||
{
|
||||
elog(ABORT, "makeStringInfo: Out of memory!");
|
||||
elog(ERROR, "makeStringInfo: Out of memory!");
|
||||
}
|
||||
|
||||
size = 100;
|
||||
res->data = palloc(size);
|
||||
if (res->data == NULL)
|
||||
{
|
||||
elog(ABORT,
|
||||
elog(ERROR,
|
||||
"makeStringInfo: Out of memory! (%ld bytes requested)", size);
|
||||
}
|
||||
res->maxlen = size;
|
||||
@ -105,7 +105,7 @@ appendStringInfo(StringInfo str, char *buffer)
|
||||
s = palloc(newlen);
|
||||
if (s == NULL)
|
||||
{
|
||||
elog(ABORT,
|
||||
elog(ERROR,
|
||||
"appendStringInfo: Out of memory (%d bytes requested)",
|
||||
newlen);
|
||||
}
|
||||
|
Reference in New Issue
Block a user