|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include "access/attnum.h"#include "common/shortest_dec.h"#include "lib/stringinfo.h"#include "miscadmin.h"#include "nodes/bitmapset.h"#include "nodes/nodes.h"#include "nodes/pg_list.h"#include "utils/datum.h"#include "outfuncs.funcs.c"#include "outfuncs.switch.c"
Go to the source code of this file.
Variables | |
| static bool | write_location_fields = false |
Definition at line 142 of file outfuncs.c.
Definition at line 118 of file outfuncs.c.
Definition at line 108 of file outfuncs.c.
Definition at line 138 of file outfuncs.c.
Definition at line 89 of file outfuncs.c.
Definition at line 74 of file outfuncs.c.
Definition at line 79 of file outfuncs.c.
Definition at line 84 of file outfuncs.c.
Definition at line 128 of file outfuncs.c.
Definition at line 55 of file outfuncs.c.
Definition at line 133 of file outfuncs.c.
| #define WRITE_INT_FIELD | ( | fldname | ) | appendStringInfo(str, " :" CppAsString(fldname) " %d", node->fldname) |
Definition at line 47 of file outfuncs.c.
| #define WRITE_LOCATION_FIELD | ( | fldname | ) | appendStringInfo(str, " :" CppAsString(fldname) " %d", write_location_fields ? node->fldname : -1) |
Definition at line 99 of file outfuncs.c.
| #define WRITE_LONG_FIELD | ( | fldname | ) | appendStringInfo(str, " :" CppAsString(fldname) " %ld", node->fldname) |
Definition at line 70 of file outfuncs.c.
Definition at line 113 of file outfuncs.c.
Definition at line 103 of file outfuncs.c.
| #define WRITE_NODE_TYPE | ( | nodelabel | ) | appendStringInfoString(str, nodelabel) |
Definition at line 43 of file outfuncs.c.
Definition at line 123 of file outfuncs.c.
| #define WRITE_OID_FIELD | ( | fldname | ) | appendStringInfo(str, " :" CppAsString(fldname) " %u", node->fldname) |
Definition at line 66 of file outfuncs.c.
Definition at line 233 of file outfuncs.c.
Definition at line 94 of file outfuncs.c.
Definition at line 61 of file outfuncs.c.
| #define WRITE_UINT_FIELD | ( | fldname | ) | appendStringInfo(str, " :" CppAsString(fldname) " %u", node->fldname) |
Definition at line 51 of file outfuncs.c.
|
static |
Definition at line 707 of file outfuncs.c.
References appendStringInfoString(), A_Const::isnull, outNode(), str, A_Const::val, WRITE_LOCATION_FIELD, and WRITE_NODE_TYPE.
|
static |
Definition at line 585 of file outfuncs.c.
References AEXPR_BETWEEN, AEXPR_BETWEEN_SYM, AEXPR_DISTINCT, AEXPR_ILIKE, AEXPR_IN, AEXPR_LIKE, AEXPR_NOT_BETWEEN, AEXPR_NOT_BETWEEN_SYM, AEXPR_NOT_DISTINCT, AEXPR_NULLIF, AEXPR_OP, AEXPR_OP_ALL, AEXPR_OP_ANY, AEXPR_SIMILAR, appendStringInfoString(), elog, ERROR, A_Expr::kind, name, str, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.
|
static |
Definition at line 695 of file outfuncs.c.
References Assert, BitString::bsval, outToken(), and str.
Referenced by outNode().
|
static |
Definition at line 675 of file outfuncs.c.
References appendStringInfoString(), Boolean::boolval, and str.
Referenced by outNode().
|
static |
Definition at line 407 of file outfuncs.c.
References AND_EXPR, appendStringInfoString(), BoolExpr::boolop, fb(), NOT_EXPR, OR_EXPR, outToken(), str, WRITE_LOCATION_FIELD, WRITE_NODE_FIELD, and WRITE_NODE_TYPE.
|
static |
Definition at line 387 of file outfuncs.c.
References appendStringInfoString(), fb(), outDatum(), str, WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_LOCATION_FIELD, WRITE_NODE_TYPE, and WRITE_OID_FIELD.
|
static |
Definition at line 458 of file outfuncs.c.
References EquivalenceClass::ec_childmembers_size, EquivalenceClass::ec_merged, WRITE_BITMAPSET_FIELD, WRITE_BOOL_FIELD, WRITE_INT_FIELD, WRITE_NODE_ARRAY, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, and WRITE_UINT_FIELD.
|
static |
Definition at line 487 of file outfuncs.c.
References ExtensibleNode::extnodename, GetExtensibleNodeMethods(), ExtensibleNodeMethods::nodeOut, str, WRITE_NODE_TYPE, and WRITE_STRING_FIELD.
|
static |
Definition at line 665 of file outfuncs.c.
References appendStringInfoString(), Float::fval, and str.
Referenced by outNode().
|
static |
Definition at line 434 of file outfuncs.c.
References appendStringInfo(), appendStringInfoString(), ForeignKeyOptInfo::eclass, fb(), i, list_length(), ForeignKeyOptInfo::nkeys, ForeignKeyOptInfo::rinfos, str, WRITE_ATTRNUMBER_ARRAY, WRITE_INT_FIELD, WRITE_NODE_TYPE, WRITE_OID_ARRAY, and WRITE_UINT_FIELD.
|
static |
Definition at line 659 of file outfuncs.c.
References appendStringInfo(), Integer::ival, and str.
Referenced by outNode().
|
static |
Definition at line 281 of file outfuncs.c.
References appendStringInfo(), appendStringInfoChar(), elog, ERROR, fb(), IsA, lfirst, lfirst_int, lfirst_oid, lfirst_xid, lnext(), outNode(), str, and List::type.
Referenced by outNode().
|
static |
Definition at line 502 of file outfuncs.c.
References elog, ERROR, fb(), functions, RTE_CTE, RTE_FUNCTION, RTE_GROUP, RTE_JOIN, RTE_NAMEDTUPLESTORE, RTE_RELATION, RTE_RESULT, RTE_SUBQUERY, RTE_TABLEFUNC, RTE_VALUES, RangeTblEntry::rtekind, WRITE_BOOL_FIELD, WRITE_CHAR_FIELD, WRITE_ENUM_FIELD, WRITE_FLOAT_FIELD, WRITE_INT_FIELD, WRITE_NODE_FIELD, WRITE_NODE_TYPE, WRITE_OID_FIELD, WRITE_STRING_FIELD, and WRITE_UINT_FIELD.
|
static |
Definition at line 681 of file outfuncs.c.
References appendStringInfoChar(), outToken(), str, and String::sval.
Referenced by outNode().
Definition at line 819 of file outfuncs.c.
References fb(), initStringInfo(), outBitmapset(), and str.
Referenced by ExecInitPartitionExecPruning(), search_indexed_tlist_for_phv(), and search_indexed_tlist_for_var().
Definition at line 802 of file outfuncs.c.
References nodeToStringInternal().
Referenced by AlterDomainDefault(), AlterPolicy(), CreatePolicy(), CreateStatistics(), createTableConstraints(), CreateTriggerFiringOn(), DefineDomain(), domainAddCheckConstraint(), ExecSerializePlan(), expandTableLikeClause(), InsertRule(), ProcedureCreate(), publication_add_relation(), StoreAttrDefault(), StorePartitionBound(), StorePartitionKey(), StoreRelCheck(), and UpdateIndexRelation().
Definition at line 781 of file outfuncs.c.
References fb(), initStringInfo(), outNode(), str, and write_location_fields.
Referenced by nodeToString(), and nodeToStringWithLocations().
Definition at line 808 of file outfuncs.c.
References nodeToStringInternal().
Referenced by elog_node_display(), pg_parse_query(), pg_plan_query(), pg_rewrite_query(), pprint(), and print().
| void outBitmapset | ( | StringInfo | str, |
| const Bitmapset * | bms | ||
| ) |
Definition at line 331 of file outfuncs.c.
References appendStringInfo(), appendStringInfoChar(), bms_next_member(), fb(), str, and x.
Referenced by bmsToString(), and outNode().
|
static |
Definition at line 196 of file outfuncs.c.
References appendStringInfoString(), outToken(), and str.
| void outDatum | ( | StringInfo | str, |
| Datum | value, | ||
| int | typlen, | ||
| bool | typbyval | ||
| ) |
Definition at line 347 of file outfuncs.c.
References appendStringInfo(), appendStringInfoChar(), appendStringInfoString(), DatumGetPointer(), datumGetSize(), i, str, and value.
Referenced by _outConst().
|
static |
Definition at line 217 of file outfuncs.c.
References appendStringInfoString(), buf, DOUBLE_SHORTEST_DECIMAL_LEN, double_to_shortest_decimal_buf(), and str.
| void outNode | ( | StringInfo | str, |
| const void * | obj | ||
| ) |
Definition at line 727 of file outfuncs.c.
References _outBitString(), _outBoolean(), _outFloat(), _outInteger(), _outList(), _outString(), appendStringInfoChar(), appendStringInfoString(), check_stack_depth(), elog, fb(), IsA, nodeTag, outBitmapset(), str, and WARNING.
Referenced by _outA_Const(), _outList(), nodeToStringInternal(), and writeNodeArray().
| void outToken | ( | StringInfo | str, |
| const char * | s | ||
| ) |
Definition at line 155 of file outfuncs.c.
References appendStringInfoChar(), appendStringInfoString(), fb(), and str.
Referenced by _outBitString(), _outBoolExpr(), _outString(), and outChar().
Definition at line 261 of file outfuncs.c.
References appendStringInfoChar(), appendStringInfoString(), fb(), i, len, outNode(), and str.
Definition at line 29 of file outfuncs.c.
Referenced by nodeToStringInternal().