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/outfuncs.c | |
parent | 10b374aecfb50365eeb93e3434a77729d7a89541 (diff) | |
download | postgresql-6ebc90b0455ffe9dc0bcaf85185b2746008003f6.tar.gz postgresql-6ebc90b0455ffe9dc0bcaf85185b2746008003f6.zip |
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/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 70419cb9ace..1a610b7c7c0 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.167 2002/08/10 20:44:48 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.168 2002/08/19 15:08:46 tgl Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -1258,24 +1258,6 @@ _outDatum(StringInfo str, Datum value, int typlen, bool typbyval) } static void -_outStream(StringInfo str, Stream *node) -{ - appendStringInfo(str, - " STREAM :pathptr @ %p :cinfo @ %p :clausetype %p :upstream @ %p ", - node->pathptr, - node->cinfo, - node->clausetype, - node->upstream); - - appendStringInfo(str, - " :downstream @ %p :groupup %d :groupcost %f :groupsel %f ", - node->downstream, - node->groupup, - node->groupcost, - node->groupsel); -} - -static void _outAExpr(StringInfo str, A_Expr *node) { appendStringInfo(str, " AEXPR "); @@ -1372,13 +1354,6 @@ _outParamRef(StringInfo str, ParamRef *node) } static void -_outIdent(StringInfo str, Ident *node) -{ - appendStringInfo(str, " IDENT "); - _outToken(str, node->name); -} - -static void _outAConst(StringInfo str, A_Const *node) { appendStringInfo(str, "CONST "); @@ -1736,9 +1711,6 @@ _outNode(StringInfo str, void *obj) case T_JoinInfo: _outJoinInfo(str, obj); break; - case T_Stream: - _outStream(str, obj); - break; case T_A_Expr: _outAExpr(str, obj); break; @@ -1751,9 +1723,6 @@ _outNode(StringInfo str, void *obj) case T_ParamRef: _outParamRef(str, obj); break; - case T_Ident: - _outIdent(str, obj); - break; case T_A_Const: _outAConst(str, obj); break; |