From 6cef5d2549110c6c0abb92215c2593e652024493 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 16 Apr 2002 23:08:12 +0000 Subject: 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 >. --- src/include/parser/parse_node.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/include/parser/parse_node.h') diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h index ecf67f8275b..8551000aca4 100644 --- a/src/include/parser/parse_node.h +++ b/src/include/parser/parse_node.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_node.h,v 1.29 2001/11/05 17:46:35 momjian Exp $ + * $Id: parse_node.h,v 1.30 2002/04/16 23:08:12 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -51,9 +51,8 @@ typedef struct ParseState } ParseState; extern ParseState *make_parsestate(ParseState *parentParseState); -extern Expr *make_op(char *opname, Node *ltree, Node *rtree); -extern Node *make_operand(char *opname, Node *tree, - Oid orig_typeId, Oid target_typeId); +extern Expr *make_op(List *opname, Node *ltree, Node *rtree); +extern Node *make_operand(Node *tree, Oid orig_typeId, Oid target_typeId); extern Var *make_var(ParseState *pstate, RangeTblEntry *rte, int attrno); extern ArrayRef *transformArraySubscripts(ParseState *pstate, Node *arrayBase, -- cgit v1.2.3