PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/printtup.h"
#include "lib/stringinfo.h"
#include "nodes/nodeFuncs.h"
#include "nodes/pathnodes.h"
#include "nodes/print.h"
#include "parser/parsetree.h"
#include "utils/lsyscache.h"
Go to the source code of this file.
Macros | |
#define | LINELEN 78 |
#define | INDENTSTOP 3 |
#define | MAXINDENT 60 |
#define | LINELEN 78 |
Functions | |
void | print (const void *obj) |
void | pprint (const void *obj) |
void | elog_node_display (int lev, const char *title, const void *obj, bool pretty) |
char * | format_node_dump (const char *dump) |
char * | pretty_format_node_dump (const char *dump) |
void | print_rt (const List *rtable) |
void | print_expr (const Node *expr, const List *rtable) |
void | print_pathkeys (const List *pathkeys, const List *rtable) |
void | print_tl (const List *tlist, const List *rtable) |
void | print_slot (TupleTableSlot *slot) |
#define INDENTSTOP 3 |
#define LINELEN 78 |
#define LINELEN 78 |
#define MAXINDENT 60 |
void elog_node_display | ( | int | lev, |
const char * | title, | ||
const void * | obj, | ||
bool | pretty | ||
) |
Definition at line 72 of file print.c.
References ereport, errdetail_internal(), errmsg_internal(), format_node_dump(), nodeToStringWithLocations(), pfree(), and pretty_format_node_dump().
Referenced by pg_plan_query(), and pg_rewrite_query().
char* format_node_dump | ( | const char * | dump | ) |
Definition at line 97 of file print.c.
References appendStringInfo(), i, initStringInfo(), j, LINELEN, and str.
Referenced by elog_node_display(), and print().
void pprint | ( | const void * | obj | ) |
Definition at line 54 of file print.c.
References fflush(), nodeToStringWithLocations(), pfree(), pretty_format_node_dump(), printf, and generate_unaccent_rules::stdout.
Referenced by generate_partitionwise_join_paths(), preprocess_expression(), set_rel_pathlist(), and standard_join_search().
char* pretty_format_node_dump | ( | const char * | dump | ) |
Definition at line 151 of file print.c.
References appendStringInfo(), i, INDENTSTOP, initStringInfo(), j, LINELEN, MAXINDENT, Min, and str.
Referenced by elog_node_display(), and pprint().
void print | ( | const void * | obj | ) |
Definition at line 36 of file print.c.
References fflush(), format_node_dump(), nodeToStringWithLocations(), pfree(), printf, and generate_unaccent_rules::stdout.
Referenced by ecpg_free_params(), and generate_unaccent_rules::print_record().
Definition at line 325 of file print.c.
References Assert, attname, funcname, get_func_name(), get_leftop(), get_opname(), get_rightop(), get_rte_attribute_name(), getTypeOutputInfo(), INDEX_VAR, INNER_VAR, IsA, lfirst, list_length(), lnext(), OidOutputFunctionCall(), OUTER_VAR, pfree(), printf, relname, rt_fetch, Var::varattno, and Var::varno.
Referenced by print_pathkeys(), and print_tl().
Definition at line 430 of file print.c.
References eclass(), EquivalenceMember::em_expr, i, lfirst, lnext(), print_expr(), and printf.
void print_rt | ( | const List * | rtable | ) |
Definition at line 254 of file print.c.
References i, RangeTblEntry::inh, lfirst, printf, RangeTblEntry::relid, RTE_CTE, RTE_FUNCTION, RTE_GROUP, RTE_JOIN, RTE_NAMEDTUPLESTORE, RTE_RELATION, RTE_RESULT, RTE_SUBQUERY, RTE_TABLEFUNC, RTE_VALUES, and RangeTblEntry::rtekind.
void print_slot | ( | TupleTableSlot * | slot | ) |
Definition at line 496 of file print.c.
References debugtup(), printf, TupleTableSlot::tts_tupleDescriptor, and TupIsNull.
Definition at line 470 of file print.c.
References TargetEntry::expr, lfirst, print_expr(), printf, TargetEntry::resno, and TargetEntry::ressortgroupref.