diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-04 02:51:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-04 02:51:34 +0000 |
commit | 79fafdf49ca9b5adbe36fb21facddb4ef1d81241 (patch) | |
tree | 899cad919aba943e324e24b30dd7aa6183c0a901 /src/backend/commands/operatorcmds.c | |
parent | cdb8a844e62c50e87d5eef19ee29b50837b1c460 (diff) |
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.
Diffstat (limited to 'src/backend/commands/operatorcmds.c')
-rw-r--r-- | src/backend/commands/operatorcmds.c | 7 |
1 files changed, 3 insertions, 4 deletions
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()) && |