PostgreSQL Source Code  git master
Query Struct Reference

#include <parsenodes.h>

Data Fields

NodeTag type
 
CmdType commandType
 
QuerySource querySource
 
uint64 queryId
 
bool canSetTag
 
NodeutilityStmt
 
int resultRelation
 
bool hasAggs
 
bool hasWindowFuncs
 
bool hasTargetSRFs
 
bool hasSubLinks
 
bool hasDistinctOn
 
bool hasRecursive
 
bool hasModifyingCTE
 
bool hasForUpdate
 
bool hasRowSecurity
 
ListcteList
 
Listrtable
 
FromExprjointree
 
ListtargetList
 
OverridingKind override
 
OnConflictExpronConflict
 
ListreturningList
 
ListgroupClause
 
ListgroupingSets
 
NodehavingQual
 
ListwindowClause
 
ListdistinctClause
 
ListsortClause
 
NodelimitOffset
 
NodelimitCount
 
ListrowMarks
 
NodesetOperations
 
ListconstraintDeps
 
ListwithCheckOptions
 
int stmt_location
 
int stmt_len
 

Detailed Description

Definition at line 108 of file parsenodes.h.

Field Documentation

◆ canSetTag

◆ commandType

CmdType Query::commandType

Definition at line 112 of file parsenodes.h.

Referenced by AcquirePlannerLocks(), add_foreign_final_paths(), AddQual(), addRangeTableEntryForCTE(), adjust_appendrel_attrs(), analyzeCTE(), ApplyRetrieveRule(), BeginCopy(), check_sql_fn_retval(), check_sql_fn_statements(), ChoosePortalStrategy(), contain_dml_walker(), CreateCommandTag(), DefineQueryRewrite(), DefineView(), deparseLockingClause(), exec_simple_check_plan(), ExecCreateTableAs(), ExplainOneQuery(), extract_query_dependencies_walker(), FetchStatementTargetList(), find_expr_references_walker(), fireRules(), get_query_def(), get_row_security_policies(), GetCommandLogLevel(), getInsertSelectQuery(), grouping_planner(), inheritance_planner(), init_execution_state(), inline_function(), inline_set_returning_function(), is_simple_subquery(), is_simple_union_all(), JumbleQuery(), make_viewdef(), matchLocks(), PerformCursorOpen(), pg_plan_queries(), pg_plan_query(), pg_rewrite_query(), plan_cluster_use_sort(), plan_create_index_workers(), postgresGetForeignJoinPaths(), PrepareQuery(), preprocess_rowmarks(), preprocess_targetlist(), QueryRewrite(), ResetPlanCache(), RewriteQuery(), rewriteTargetListUD(), rewriteTargetView(), ScanQueryForLocks(), simplify_EXISTS_query(), standard_planner(), transformCallStmt(), transformCreateTableAsStmt(), transformDeclareCursorStmt(), transformDeleteStmt(), transformExplainStmt(), transformInsertStmt(), transformRangeSubselect(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformStmt(), transformSubLink(), transformUpdateStmt(), transformValuesClause(), UtilityContainsQuery(), and UtilityTupleDescriptor().

◆ constraintDeps

List* Query::constraintDeps

◆ cteList

◆ distinctClause

◆ groupClause

◆ groupingSets

◆ hasAggs

◆ hasDistinctOn

◆ hasForUpdate

bool Query::hasForUpdate

Definition at line 132 of file parsenodes.h.

Referenced by applyLockingClause(), get_select_query_def(), and is_simple_subquery().

◆ hasModifyingCTE

◆ hasRecursive

◆ hasRowSecurity

bool Query::hasRowSecurity

◆ hasSubLinks

◆ hasTargetSRFs

◆ hasWindowFuncs

◆ havingQual

◆ jointree

◆ limitCount

◆ limitOffset

◆ onConflict

◆ override

OverridingKind Query::override

Definition at line 142 of file parsenodes.h.

Referenced by get_insert_query_def(), RewriteQuery(), and transformInsertStmt().

◆ queryId

uint64 Query::queryId

◆ querySource

QuerySource Query::querySource

Definition at line 114 of file parsenodes.h.

Referenced by BeginCopy(), fireRules(), QueryRewrite(), RewriteQuery(), and transformStmt().

◆ resultRelation

◆ returningList

◆ rowMarks

◆ rtable

List* Query::rtable

Definition at line 137 of file parsenodes.h.

Referenced by AcquireRewriteLocks(), add_rtes_to_flat_rtable(), adjust_appendrel_attrs_mutator(), alias_relid_set(), ApplyRetrieveRule(), convert_ANY_sublink_to_join(), convert_EXISTS_sublink_to_join(), CopyAndAddInvertedQual(), currtid_for_view(), exec_simple_check_plan(), expand_single_inheritance_child(), expandRecordVariable(), extract_query_dependencies_walker(), find_expr_references_walker(), fireRIRrules(), flatten_join_alias_vars_mutator(), flatten_simple_union_all(), foreign_join_ok(), generate_partitionwise_join_paths(), get_delete_query_def(), get_from_clause(), get_from_clause_item(), get_insert_query_def(), get_query_def(), get_relation_foreign_keys(), get_result_relid(), get_setop_query(), get_simple_values_rte(), get_update_query_def(), getInsertSelectQuery(), grouping_planner(), infer_arbiter_indexes(), inheritance_planner(), inline_function(), InsertRule(), is_simple_union_all_recurse(), is_simple_values(), isQueryUsingTempRelation_walker(), JumbleQuery(), LockViewRecurse_walker(), make_ruledef(), markQueryForLocking(), perform_pullup_replace_vars(), plan_cluster_use_sort(), plan_create_index_workers(), preprocess_function_rtes(), preprocess_rowmarks(), preprocess_targetlist(), pull_up_simple_subquery(), pull_up_simple_union_all(), pull_up_simple_values(), pull_up_subqueries_recurse(), query_tree_mutator(), query_tree_walker(), recurse_push_qual(), recurse_pushdown_safe(), reduce_outer_joins_pass2(), relation_is_updatable(), remove_useless_groupby_columns(), remove_useless_result_rtes(), replace_empty_jointree(), replace_vars_in_jointree(), RewriteQuery(), rewriteRuleAction(), rewriteTargetView(), ScanQueryForLocks(), set_deparse_for_query(), setRuleCheckAsUser_Query(), setup_simple_rel_arrays(), subquery_planner(), transformDeleteStmt(), transformLockingClause(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformUpdateStmt(), transformValuesClause(), UpdateRangeTableOfViewParse(), and view_query_is_auto_updatable().

◆ setOperations

◆ sortClause

◆ stmt_len

◆ stmt_location

int Query::stmt_location

◆ targetList

List* Query::targetList

Definition at line 140 of file parsenodes.h.

Referenced by addRangeTableEntryForSubquery(), adjust_appendrel_attrs(), ApplyRetrieveRule(), assign_collations_walker(), build_physical_tlist(), check_output_expressions(), check_sql_fn_retval(), convert_EXISTS_to_ANY(), CopyAndAddInvertedQual(), count_rowexpr_columns(), create_distinct_paths(), create_grouping_paths(), currtid_for_view(), DefineQueryRewrite(), DefineView(), determineRecursiveColTypes(), examine_simple_variable(), exec_simple_check_plan(), ExecCreateTableAs(), expandRecordVariable(), expandRTE(), exprCollation(), exprSetCollation(), exprType(), exprTypmod(), FetchStatementTargetList(), FigureColnameInternal(), find_expr_references_walker(), get_basic_select_query(), get_insert_query_def(), get_name_for_var_field(), get_rte_attribute_type(), get_rule_windowclause(), get_select_query_def(), get_simple_values_rte(), get_update_query_def(), grouping_planner(), inline_function(), inline_set_returning_function(), is_simple_subquery(), is_simple_union_all_recurse(), JumbleQuery(), make_setop_translation_list(), markTargetListOrigin(), minmax_qp_callback(), parseCheckAggregates(), perform_pullup_replace_vars(), plan_set_operations(), PlanCacheComputeResultDesc(), postgresAddForeignUpdateTargets(), preprocess_targetlist(), pull_up_simple_subquery(), query_is_distinct_for(), query_tree_mutator(), query_tree_walker(), recurse_set_operations(), relation_is_updatable(), remove_unused_subquery_outputs(), remove_useless_groupby_columns(), RewriteQuery(), rewriteRuleAction(), rewriteTargetListUD(), rewriteTargetView(), rewriteValuesRTE(), set_subquery_pathlist(), set_subquery_size_estimates(), simplify_EXISTS_query(), subquery_is_pushdown_safe(), subquery_planner(), subquery_push_qual(), transformInsertStmt(), transformMultiAssignRef(), transformSelectStmt(), transformSetOperationStmt(), transformSetOperationTree(), transformSubLink(), transformUpdateStmt(), transformValuesClause(), view_cols_are_auto_updatable(), and view_query_is_auto_updatable().

◆ type

NodeTag Query::type

Definition at line 110 of file parsenodes.h.

◆ utilityStmt

◆ windowClause

◆ withCheckOptions

List* Query::withCheckOptions

The documentation for this struct was generated from the following file: