mirror of
https://github.com/postgres/postgres.git
synced 2025-11-13 16:22:44 +03:00
Change error messages to oids come out as %u and not %d. Change has no
real affect now.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.20 1999/03/17 22:52:47 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.21 1999/05/10 00:44:53 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* See acl.h.
|
||||
@@ -549,8 +549,7 @@ pg_ownercheck(char *usename,
|
||||
owner_id = ((Form_pg_type) GETSTRUCT(tuple))->typowner;
|
||||
break;
|
||||
default:
|
||||
elog(ERROR, "pg_ownercheck: invalid cache id: %d",
|
||||
cacheid);
|
||||
elog(ERROR, "pg_ownercheck: invalid cache id: %d", cacheid);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.77 1999/04/15 04:08:07 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.78 1999/05/10 00:44:54 momjian Exp $
|
||||
*
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
@@ -761,10 +761,10 @@ AddNewRelationType(char *typeName, Oid new_rel_oid)
|
||||
typeLen(typeidType(OIDOID)), /* external size */
|
||||
'c', /* type-type (catalog) */
|
||||
',', /* default array delimiter */
|
||||
"int4in", /* input procedure */
|
||||
"int4out", /* output procedure */
|
||||
"int4in", /* receive procedure */
|
||||
"int4out", /* send procedure */
|
||||
"oidin", /* input procedure */
|
||||
"oidout", /* output procedure */
|
||||
"oidin", /* receive procedure */
|
||||
"oidout", /* send procedure */
|
||||
NULL, /* array element type - irrelevent */
|
||||
"-", /* default type value */
|
||||
(bool) 1, /* passed by value */
|
||||
@@ -973,7 +973,7 @@ RelationRemoveInheritance(Relation relation)
|
||||
heap_endscan(scan);
|
||||
heap_close(catalogRelation);
|
||||
|
||||
elog(ERROR, "Relation '%d' inherits '%s'",
|
||||
elog(ERROR, "Relation '%u' inherits '%s'",
|
||||
((Form_pg_inherits) GETSTRUCT(tuple))->inhrel,
|
||||
RelationGetRelationName(relation));
|
||||
}
|
||||
@@ -1235,7 +1235,7 @@ DeleteTypeTuple(Relation rel)
|
||||
heap_endscan(pg_attribute_scan);
|
||||
heap_close(pg_attribute_desc);
|
||||
|
||||
elog(ERROR, "DeleteTypeTuple: att of type %s exists in relation %d",
|
||||
elog(ERROR, "DeleteTypeTuple: att of type %s exists in relation %u",
|
||||
&rel->rd_rel->relname, relid);
|
||||
}
|
||||
heap_endscan(pg_attribute_scan);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.70 1999/02/13 23:14:56 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.71 1999/05/10 00:44:55 momjian Exp $
|
||||
*
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
@@ -1279,7 +1279,7 @@ UpdateStats(Oid relid, long reltuples, bool hasindex)
|
||||
whichRel = RelationIdGetRelation(relid);
|
||||
|
||||
if (!RelationIsValid(whichRel))
|
||||
elog(ERROR, "UpdateStats: cannot open relation id %d", relid);
|
||||
elog(ERROR, "UpdateStats: cannot open relation id %u", relid);
|
||||
|
||||
/* ----------------
|
||||
* Find the RELATION relation tuple for the given relation.
|
||||
@@ -1679,7 +1679,7 @@ IndexIsUnique(Oid indexId)
|
||||
0, 0, 0);
|
||||
if (!HeapTupleIsValid(tuple))
|
||||
{
|
||||
elog(ERROR, "IndexIsUnique: can't find index id %d",
|
||||
elog(ERROR, "IndexIsUnique: can't find index id %u",
|
||||
indexId);
|
||||
}
|
||||
index = (Form_pg_index) GETSTRUCT(tuple);
|
||||
@@ -1722,7 +1722,7 @@ IndexIsUniqueNoCache(Oid indexId)
|
||||
/* NO CACHE */
|
||||
tuple = heap_getnext(scandesc, 0);
|
||||
if (!HeapTupleIsValid(tuple))
|
||||
elog(ERROR, "IndexIsUniqueNoCache: can't find index id %d", indexId);
|
||||
elog(ERROR, "IndexIsUniqueNoCache: can't find index id %u", indexId);
|
||||
|
||||
index = (Form_pg_index) GETSTRUCT(tuple);
|
||||
Assert(index->indexrelid == indexId);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.36 1999/02/13 23:14:57 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.37 1999/05/10 00:44:55 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -206,7 +206,7 @@ CatalogHasIndex(char *catName, Oid catId)
|
||||
|
||||
if (!HeapTupleIsValid(htup))
|
||||
{
|
||||
elog(NOTICE, "CatalogHasIndex: no relation with oid %d", catId);
|
||||
elog(NOTICE, "CatalogHasIndex: no relation with oid %u", catId);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.35 1999/04/23 00:50:57 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.36 1999/05/10 00:44:56 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* these routines moved here from commands/define.c and somewhat cleaned up.
|
||||
@@ -787,7 +787,7 @@ OperatorDef(char *operatorName,
|
||||
setheapoverride(false);
|
||||
}
|
||||
else
|
||||
elog(ERROR, "OperatorDef: no operator %d", operatorObjectId);
|
||||
elog(ERROR, "OperatorDef: no operator %u", operatorObjectId);
|
||||
|
||||
heap_endscan(pg_operator_scan);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user