|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "pgpa_output.h"#include "pgpa_scan.h"#include "nodes/parsenodes.h"#include "parser/parsetree.h"#include "utils/builtins.h"#include "utils/lsyscache.h"
Go to the source code of this file.
Data Structures | |
| struct | pgpa_output_context |
Typedefs | |
| typedef struct pgpa_output_context | pgpa_output_context |
|
static |
Definition at line 435 of file pgpa_output.c.
References fb(), JSTRAT_HASH_JOIN, JSTRAT_MERGE_JOIN_MATERIALIZE, JSTRAT_MERGE_JOIN_PLAIN, JSTRAT_NESTED_LOOP_MATERIALIZE, JSTRAT_NESTED_LOOP_MEMOIZE, JSTRAT_NESTED_LOOP_PLAIN, and pg_unreachable.
Referenced by pgpa_output_advice().
|
static |
Definition at line 491 of file pgpa_output.c.
References fb(), pg_unreachable, PGPAQF_GATHER, PGPAQF_GATHER_MERGE, PGPAQF_SEMIJOIN_NON_UNIQUE, PGPAQF_SEMIJOIN_UNIQUE, and type.
Referenced by pgpa_output_query_feature().
|
static |
Definition at line 461 of file pgpa_output.c.
References fb(), pg_unreachable, PGPA_SCAN_BITMAP_HEAP, PGPA_SCAN_FOREIGN, PGPA_SCAN_INDEX, PGPA_SCAN_INDEX_ONLY, PGPA_SCAN_ORDINARY, PGPA_SCAN_PARTITIONWISE, PGPA_SCAN_SEQ, and PGPA_SCAN_TID.
Referenced by pgpa_output_scan_strategy().
|
static |
Definition at line 524 of file pgpa_output.c.
References buf, enlargeStringInfo(), and fb().
Referenced by pgpa_output_advice(), pgpa_output_query_feature(), pgpa_output_relations(), pgpa_output_scan_strategy(), pgpa_output_simple_strategy(), and pgpa_output_unrolled_join().
| void pgpa_output_advice | ( | StringInfo | buf, |
| pgpa_plan_walker_context * | walker, | ||
| pgpa_identifier * | rt_identifiers | ||
| ) |
Definition at line 78 of file pgpa_output.c.
References appendStringInfo(), appendStringInfoChar(), pgpa_output_context::buf, buf, fb(), i, lfirst, list_length(), NUM_PGPA_JOIN_STRATEGY, NUM_PGPA_QF_TYPES, NUM_PGPA_SCAN_STRATEGY, palloc0_array, pgpa_cstring_join_strategy(), pgpa_identifier_string(), pgpa_maybe_linebreak(), pgpa_output_no_gather(), pgpa_output_query_feature(), pgpa_output_scan_strategy(), pgpa_output_simple_strategy(), pgpa_output_unrolled_join(), PGPA_SCAN_ORDINARY, pgpa_output_context::rid_strings, and pgpa_output_context::wrap_column.
Referenced by pgpa_planner_shutdown().
|
static |
Definition at line 185 of file pgpa_output.c.
References appendStringInfoChar(), Assert, bms_membership(), BMS_SINGLETON, pgpa_output_context::buf, fb(), pgpa_output_relations(), pgpa_output_unrolled_join(), pgpa_scan::relids, pgpa_join_member::scan, and pgpa_join_member::unrolled_join.
Referenced by pgpa_output_unrolled_join().
|
static |
Definition at line 387 of file pgpa_output.c.
References appendStringInfoChar(), appendStringInfoString(), pgpa_output_context::buf, fb(), StringInfoData::len, and pgpa_output_relations().
Referenced by pgpa_output_advice().
|
static |
Definition at line 295 of file pgpa_output.c.
References appendStringInfo(), appendStringInfoChar(), bms_membership(), BMS_SINGLETON, pgpa_output_context::buf, fb(), foreach_ptr, StringInfoData::len, NIL, pgpa_cstring_query_feature_type(), pgpa_maybe_linebreak(), pgpa_output_relations(), type, and pgpa_output_context::wrap_column.
Referenced by pgpa_output_advice().
|
static |
Definition at line 278 of file pgpa_output.c.
References appendStringInfoChar(), appendStringInfoString(), pgpa_output_context::buf, fb(), get_namespace_name_or_temp(), get_rel_name(), get_rel_namespace(), quote_identifier(), and relname.
Referenced by pgpa_output_scan_strategy().
|
static |
Definition at line 405 of file pgpa_output.c.
References appendStringInfo(), appendStringInfoString(), bms_next_member(), buf, elog, ERROR, fb(), pgpa_maybe_linebreak(), pgpa_output_context::rid_strings, and pgpa_output_context::wrap_column.
Referenced by pgpa_output_join_member(), pgpa_output_no_gather(), pgpa_output_query_feature(), pgpa_output_scan_strategy(), and pgpa_output_simple_strategy().
|
static |
Definition at line 216 of file pgpa_output.c.
References appendStringInfo(), appendStringInfoChar(), Assert, bms_membership(), BMS_SINGLETON, pgpa_output_context::buf, foreach_ptr, IsA, StringInfoData::len, NIL, pgpa_cstring_scan_strategy(), pgpa_maybe_linebreak(), pgpa_output_relation_name(), pgpa_output_relations(), PGPA_SCAN_INDEX, PGPA_SCAN_INDEX_ONLY, plan, and pgpa_output_context::wrap_column.
Referenced by pgpa_output_advice().
|
static |
Definition at line 346 of file pgpa_output.c.
References appendStringInfo(), appendStringInfoChar(), bms_membership(), BMS_SINGLETON, pgpa_output_context::buf, fb(), foreach_node, StringInfoData::len, NIL, pgpa_maybe_linebreak(), pgpa_output_relations(), and pgpa_output_context::wrap_column.
Referenced by pgpa_output_advice().
|
static |
Definition at line 166 of file pgpa_output.c.
References appendStringInfoChar(), pgpa_output_context::buf, pgpa_unrolled_join::inner, pgpa_unrolled_join::ninner, pgpa_unrolled_join::outer, pgpa_maybe_linebreak(), pgpa_output_join_member(), and pgpa_output_context::wrap_column.
Referenced by pgpa_output_advice(), and pgpa_output_join_member().