summaryrefslogtreecommitdiff
path: root/contrib/array
diff options
context:
space:
mode:
authorBruce Momjian1998-01-06 18:53:02 +0000
committerBruce Momjian1998-01-06 18:53:02 +0000
commit9d00fbbeb008e351047161e195250743453e3c3a (patch)
tree9b8769acad7ca41d2e8caab6bbf51be0bffd3f1c /contrib/array
parent42acc6e8c4fa6117b7783455200e41f8019a58b0 (diff)
Change some labels in bootparse to make ctags happy. Clean up outfunc/readfunc code and add missing fields for Query structure and new Union fields. Fix optimizer bug shown in new \do command. Change WARN to ERROR in contrib and regression stuff.
Diffstat (limited to 'contrib/array')
-rw-r--r--contrib/array/array_iterator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/array/array_iterator.c b/contrib/array/array_iterator.c
index de8dac95de0..53130bf7a96 100644
--- a/contrib/array/array_iterator.c
+++ b/contrib/array/array_iterator.c
@@ -56,7 +56,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
/* Lookup element type information */
typ_tuple = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(elemtype),0,0,0);
if (!HeapTupleIsValid(typ_tuple)) {
- elog(WARN,"array_iterator: cache lookup failed for type %d", elemtype);
+ elog(ERROR,"array_iterator: cache lookup failed for type %d", elemtype);
return 0;
}
typ_struct = (TypeTupleForm) GETSTRUCT(typ_tuple);
@@ -67,7 +67,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
proc_fn = (func_ptr) NULL;
fmgr_info(proc, &proc_fn, &pronargs);
if ((proc_fn == NULL) || (pronargs != 2)) {
- elog(WARN, "array_iterator: fmgr_info lookup failed for oid %d", proc);
+ elog(ERROR, "array_iterator: fmgr_info lookup failed for oid %d", proc);
return (0);
}