PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | RULE_INDEXDEF_PRETTY 0x01 |
#define | RULE_INDEXDEF_KEYS_ONLY 0x02 /* ignore included attributes */ |
#define RULE_INDEXDEF_KEYS_ONLY 0x02 /* ignore included attributes */ |
Definition at line 25 of file ruleutils.h.
#define RULE_INDEXDEF_PRETTY 0x01 |
Definition at line 24 of file ruleutils.h.
Definition at line 3660 of file ruleutils.c.
References AccessShareLock, RangeTblEntry::alias, deparse_namespace::appendrels, deparse_namespace::ctes, RangeTblEntry::eref, RangeTblEntry::inFromCl, RangeTblEntry::inh, RangeTblEntry::lateral, list_make1, makeAlias(), makeNode, NIL, palloc0(), RangeTblEntry::relid, RangeTblEntry::relkind, RangeTblEntry::rellockmode, deparse_namespace::rtable, RTE_RELATION, RangeTblEntry::rtekind, set_rtable_names(), set_simple_column_names(), and deparse_namespace::subplans.
Referenced by pg_get_constraintdef_worker(), pg_get_expr_worker(), pg_get_indexdef_worker(), pg_get_partconstrdef_string(), pg_get_partition_constraintdef(), pg_get_partkeydef_worker(), pg_get_statisticsobj_worker(), pg_get_statisticsobjdef_expressions(), transformPartitionBound(), and transformPartitionRangeBounds().
List* deparse_context_for_plan_tree | ( | struct PlannedStmt * | pstmt, |
List * | rtable_names | ||
) |
Definition at line 3705 of file ruleutils.c.
References PlannedStmt::appendRelations, deparse_namespace::appendrels, Assert(), AppendRelInfo::child_relid, deparse_namespace::ctes, lfirst_node, list_length(), list_make1, NIL, palloc0(), deparse_namespace::rtable, PlannedStmt::rtable, deparse_namespace::rtable_names, set_simple_column_names(), deparse_namespace::subplans, and PlannedStmt::subplans.
Referenced by ExplainPrintPlan().
Definition at line 3600 of file ruleutils.c.
References deparse_expression_pretty().
Referenced by AlterDomainDefault(), DefineDomain(), pg_get_function_arg_default(), pg_get_partconstrdef_string(), print_function_arguments(), show_expression(), show_grouping_set_keys(), show_memoize_info(), show_plan_tlist(), show_sort_group_keys(), show_tablesample(), transformPartitionBound(), and transformPartitionRangeBounds().
char* generate_collation_name | ( | Oid | collid | ) |
Definition at line 12487 of file ruleutils.c.
References CollationIsVisible(), collid, COLLOID, elog(), ERROR, get_namespace_name_or_temp(), GETSTRUCT, HeapTupleIsValid, NameStr, ObjectIdGetDatum(), quote_qualified_identifier(), ReleaseSysCache(), and SearchSysCache1().
Referenced by get_const_collation(), get_from_clause_coldeflist(), get_rule_expr(), pg_collation_for(), pg_get_indexdef_worker(), and pg_get_partkeydef_worker().
char* generate_opclass_name | ( | Oid | opclass | ) |
Definition at line 11845 of file ruleutils.c.
References buf, get_opclass_name(), initStringInfo(), and InvalidOid.
Referenced by index_opclass_options().
char* get_range_partbound_string | ( | List * | bound_datums | ) |
Definition at line 12620 of file ruleutils.c.
References appendStringInfoChar(), appendStringInfoString(), deparse_context::buf, buf, castNode, get_const_expr(), PartitionRangeDatum::kind, lfirst_node, makeStringInfo(), PARTITION_RANGE_DATUM_MAXVALUE, PARTITION_RANGE_DATUM_MINVALUE, val, and PartitionRangeDatum::value.
Referenced by check_new_partition_bound(), and get_rule_expr().
char* pg_get_constraintdef_command | ( | Oid | constraintId | ) |
Definition at line 2155 of file ruleutils.c.
References pg_get_constraintdef_worker().
Referenced by RememberConstraintForRebuilding().
Definition at line 1206 of file ruleutils.c.
References GET_PRETTY_FLAGS, and pg_get_indexdef_worker().
Referenced by BuildIndexValueDescription().
Definition at line 1220 of file ruleutils.c.
References GET_PRETTY_FLAGS, pg_get_indexdef_worker(), RULE_INDEXDEF_KEYS_ONLY, and RULE_INDEXDEF_PRETTY.
Referenced by gist_page_items().
char* pg_get_indexdef_string | ( | Oid | indexrelid | ) |
Definition at line 1196 of file ruleutils.c.
References pg_get_indexdef_worker().
Referenced by RememberIndexForRebuilding().
char* pg_get_partconstrdef_string | ( | Oid | partitionId, |
char * | aliasname | ||
) |
Definition at line 2099 of file ruleutils.c.
References deparse_context_for(), deparse_expression(), and get_partition_qual_relid().
Referenced by RI_PartitionRemove_Check().
Definition at line 1895 of file ruleutils.c.
References GET_PRETTY_FLAGS, and pg_get_partkeydef_worker().
Referenced by ExecBuildSlotPartitionKeyDescription().
Definition at line 1559 of file ruleutils.c.
References buf, GET_PRETTY_FLAGS, get_query_def(), initStringInfo(), NIL, and WRAP_COLUMN_DEFAULT.
char* pg_get_statisticsobjdef_string | ( | Oid | statextid | ) |
Definition at line 1598 of file ruleutils.c.
References pg_get_statisticsobj_worker().
Referenced by RememberStatisticsForRebuilding().
Definition at line 3797 of file ruleutils.c.
References deparse_namespace::appendrels, deparse_namespace::ctes, NIL, deparse_namespace::rtable, deparse_namespace::rtable_names, set_rtable_names(), and deparse_namespace::subplans.
Referenced by ExplainPrintPlan().
Definition at line 3774 of file ruleutils.c.
References deparse_namespace::ancestors, Assert(), linitial, list_length(), plan, and set_deparse_plan().
Referenced by show_expression(), show_grouping_sets(), show_memoize_info(), show_plan_tlist(), show_sort_group_keys(), and show_tablesample().