mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
pgindent run.
This commit is contained in:
@ -8,12 +8,12 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.214 2003/07/28 00:09:15 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.215 2003/08/04 00:43:19 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
* have an output function defined here (as well as an input function
|
||||
* in readfuncs.c). For use in debugging, we also provide output
|
||||
* in readfuncs.c). For use in debugging, we also provide output
|
||||
* functions for nodes that appear in raw parsetrees, path, and plan trees.
|
||||
* These nodes however need not have input functions.
|
||||
*
|
||||
@ -31,8 +31,8 @@
|
||||
|
||||
|
||||
/*
|
||||
* Macros to simplify output of different kinds of fields. Use these
|
||||
* wherever possible to reduce the chance for silly typos. Note that these
|
||||
* Macros to simplify output of different kinds of fields. Use these
|
||||
* wherever possible to reduce the chance for silly typos. Note that these
|
||||
* hard-wire conventions about the names of the local variables in an Out
|
||||
* routine.
|
||||
*/
|
||||
@ -184,7 +184,7 @@ _outOidList(StringInfo str, List *list)
|
||||
* an integer List would be.
|
||||
*/
|
||||
static void
|
||||
_outBitmapset(StringInfo str, Bitmapset *bms)
|
||||
_outBitmapset(StringInfo str, Bitmapset * bms)
|
||||
{
|
||||
Bitmapset *tmpset;
|
||||
int x;
|
||||
@ -192,9 +192,7 @@ _outBitmapset(StringInfo str, Bitmapset *bms)
|
||||
appendStringInfoChar(str, '(');
|
||||
tmpset = bms_copy(bms);
|
||||
while ((x = bms_first_member(tmpset)) >= 0)
|
||||
{
|
||||
appendStringInfo(str, " %d", x);
|
||||
}
|
||||
bms_free(tmpset);
|
||||
appendStringInfoChar(str, ')');
|
||||
}
|
||||
@ -633,7 +631,7 @@ _outArrayRef(StringInfo str, ArrayRef *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outFuncExpr(StringInfo str, FuncExpr *node)
|
||||
_outFuncExpr(StringInfo str, FuncExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("FUNCEXPR");
|
||||
|
||||
@ -645,7 +643,7 @@ _outFuncExpr(StringInfo str, FuncExpr *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outOpExpr(StringInfo str, OpExpr *node)
|
||||
_outOpExpr(StringInfo str, OpExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("OPEXPR");
|
||||
|
||||
@ -657,7 +655,7 @@ _outOpExpr(StringInfo str, OpExpr *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outDistinctExpr(StringInfo str, DistinctExpr *node)
|
||||
_outDistinctExpr(StringInfo str, DistinctExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("DISTINCTEXPR");
|
||||
|
||||
@ -669,7 +667,7 @@ _outDistinctExpr(StringInfo str, DistinctExpr *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outScalarArrayOpExpr(StringInfo str, ScalarArrayOpExpr *node)
|
||||
_outScalarArrayOpExpr(StringInfo str, ScalarArrayOpExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("SCALARARRAYOPEXPR");
|
||||
|
||||
@ -680,7 +678,7 @@ _outScalarArrayOpExpr(StringInfo str, ScalarArrayOpExpr *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outBoolExpr(StringInfo str, BoolExpr *node)
|
||||
_outBoolExpr(StringInfo str, BoolExpr * node)
|
||||
{
|
||||
char *opstr = NULL;
|
||||
|
||||
@ -780,7 +778,7 @@ _outCaseWhen(StringInfo str, CaseWhen *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outArrayExpr(StringInfo str, ArrayExpr *node)
|
||||
_outArrayExpr(StringInfo str, ArrayExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("ARRAY");
|
||||
|
||||
@ -791,7 +789,7 @@ _outArrayExpr(StringInfo str, ArrayExpr *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outCoalesceExpr(StringInfo str, CoalesceExpr *node)
|
||||
_outCoalesceExpr(StringInfo str, CoalesceExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("COALESCE");
|
||||
|
||||
@ -800,7 +798,7 @@ _outCoalesceExpr(StringInfo str, CoalesceExpr *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outNullIfExpr(StringInfo str, NullIfExpr *node)
|
||||
_outNullIfExpr(StringInfo str, NullIfExpr * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("NULLIFEXPR");
|
||||
|
||||
@ -830,7 +828,7 @@ _outBooleanTest(StringInfo str, BooleanTest *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outCoerceToDomain(StringInfo str, CoerceToDomain *node)
|
||||
_outCoerceToDomain(StringInfo str, CoerceToDomain * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("COERCETODOMAIN");
|
||||
|
||||
@ -841,7 +839,7 @@ _outCoerceToDomain(StringInfo str, CoerceToDomain *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outCoerceToDomainValue(StringInfo str, CoerceToDomainValue *node)
|
||||
_outCoerceToDomainValue(StringInfo str, CoerceToDomainValue * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("COERCETODOMAINVALUE");
|
||||
|
||||
@ -850,7 +848,7 @@ _outCoerceToDomainValue(StringInfo str, CoerceToDomainValue *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outSetToDefault(StringInfo str, SetToDefault *node)
|
||||
_outSetToDefault(StringInfo str, SetToDefault * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("SETTODEFAULT");
|
||||
|
||||
@ -979,7 +977,7 @@ _outAppendPath(StringInfo str, AppendPath *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outResultPath(StringInfo str, ResultPath *node)
|
||||
_outResultPath(StringInfo str, ResultPath * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("RESULTPATH");
|
||||
|
||||
@ -990,7 +988,7 @@ _outResultPath(StringInfo str, ResultPath *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outMaterialPath(StringInfo str, MaterialPath *node)
|
||||
_outMaterialPath(StringInfo str, MaterialPath * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("MATERIALPATH");
|
||||
|
||||
@ -1000,7 +998,7 @@ _outMaterialPath(StringInfo str, MaterialPath *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outUniquePath(StringInfo str, UniquePath *node)
|
||||
_outUniquePath(StringInfo str, UniquePath * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("UNIQUEPATH");
|
||||
|
||||
@ -1079,7 +1077,7 @@ _outJoinInfo(StringInfo str, JoinInfo *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outInClauseInfo(StringInfo str, InClauseInfo *node)
|
||||
_outInClauseInfo(StringInfo str, InClauseInfo * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("INCLAUSEINFO");
|
||||
|
||||
@ -1132,7 +1130,7 @@ _outNotifyStmt(StringInfo str, NotifyStmt *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outDeclareCursorStmt(StringInfo str, DeclareCursorStmt *node)
|
||||
_outDeclareCursorStmt(StringInfo str, DeclareCursorStmt * node)
|
||||
{
|
||||
WRITE_NODE_TYPE("DECLARECURSOR");
|
||||
|
||||
@ -1820,9 +1818,11 @@ _outNode(StringInfo str, void *obj)
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
/*
|
||||
* This should be an ERROR, but it's too useful to be able
|
||||
* to dump structures that _outNode only understands part of.
|
||||
* to dump structures that _outNode only understands part
|
||||
* of.
|
||||
*/
|
||||
elog(WARNING, "could not dump unrecognized node type: %d",
|
||||
(int) nodeTag(obj));
|
||||
|
Reference in New Issue
Block a user