diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-19 15:08:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-19 15:08:47 +0000 |
commit | 6ebc90b0455ffe9dc0bcaf85185b2746008003f6 (patch) | |
tree | ac89e57df60a93047eb69e28074556c0c9acdb6f /src/backend/nodes/equalfuncs.c | |
parent | 10b374aecfb50365eeb93e3434a77729d7a89541 (diff) |
Remove Ident nodetype in favor of using String nodes; this fixes some
latent wrong-struct-type bugs and makes the coding style more uniform,
since the majority of places working with lists of column names were
already using Strings not Idents. While at it, remove vestigial
support for Stream node type, and otherwise-unreferenced nodes.h entries
for T_TupleCount and T_BaseNode.
NB: full recompile is recommended due to changes of Node type numbers.
This shouldn't force an initdb though.
Diffstat (limited to 'src/backend/nodes/equalfuncs.c')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 60b6d2d3b16..9990a046229 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.152 2002/08/19 00:40:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.153 2002/08/19 15:08:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -543,26 +543,6 @@ _equalJoinInfo(JoinInfo *a, JoinInfo *b) return true; } -static bool -_equalStream(Stream *a, Stream *b) -{ - if (a->clausetype != b->clausetype) - return false; - if (a->groupup != b->groupup) - return false; - if (a->groupcost != b->groupcost) - return false; - if (a->groupsel != b->groupsel) - return false; - if (!equal(a->pathptr, b->pathptr)) - return false; - if (!equal(a->cinfo, b->cinfo)) - return false; - if (!equal(a->upstream, b->upstream)) - return false; - return equal(a->downstream, b->downstream); -} - /* * Stuff from parsenodes.h */ @@ -1557,15 +1537,6 @@ _equalAConst(A_Const *a, A_Const *b) } static bool -_equalIdent(Ident *a, Ident *b) -{ - if (!equalstr(a->name, b->name)) - return false; - - return true; -} - -static bool _equalFuncCall(FuncCall *a, FuncCall *b) { if (!equal(a->funcname, b->funcname)) @@ -2045,9 +2016,6 @@ equal(void *a, void *b) case T_JoinInfo: retval = _equalJoinInfo(a, b); break; - case T_Stream: - retval = _equalStream(a, b); - break; case T_TidPath: retval = _equalTidPath(a, b); break; @@ -2290,9 +2258,6 @@ equal(void *a, void *b) case T_A_Const: retval = _equalAConst(a, b); break; - case T_Ident: - retval = _equalIdent(a, b); - break; case T_FuncCall: retval = _equalFuncCall(a, b); break; |