From 79fafdf49ca9b5adbe36fb21facddb4ef1d81241 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 4 Jul 2003 02:51:34 +0000 Subject: Some early work on error message editing. Operator-not-found and function-not-found messages now distinguish the cases no-match and ambiguous-match, and they follow the style guidelines too. --- src/backend/commands/operatorcmds.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/backend/commands/operatorcmds.c') diff --git a/src/backend/commands/operatorcmds.c b/src/backend/commands/operatorcmds.c index bb82e0df56f..6c902b643ce 100644 --- a/src/backend/commands/operatorcmds.c +++ b/src/backend/commands/operatorcmds.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/operatorcmds.c,v 1.7 2002/09/04 20:31:15 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/operatorcmds.c,v 1.8 2003/07/04 02:51:33 tgl Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -206,14 +206,13 @@ RemoveOperator(RemoveOperStmt *stmt) ObjectAddress object; operOid = LookupOperNameTypeNames(operatorName, typeName1, typeName2, - "RemoveOperator"); + false); tup = SearchSysCache(OPEROID, ObjectIdGetDatum(operOid), 0, 0, 0); if (!HeapTupleIsValid(tup)) /* should not happen */ - elog(ERROR, "RemoveOperator: failed to find tuple for operator '%s'", - NameListToString(operatorName)); + elog(ERROR, "cache lookup of operator %u failed", operOid); /* Permission check: must own operator or its namespace */ if (!pg_oper_ownercheck(operOid, GetUserId()) && -- cgit v1.2.3