diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-16 23:08:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-16 23:08:12 +0000 |
commit | 6cef5d2549110c6c0abb92215c2593e652024493 (patch) | |
tree | 7481a5b0bec7227c23f4b846cd7a1e40b47bf20e /src/test | |
parent | 4da51bfd6d89762f0a3cacde6edf1ac63c09349e (diff) |
Operators live in namespaces. CREATE/DROP/COMMENT ON OPERATOR take
qualified operator names directly, for example CREATE OPERATOR myschema.+
( ... ). To qualify an operator name in an expression you need to write
OPERATOR(myschema.+) (thanks to Peter for suggesting an escape hatch).
I also took advantage of having to reformat pg_operator to fix something
that'd been bugging me for a while: mergejoinable operators should have
explicit links to the associated cross-data-type comparison operators,
rather than hardwiring an assumption that they are named < and >.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/regress/expected/errors.out | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/regress/expected/errors.out b/src/test/regress/expected/errors.out index cdd4218d99e..27a7b38dd48 100644 --- a/src/test/regress/expected/errors.out +++ b/src/test/regress/expected/errors.out @@ -173,13 +173,13 @@ drop operator; ERROR: parser: parse error at or near ";" -- bad operator name drop operator equals; -ERROR: parser: parse error at or near "equals" +ERROR: parser: parse error at or near ";" -- missing type list drop operator ===; ERROR: parser: parse error at or near ";" -- missing parentheses drop operator int4, int4; -ERROR: parser: parse error at or near "int4" +ERROR: parser: parse error at or near "," -- missing operator name drop operator (int4, int4); ERROR: parser: parse error at or near "(" @@ -191,7 +191,7 @@ drop operator === (int4); ERROR: parser: argument type missing (use NONE for unary operators) -- no such operator by that name drop operator === (int4, int4); -ERROR: RemoveOperator: binary operator '===' taking 'int4' and 'int4' does not exist +ERROR: RemoveOperator: Operator '===' for types 'int4' and 'int4' does not exist -- no such type1 drop operator = (nonesuch); ERROR: parser: argument type missing (use NONE for unary operators) |