*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.58 2003/05/28 16:03:55 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.59 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
do_start();
numattr = 0;
- elog(DEBUG4, "creating%s%s relation %s...",
+ elog(DEBUG4, "creating%s%s relation %s",
$2 ? " bootstrap" : "",
$3 ? " shared" : "",
LexIDStr($5));
{
do_start();
if ($2)
- elog(DEBUG4, "inserting row with oid %u...", $2);
+ elog(DEBUG4, "inserting row with oid %u", $2);
else
- elog(DEBUG4, "inserting row...");
+ elog(DEBUG4, "inserting row");
num_columns_read = 0;
}
LPAREN boot_tuplelist RPAREN
boot_type_thing:
boot_ident EQUALS boot_ident
{
- if(++numattr > MAXATTR)
+ if (++numattr > MAXATTR)
elog(FATAL, "too many columns");
DefineAttr(LexIDStr($1),LexIDStr($3),numattr-1);
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.28 2003/05/29 22:30:01 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.29 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
}
. {
- elog(ERROR, "syntax error at line %d: unexpected character %s", yyline, yytext);
+ elog(ERROR, "syntax error at line %d: unexpected character \"%s\"", yyline, yytext);
}
void
yyerror(const char *str)
{
- elog(ERROR, "syntax error at line %d: unexpected token %s", yyline, str);
+ elog(ERROR, "syntax error at line %d: unexpected token \"%s\"", yyline, str);
}
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.161 2003/07/15 00:11:13 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.162 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
if (!value)
{
if (flag == '-')
- elog(ERROR, "--%s requires argument", optarg);
+ ereport(ERROR,
+ (errcode(ERRCODE_SYNTAX_ERROR),
+ errmsg("--%s requires a value",
+ optarg)));
else
- elog(ERROR, "-c %s requires argument", optarg);
+ ereport(ERROR,
+ (errcode(ERRCODE_SYNTAX_ERROR),
+ errmsg("-c %s requires a value",
+ optarg)));
}
SetConfigOption(name, value, PGC_POSTMASTER, PGC_S_ARGV);
proc_exit(0); /* done */
default:
- elog(PANIC, "Unsupported XLOG op %d", xlogop);
+ elog(PANIC, "unrecognized XLOG op: %d", xlogop);
proc_exit(0);
}
if (boot_reldesc != NULL)
closerel(NULL);
- elog(DEBUG4, "open relation %s, attrsize %d", relname ? relname : "(null)",
+ elog(DEBUG4, "open relation %s, attrsize %d",
+ relname ? relname : "(null)",
(int) ATTRIBUTE_TUPLE_SIZE);
boot_reldesc = heap_openr(relname, NoLock);
if (boot_reldesc)
{
if (strcmp(RelationGetRelationName(boot_reldesc), name) != 0)
- elog(ERROR, "closerel: close of '%s' when '%s' was expected",
+ elog(ERROR, "close of %s when %s was expected",
name, relname ? relname : "(null)");
}
else
- elog(ERROR, "closerel: close of '%s' before any relation was opened",
+ elog(ERROR, "close of %s before any relation was opened",
name);
}
if (boot_reldesc != NULL)
{
- elog(LOG, "warning: no open relations allowed with 'create' command");
+ elog(WARNING, "no open relations allowed with CREATE command");
closerel(relname);
}
AssertArg(i >= 0 || i < MAXATTR);
- elog(DEBUG4, "inserting column %d value '%s'", i, value);
+ elog(DEBUG4, "inserting column %d value \"%s\"", i, value);
if (Typ != (struct typmap **) NULL)
{
ap = *app;
if (ap == NULL)
{
- elog(FATAL, "unable to find atttypid %u in Typ list",
+ elog(FATAL, "could not find atttypid %u in Typ list",
boot_reldesc->rd_att->attrs[i]->atttypid);
}
values[i] = OidFunctionCall3(ap->am_typ.typinput,
beenhere = 1;
else
{
- elog(FATAL, "Memory manager fault: cleanup called twice");
+ elog(FATAL, "cleanup called twice");
proc_exit(1);
}
if (boot_reldesc != NULL)
heap_close(rel, NoLock);
return gettype(type);
}
- elog(ERROR, "Error: unknown type '%s'.\n", type);
+ elog(ERROR, "unrecognized type \"%s\"", type);
err_out();
/* not reached, here to make compiler happy */
return 0;
Form_pg_attribute attribute = (Form_pg_attribute) malloc(ATTRIBUTE_TUPLE_SIZE);
if (!PointerIsValid(attribute))
- elog(FATAL, "AllocateAttribute: malloc failed");
+ elog(FATAL, "out of memory");
MemSet(attribute, 0, ATTRIBUTE_TUPLE_SIZE);
return attribute;
int hashresult;
int len;
- if (++strtable_end == STRTABLESIZE)
- {
- /* Error, string table overflow, so we Punt */
- elog(FATAL,
- "There are too many string constants and identifiers for the compiler to handle.");
-
-
- }
+ if (++strtable_end >= STRTABLESIZE)
+ elog(FATAL, "bootstrap string table overflow");
/*
* Some of the utilites (eg, define type, create relation) assume that
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.25 2002/06/20 20:29:28 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/lib/dllist.c,v 1.26 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
if (l == NULL)
{
#ifdef FRONTEND
- fprintf(stderr, "Memory exhausted in DLNewList\n");
+ fprintf(stderr, "memory exhausted in DLNewList\n");
exit(1);
#else
- elog(ERROR, "Memory exhausted in DLNewList");
+ ereport(ERROR,
+ (errcode(ERRCODE_OUT_OF_MEMORY),
+ errmsg("out of memory")));
#endif
}
l->dll_head = 0;
if (e == NULL)
{
#ifdef FRONTEND
- fprintf(stderr, "Memory exhausted in DLNewElem\n");
+ fprintf(stderr, "memory exhausted in DLNewElem\n");
exit(1);
#else
- elog(ERROR, "Memory exhausted in DLNewElem");
+ ereport(ERROR,
+ (errcode(ERRCODE_OUT_OF_MEMORY),
+ errmsg("out of memory")));
#endif
}
e->dle_next = 0;
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/bitmapset.c,v 1.2 2003/06/29 23:05:04 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/bitmapset.c,v 1.3 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
bitnum;
if (x < 0)
- elog(ERROR, "bms_make_singleton: negative set member not allowed");
+ elog(ERROR, "negative bitmapset member not allowed");
wordnum = WORDNUM(x);
bitnum = BITNUM(x);
result = (Bitmapset *) palloc0(BITMAPSET_SIZE(wordnum + 1));
/* XXX better to just return false for x<0 ? */
if (x < 0)
- elog(ERROR, "bms_is_member: negative set member not allowed");
+ elog(ERROR, "negative bitmapset member not allowed");
if (a == NULL)
return false;
wordnum = WORDNUM(x);
int wordnum;
if (a == NULL)
- elog(ERROR, "bms_singleton_member: set is empty");
+ elog(ERROR, "bitmapset is empty");
nwords = a->nwords;
for (wordnum = 0; wordnum < nwords; wordnum++)
{
if (w != 0)
{
if (result >= 0 || HAS_MULTIPLE_ONES(w))
- elog(ERROR, "bms_singleton_member: set has multiple members");
+ elog(ERROR, "bitmapset has multiple members");
result = wordnum * BITS_PER_BITMAPWORD;
while ((w & 255) == 0)
{
}
}
if (result < 0)
- elog(ERROR, "bms_singleton_member: set is empty");
+ elog(ERROR, "bitmapset is empty");
return result;
}
bitnum;
if (x < 0)
- elog(ERROR, "bms_add_member: negative set member not allowed");
+ elog(ERROR, "negative bitmapset member not allowed");
if (a == NULL)
return bms_make_singleton(x);
wordnum = WORDNUM(x);
bitnum;
if (x < 0)
- elog(ERROR, "bms_del_member: negative set member not allowed");
+ elog(ERROR, "negative bitmapset member not allowed");
if (a == NULL)
return NULL;
wordnum = WORDNUM(x);
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.259 2003/07/03 16:32:20 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.260 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
/* nothing to do */
break;
default:
- elog(ERROR, "_copyAConst: unknown node type %d", from->val.type);
+ elog(ERROR, "unrecognized node type: %d",
+ (int) from->val.type);
break;
}
/* nothing to do */
break;
default:
- elog(ERROR, "_copyValue: unknown node type %d", from->type);
+ elog(ERROR, "unrecognized node type: %d",
+ (int) from->type);
break;
}
return newnode;
break;
default:
- elog(ERROR, "copyObject: don't know how to copy node type %d",
- nodeTag(from));
+ elog(ERROR, "unrecognized node type: %d", (int) nodeTag(from));
retval = from; /* keep compiler quiet */
break;
}
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.202 2003/07/03 16:32:32 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.203 2003/07/22 23:30:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
COMPARE_SCALAR_FIELD(paramid);
break;
default:
- elog(ERROR, "_equalParam: Invalid paramkind value: %d",
+ elog(ERROR, "unrecognized paramkind value: %d",
a->paramkind);
}
/* nothing to do */
break;
default:
- elog(ERROR, "_equalValue: unknown node type %d", a->type);
+ elog(ERROR, "unrecognized node type: %d", (int) a->type);
break;
}
bool
equal(void *a, void *b)
{
- bool retval = false;
+ bool retval;
if (a == b)
return true;
break;
default:
- elog(WARNING, "equal: don't know whether nodes of type %d are equal",
- nodeTag(a));
+ elog(ERROR, "unrecognized node type: %d",
+ (int) nodeTag(a));
+ retval = false; /* keep compiler quiet */
break;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.50 2003/06/15 22:51:45 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.51 2003/07/22 23:30:37 tgl Exp $
*
* NOTES
* XXX a few of the following functions are duplicated to handle
if (l2 == NIL)
return l1;
if (l1 == l2)
- elog(ERROR, "can't nconc a list to itself");
+ elog(ERROR, "cannot nconc a list to itself");
for (temp = l1; lnext(temp) != NIL; temp = lnext(temp))
;
llast(List *l)
{
if (l == NIL)
- elog(ERROR, "llast: empty list");
+ elog(ERROR, "empty list does not have a last item");
while (lnext(l) != NIL)
l = lnext(l);
return lfirst(l);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.212 2003/07/03 16:32:38 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.213 2003/07/22 23:30:37 tgl Exp $
*
* NOTES
* Every node type that can appear in stored rules' parsetrees *must*
WRITE_NODE_FIELD(joinaliasvars);
break;
default:
- elog(ERROR, "bogus rte kind %d", (int) node->rtekind);
+ elog(ERROR, "unrecognized rte kind: %d", (int) node->rtekind);
break;
}
appendStringInfo(str, "%s", value->val.str);
break;
default:
- elog(WARNING, "_outValue: don't know how to print type %d",
- value->type);
+ elog(ERROR, "unrecognized node type: %d", (int) value->type);
break;
}
}
break;
default:
- elog(WARNING, "_outNode: don't know how to print type %d",
- nodeTag(obj));
+ /*
+ * This should be an ERROR, but it's too useful to be able
+ * to dump structures that _outNode only understands part of.
+ */
+ elog(WARNING, "could not dump unrecognized node type: %d",
+ (int) nodeTag(obj));
break;
}
appendStringInfoChar(str, '}');
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.61 2003/05/06 00:20:32 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.62 2003/07/22 23:30:37 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
else
f = format_node_dump(s);
pfree(s);
- elog(lev, "%s:\n%s", title, f);
+ ereport(lev,
+ (errmsg_internal("%s:", title),
+ errdetail("%s", f)));
pfree(f);
}
ObjectIdGetDatum(c->consttype),
0, 0, 0);
if (!HeapTupleIsValid(typeTup))
- elog(ERROR, "Cache lookup for type %u failed", c->consttype);
+ elog(ERROR, "cache lookup failed for type %u", c->consttype);
typoutput = ((Form_pg_type) GETSTRUCT(typeTup))->typoutput;
typelem = ((Form_pg_type) GETSTRUCT(typeTup))->typelem;
ReleaseSysCache(typeTup);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.33 2002/11/25 18:12:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.34 2003/07/22 23:30:38 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
this_value = parseNodeString();
token = pg_strtok(&tok_len);
if (token == NULL || token[0] != '}')
- elog(ERROR, "nodeRead: did not find '}' at end of node");
+ elog(ERROR, "did not find '}' at end of input node");
if (!read_car_only)
make_dotted_pair_cell = true;
else
break;
}
default:
- elog(ERROR, "nodeRead: Bad type %d", type);
+ elog(ERROR, "unrecognized node type: %d", (int) type);
this_value = NULL; /* keep compiler happy */
break;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.158 2003/07/03 16:32:39 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.159 2003/07/22 23:30:38 tgl Exp $
*
* NOTES
* Path and Plan nodes do not have any readfuncs support, because we
Value *v = (Value *) lfirst(l);
if (!IsA(v, Integer))
- elog(ERROR, "toIntList: unexpected datatype");
+ elog(ERROR, "unexpected node type: %d", (int) nodeTag(v));
lfirsti(l) = intVal(v);
pfree(v);
}
pfree(v);
}
else
- elog(ERROR, "toOidList: unexpected datatype");
+ elog(ERROR, "unexpected node type: %d", (int) nodeTag(v));
}
return list;
}
else if (strncmp(token, "not", 3) == 0)
local_node->boolop = NOT_EXPR;
else
- elog(ERROR, "_readBoolExpr: unknown boolop \"%.*s\"", length, token);
+ elog(ERROR, "unrecognized boolop \"%.*s\"", length, token);
READ_NODE_FIELD(args);
READ_NODE_FIELD(joinaliasvars);
break;
default:
- elog(ERROR, "bogus rte kind %d", (int) local_node->rtekind);
+ elog(ERROR, "unrecognized RTE kind: %d",
+ (int) local_node->rtekind);
break;
}
token = pg_strtok(&tokenLength); /* read the '[' */
if (token == NULL || token[0] != '[')
- elog(ERROR, "readDatum: expected '%s', got '%s'; length = %lu",
- "[", token ? (const char *) token : "[NULL]",
+ elog(ERROR, "expected \"[\" to start datum, but got \"%s\"; length = %lu",
+ token ? (const char *) token : "[NULL]",
(unsigned long) length);
if (typbyval)
{
if (length > (Size) sizeof(Datum))
- elog(ERROR, "readDatum: byval & length = %lu",
+ elog(ERROR, "byval datum but length = %lu",
(unsigned long) length);
res = (Datum) 0;
s = (char *) (&res);
token = pg_strtok(&tokenLength); /* read the ']' */
if (token == NULL || token[0] != ']')
- elog(ERROR, "readDatum: expected '%s', got '%s'; length = %lu",
- "]", token ? (const char *) token : "[NULL]",
+ elog(ERROR, "expected \"]\" to end datum, but got \"%s\"; length = %lu",
+ token ? (const char *) token : "[NULL]",
(unsigned long) length);
return res;
*
*-------------------------------------------------------------------------
*/
-
-
#include "postgres.h"
+
#include <errno.h>
#include <unistd.h>
#include <OS.h>
-#include "utils/elog.h"
/*#define TDBG*/
#ifdef TDBG
{
/* TO BE IMPLEMENTED */
TRACEDBG("--semctl getncnt");
- elog(ERROR, "beos : semctl error : GETNCNT not implemented");
+ elog(ERROR, "semctl error: GETNCNT not implemented");
return 0;
}
return cnt;
}
- elog(ERROR, "beos : semctl error : unknown flag");
+ elog(ERROR, "semctl error: unknown flag");
TRACEDBG("<-semctl unknown flag");
return 0;
if ((beos_dl_port_in <= 0) || (beos_dl_port_out <= 0))
{
- elog(WARNING, "Error loading BeOS support server : can't create communication ports");
+ elog(WARNING, "error loading BeOS support server: could not create communication ports");
return B_ERROR;
}
else
/* Checking integrity */
if (im < 0)
{
- elog(WARNING, "Can't load this add-on ");
+ elog(WARNING, "could not load this add-on");
return B_ERROR;
}
else
/* Remap */
resu = clone_area(datas, &add, B_EXACT_ADDRESS, B_READ_AREA | B_WRITE_AREA, area);
if (resu < 0)
- elog(WARNING, "Can't load this add-on : map text error");
+ elog(WARNING, "could not load this add-on: map text error");
}
/* read text segment id and address */
/* Remap */
resu = clone_area(datas, &add, B_EXACT_ADDRESS, B_READ_AREA | B_WRITE_AREA, area);
if (resu < 0)
- elog(WARNING, "Can't load this add-on : map data error");
+ elog(WARNING, "could not load this add-on: map data error");
}
return im;
read_port(beos_dl_port_out, (int32 *) (fptr), NULL, 0);
if (fptr == NULL)
- elog(WARNING, "loading symbol '%s' failed ", symname);
+ elog(WARNING, "loading symbol \"%s\" failed", symname);
}
status_t
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/dynloader/bsdi.c,v 1.20 2002/06/20 20:29:33 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/bsdi.c,v 1.21 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
if (dld_link("/usr/lib/libc.a"))
{
- elog(WARNING, "dld: Cannot link C library!");
+ elog(WARNING, "could not link C library");
return NULL;
}
if (dld_undefined_sym_count > 0)
{
if (dld_link("/usr/lib/libm.a"))
{
- elog(WARNING, "dld: Cannot link math library!");
+ elog(WARNING, "could not link math library");
return NULL;
}
if (dld_undefined_sym_count > 0)
char **list = dld_list_undefined_sym();
/* list the undefined symbols, if any */
- elog(WARNING, "dld: Undefined:");
do
{
- elog(WARNING, " %s", *list);
+ elog(WARNING, "\"%s\" is undefined", *list);
list++;
count--;
} while (count > 0);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.23 2002/10/15 16:04:17 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.24 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
if (dld_link("/usr/lib/libc.a"))
{
- elog(WARNING, "dld: Cannot link C library!");
+ elog(WARNING, "could not link C library");
return NULL;
}
if (dld_undefined_sym_count > 0)
{
if (dld_link("/usr/lib/libm.a"))
{
- elog(WARNING, "dld: Cannot link math library!");
+ elog(WARNING, "could not link math library");
return NULL;
}
if (dld_undefined_sym_count > 0)
char **list = dld_list_undefined_sym();
/* list the undefined symbols, if any */
- elog(WARNING, "dld: Undefined:");
do
{
- elog(WARNING, " %s", *list);
+ elog(WARNING, "\"%s\" is undefined", *list);
list++;
count--;
} while (count > 0);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.16 2002/11/08 20:23:56 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.17 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
/* list the undefined symbols, if any */
if (count)
{
- elog(WARNING, "dl: Undefined:");
while (*list)
{
- elog(WARNING, " %s", *list);
+ elog(WARNING, "\"%s\" is undefined", *list);
list++;
}
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/ipc_test.c,v 1.5 2002/09/04 20:31:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/ipc_test.c,v 1.6 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
on_shmem_exit(void (*function) (), Datum arg)
{
if (on_shmem_exit_index >= MAX_ON_EXITS)
- elog(FATAL, "Out of on_shmem_exit slots");
+ elog(FATAL, "out of on_shmem_exit slots");
on_shmem_exit_list[on_shmem_exit_index].function = function;
on_shmem_exit_list[on_shmem_exit_index].arg = arg;
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/posix_sema.c,v 1.6 2002/09/04 20:31:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/posix_sema.c,v 1.7 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
mySemPointers = (sem_t **) malloc(maxSemas * sizeof(sem_t *));
if (mySemPointers == NULL)
- elog(PANIC, "Out of memory in PGReserveSemaphores");
+ elog(PANIC, "out of memory");
numSems = 0;
maxSems = maxSemas;
nextSemKey = port * 1000;
Assert(!IsUnderPostmaster);
if (numSems >= maxSems)
- elog(PANIC, "PGSemaphoreCreate: too many semaphores created");
+ elog(PANIC, "too many semaphores created");
#ifdef USE_NAMED_POSIX_SEMAPHORES
*sema = newsem = PosixSemaphoreCreate();
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/sysv_sema.c,v 1.5 2003/03/25 16:15:44 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/sysv_sema.c,v 1.6 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
semId, strerror(errno));
/*
- * We used to report a failure via elog(WARNING), but that's pretty
+ * We used to report a failure via ereport(WARNING), but that's pretty
* pointless considering any client has long since disconnected ...
*/
}
mySemaSets = (IpcSemaphoreId *)
malloc(maxSemaSets * sizeof(IpcSemaphoreId));
if (mySemaSets == NULL)
- elog(PANIC, "Out of memory in PGReserveSemaphores");
+ elog(PANIC, "out of memory");
numSemaSets = 0;
nextSemaKey = port * 1000;
nextSemaNumber = SEMAS_PER_SET; /* force sema set alloc on 1st
{
/* Time to allocate another semaphore set */
if (numSemaSets >= maxSemaSets)
- elog(PANIC, "PGSemaphoreCreate: too many semaphores created");
+ elog(PANIC, "too many semaphores created");
mySemaSets[numSemaSets] = IpcSemaphoreCreate(SEMAS_PER_SET);
numSemaSets++;
nextSemaNumber = 0;
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.11 2003/07/14 20:00:22 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.12 2003/07/22 23:30:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
DatumGetPointer(shmaddr), strerror(errno));
/*
- * We used to report a failure via elog(WARNING), but that's pretty
+ * We used to report a failure via ereport(WARNING), but that's pretty
* pointless considering any client has long since disconnected ...
*/
}
DatumGetInt32(shmId), IPC_RMID, strerror(errno));
/*
- * We used to report a failure via elog(WARNING), but that's pretty
+ * We used to report a failure via ereport(WARNING), but that's pretty
* pointless considering any client has long since disconnected ...
*/
}