mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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 >.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: defrem.h,v 1.35 2002/04/15 05:22:03 tgl Exp $
|
||||
* $Id: defrem.h,v 1.36 2002/04/16 23:08:12 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -42,7 +42,7 @@ extern void CreateFunction(ProcedureStmt *stmt);
|
||||
extern void RemoveFunction(List *functionName, List *argTypes);
|
||||
|
||||
extern void DefineOperator(List *names, List *parameters);
|
||||
extern void RemoveOperator(char *operatorName,
|
||||
extern void RemoveOperator(List *operatorName,
|
||||
TypeName *typeName1, TypeName *typeName2);
|
||||
|
||||
extern void DefineAggregate(List *names, List *parameters);
|
||||
|
||||
Reference in New Issue
Block a user