Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1460dd0

Browse files
committed
Show failing OID in 'cache lookup failed' messages.
1 parentbec82a8 commit1460dd0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/catalog/pg_aggregate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.31 2000/04/12 17:14:56 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.32 2000/04/16 04:16:09 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -332,7 +332,7 @@ AggNameGetInitVal(char *aggName, Oid basetype, int xfuncno, bool *isNull)
332332
if (!HeapTupleIsValid(tup))
333333
{
334334
pfree(strInitVal);
335-
elog(ERROR,"AggNameGetInitVal: cache lookup failed on aggregate transition function return type");
335+
elog(ERROR,"AggNameGetInitVal: cache lookup failed on aggregate transition function return type %u",transtype);
336336
}
337337
typinput= ((Form_pg_type)GETSTRUCT(tup))->typinput;
338338
typelem= ((Form_pg_type)GETSTRUCT(tup))->typelem;

‎src/pl/plpgsql/src/pl_comp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.18 2000/04/12 17:17:19 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.19 2000/04/16 04:16:55 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -135,7 +135,7 @@ plpgsql_compile(Oid fn_oid, int functype)
135135
ObjectIdGetDatum(fn_oid),
136136
0,0,0);
137137
if (!HeapTupleIsValid(procTup))
138-
elog(ERROR,"plpgsql: cache lookupfrom pg_procfailed");
138+
elog(ERROR,"plpgsql: cache lookupfor proc %ufailed",fn_oid);
139139

140140
/* ----------
141141
* Setup the scanner input and error info

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp