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/backend/nodes/equalfuncs.c | |
| parent | 4da51bfd6d89762f0a3cacde6edf1ac63c09349e (diff) | |
| download | postgresql-6cef5d2549110c6c0abb92215c2593e652024493.tar.gz | |
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/backend/nodes/equalfuncs.c')
| -rw-r--r-- | src/backend/nodes/equalfuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index cafd77a822..245d72fc01 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -20,7 +20,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.125 2002/04/11 19:59:59 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.126 2002/04/16 23:08:10 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -969,7 +969,7 @@ _equalRemoveFuncStmt(RemoveFuncStmt *a, RemoveFuncStmt *b) static bool _equalRemoveOperStmt(RemoveOperStmt *a, RemoveOperStmt *b) { - if (!equalstr(a->opname, b->opname)) + if (!equal(a->opname, b->opname)) return false; if (!equal(a->args, b->args)) return false; @@ -1400,7 +1400,7 @@ _equalAExpr(A_Expr *a, A_Expr *b) { if (a->oper != b->oper) return false; - if (!equalstr(a->opname, b->opname)) + if (!equal(a->name, b->name)) return false; if (!equal(a->lexpr, b->lexpr)) return false; @@ -1520,7 +1520,7 @@ _equalTypeCast(TypeCast *a, TypeCast *b) static bool _equalSortGroupBy(SortGroupBy *a, SortGroupBy *b) { - if (!equalstr(a->useOp, b->useOp)) + if (!equal(a->useOp, b->useOp)) return false; if (!equal(a->node, b->node)) return false; |
