mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +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/optimizer/plan/createplan.c,v 1.53 1999/05/06 01:30:58 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.54 1999/05/10 00:45:19 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -367,8 +367,7 @@ create_indexscan_node(IndexPath *best_path,
|
||||
ObjectIdGetDatum(lfirsti(ixid)),
|
||||
0, 0, 0);
|
||||
if (!HeapTupleIsValid(indexTuple))
|
||||
elog(ERROR, "create_plan: index %d not found",
|
||||
lfirsti(ixid));
|
||||
elog(ERROR, "create_plan: index %u not found", lfirsti(ixid));
|
||||
index = (Form_pg_index) GETSTRUCT(indexTuple);
|
||||
if (index->indislossy)
|
||||
lossy = TRUE;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.49 1999/05/04 00:00:20 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.50 1999/05/10 00:45:20 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -720,7 +720,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
|
||||
|
||||
/* by here, the function is declared to return some type */
|
||||
if ((typ = typeidType(rettype)) == NULL)
|
||||
elog(ERROR, "can't find return type %d for function\n", rettype);
|
||||
elog(ERROR, "can't find return type %u for function\n", rettype);
|
||||
|
||||
/*
|
||||
* test 3: if the function is declared to return a value, then the
|
||||
@@ -770,7 +770,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
|
||||
reln = heap_open(typeTypeRelid(typ));
|
||||
|
||||
if (!RelationIsValid(reln))
|
||||
elog(ERROR, "cannot open relation relid %d", typeTypeRelid(typ));
|
||||
elog(ERROR, "cannot open relation relid %u", typeTypeRelid(typ));
|
||||
|
||||
relid = reln->rd_id;
|
||||
relnatts = reln->rd_rel->relnatts;
|
||||
@@ -918,7 +918,7 @@ need_sortplan(List *sortcls, Plan *plan)
|
||||
htup = SearchSysCacheTuple(INDEXRELID,
|
||||
ObjectIdGetDatum(indexId), 0, 0, 0);
|
||||
if (!HeapTupleIsValid(htup)) {
|
||||
elog(ERROR, "cache lookup for index %d failed", indexId);
|
||||
elog(ERROR, "cache lookup for index %u failed", indexId);
|
||||
}
|
||||
index_tup = (Form_pg_index) GETSTRUCT(htup);
|
||||
|
||||
|
||||
@@ -311,8 +311,7 @@ _finalize_primnode(void *expr, List **subplan)
|
||||
}
|
||||
}
|
||||
else
|
||||
elog(ERROR, "_finalize_primnode: can't handle node %d",
|
||||
nodeTag(expr));
|
||||
elog(ERROR, "_finalize_primnode: can't handle node %d", nodeTag(expr));
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -543,8 +542,7 @@ SS_pull_subplan(Node *expr)
|
||||
else if (is_subplan(expr))
|
||||
return lcons(((Expr *) expr)->oper, NULL);
|
||||
else
|
||||
elog(ERROR, "SS_pull_subplan: can't handle node %d",
|
||||
nodeTag(expr));
|
||||
elog(ERROR, "SS_pull_subplan: can't handle node %d", nodeTag(expr));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user