diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-17 20:57:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-17 20:57:57 +0000 |
commit | 27a54ae282d74ee471a5b34d136fe3d4f894a9de (patch) | |
tree | 59aedb6b78d8b4ff8f26f6a945799a443dd6d571 /src/backend/nodes | |
parent | d85a81cbc384614eec525ca19e1cf48687643725 (diff) | |
download | postgresql-27a54ae282d74ee471a5b34d136fe3d4f894a9de.tar.gz postgresql-27a54ae282d74ee471a5b34d136fe3d4f894a9de.zip |
Opclasses live in namespaces. I also took the opportunity to create
an 'opclass owner' column in pg_opclass. Nothing is done with it at
present, but since there are plans to invent a CREATE OPERATOR CLASS
command soon, we'll probably want DROP OPERATOR CLASS too, which
suggests that a notion of ownership would be a good idea.
Diffstat (limited to 'src/backend/nodes')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 5 | ||||
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 4 | ||||
-rw-r--r-- | src/backend/nodes/outfuncs.c | 6 |
3 files changed, 7 insertions, 8 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 40e1dea79e3..8417f7a716c 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.178 2002/04/16 23:08:10 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.179 2002/04/17 20:57:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1714,8 +1714,7 @@ _copyIndexElem(IndexElem *from) newnode->name = pstrdup(from->name); Node_Copy(from, newnode, funcname); Node_Copy(from, newnode, args); - if (from->class) - newnode->class = pstrdup(from->class); + Node_Copy(from, newnode, opclass); return newnode; } diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 245d72fc014..58f6b5a5d63 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.126 2002/04/16 23:08:10 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.127 2002/04/17 20:57:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1599,7 +1599,7 @@ _equalIndexElem(IndexElem *a, IndexElem *b) return false; if (!equal(a->args, b->args)) return false; - if (!equalstr(a->class, b->class)) + if (!equal(a->opclass, b->opclass)) return false; return true; diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 65a501c429a..24238565d55 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.155 2002/04/16 23:08:10 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.156 2002/04/17 20:57:56 tgl Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -217,8 +217,8 @@ _outIndexElem(StringInfo str, IndexElem *node) _outNode(str, node->funcname); appendStringInfo(str, " :args "); _outNode(str, node->args); - appendStringInfo(str, " :class "); - _outToken(str, node->class); + appendStringInfo(str, " :opclass "); + _outNode(str, node->opclass); } static void |