PostgreSQL Source Code  git master
Query Struct Reference

#include <parsenodes.h>

Public Member Functions

QuerySource querySource pg_node_attr (query_jumble_ignore)
 
uint64 queryId pg_node_attr (equal_ignore, query_jumble_ignore, read_write_ignore, read_as(0))
 
bool canSetTag pg_node_attr (query_jumble_ignore)
 
int resultRelation pg_node_attr (query_jumble_ignore)
 
bool hasAggs pg_node_attr (query_jumble_ignore)
 
bool hasWindowFuncs pg_node_attr (query_jumble_ignore)
 
bool hasTargetSRFs pg_node_attr (query_jumble_ignore)
 
bool hasSubLinks pg_node_attr (query_jumble_ignore)
 
bool hasDistinctOn pg_node_attr (query_jumble_ignore)
 
bool hasRecursive pg_node_attr (query_jumble_ignore)
 
bool hasModifyingCTE pg_node_attr (query_jumble_ignore)
 
bool hasForUpdate pg_node_attr (query_jumble_ignore)
 
bool hasRowSecurity pg_node_attr (query_jumble_ignore)
 
bool isReturn pg_node_attr (query_jumble_ignore)
 
List *rteperminfos pg_node_attr (query_jumble_ignore)
 
bool mergeUseOuterJoin pg_node_attr (query_jumble_ignore)
 
OverridingKind override pg_node_attr (query_jumble_ignore)
 
List *constraintDeps pg_node_attr (query_jumble_ignore)
 
List *withCheckOptions pg_node_attr (query_jumble_ignore)
 
int stmt_len pg_node_attr (query_jumble_ignore)
 

Data Fields

NodeTag type
 
CmdType commandType
 
NodeutilityStmt
 
ListcteList
 
Listrtable
 
FromExprjointree
 
ListmergeActionList
 
ListtargetList
 
OnConflictExpronConflict
 
ListreturningList
 
ListgroupClause
 
bool groupDistinct
 
ListgroupingSets
 
NodehavingQual
 
ListwindowClause
 
ListdistinctClause
 
ListsortClause
 
NodelimitOffset
 
NodelimitCount
 
LimitOption limitOption
 
ListrowMarks
 
NodesetOperations
 
int stmt_location
 

Detailed Description

Definition at line 116 of file parsenodes.h.

Member Function Documentation

◆ pg_node_attr() [1/20]

uint64 queryId Query::pg_node_attr ( equal_ignore  ,
query_jumble_ignore  ,
read_write_ignore  ,
read_as(0)   
)

◆ pg_node_attr() [2/20]

QuerySource querySource Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [3/20]

bool canSetTag Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [4/20]

int resultRelation Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [5/20]

bool hasAggs Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [6/20]

bool hasWindowFuncs Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [7/20]

bool hasTargetSRFs Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [8/20]

bool hasSubLinks Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [9/20]

bool hasDistinctOn Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [10/20]

bool hasRecursive Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [11/20]

bool hasModifyingCTE Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [12/20]

bool hasForUpdate Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [13/20]

bool hasRowSecurity Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [14/20]

bool isReturn Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [15/20]

List* rteperminfos Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [16/20]

bool mergeUseOuterJoin Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [17/20]

OverridingKind override Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [18/20]

List* constraintDeps Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [19/20]

List* withCheckOptions Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [20/20]

int stmt_len Query::pg_node_attr ( query_jumble_ignore  )

Field Documentation

◆ commandType

CmdType Query::commandType

Definition at line 120 of file parsenodes.h.

Referenced by AcquirePlannerLocks(), add_row_identity_columns(), AddQual(), addRangeTableEntryForCTE(), analyzeCTE(), ApplyRetrieveRule(), BeginCopyTo(), CachedPlanAllowsSimpleValidityCheck(), check_sql_fn_retval(), check_sql_fn_statements(), ChoosePortalStrategy(), contain_dml_walker(), DefineQueryRewrite(), DefineView(), deparseLockingClause(), exec_simple_check_plan(), ExecCreateTableAs(), ExplainOneQuery(), extract_query_dependencies_walker(), FetchStatementTargetList(), find_expr_references_walker(), fireRules(), get_query_def(), get_rel_all_updated_cols(), get_row_security_policies(), get_translated_update_targetlist(), getInsertSelectQuery(), init_execution_state(), interpret_AS_clause(), is_simple_subquery(), is_simple_union_all(), make_viewdef(), matchLocks(), PerformCursorOpen(), pg_plan_queries(), pg_rewrite_query(), plan_cluster_use_sort(), plan_create_index_workers(), postgresGetForeignJoinPaths(), QueryRewrite(), RewriteQuery(), rewriteRuleAction(), rewriteSearchAndCycle(), rewriteTargetView(), rewriteValuesRTE(), ScanQueryForLocks(), simplify_EXISTS_query(), transformCallStmt(), transformCreateTableAsStmt(), transformDeclareCursorStmt(), transformDeleteStmt(), transformExplainStmt(), transformInsertStmt(), transformMergeStmt(), transformPLAssignStmt(), transformRangeSubselect(), transformReturnStmt(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformStmt(), transformSubLink(), transformUpdateStmt(), transformValuesClause(), and UtilityContainsQuery().

◆ cteList

◆ distinctClause

◆ groupClause

◆ groupDistinct

bool Query::groupDistinct

Definition at line 191 of file parsenodes.h.

Referenced by get_basic_select_query(), parseCheckAggregates(), and transformSelectStmt().

◆ groupingSets

◆ havingQual

◆ jointree

◆ limitCount

◆ limitOffset

◆ limitOption

◆ mergeActionList

List* Query::mergeActionList

◆ onConflict

◆ returningList

◆ rowMarks

◆ rtable

List* Query::rtable

Definition at line 167 of file parsenodes.h.

Referenced by AcquireRewriteLocks(), add_rtes_to_flat_rtable(), adjust_appendrel_attrs_mutator(), alias_relid_set(), ApplyRetrieveRule(), CachedPlanAllowsSimpleValidityCheck(), check_sql_fn_retval(), convert_EXISTS_sublink_to_join(), CopyAndAddInvertedQual(), currtid_for_view(), exec_simple_check_plan(), expandRecordVariable(), extract_query_dependencies_walker(), find_dependent_phvs_in_jointree(), find_expr_references_walker(), fireRIRrules(), flatten_join_alias_vars_mutator(), foreign_join_ok(), get_delete_query_def(), get_from_clause(), get_from_clause_item(), get_insert_query_def(), get_merge_query_def(), get_query_def(), get_relation_foreign_keys(), get_result_relid(), get_setop_query(), get_simple_values_rte(), get_update_query_def(), getInsertSelectQuery(), infer_arbiter_indexes(), InsertRule(), is_simple_union_all_recurse(), is_simple_values(), isQueryUsingTempRelation_walker(), LockViewRecurse_walker(), make_ruledef(), markQueryForLocking(), plan_cluster_use_sort(), plan_create_index_workers(), preprocess_function_rtes(), pull_up_simple_subquery(), pull_up_simple_union_all(), pull_up_subqueries_recurse(), query_tree_mutator_impl(), query_tree_walker_impl(), recurse_push_qual(), recurse_pushdown_safe(), reduce_outer_joins_pass2(), relation_is_updatable(), remove_useless_result_rtes(), replace_vars_in_jointree(), RewriteQuery(), rewriteRuleAction(), rewriteSearchAndCycle(), rewriteTargetView(), ScanQueryForLocks(), set_deparse_for_query(), setRuleCheckAsUser_Query(), setup_simple_rel_arrays(), transformDeleteStmt(), transformLockingClause(), transformMergeStmt(), transformPLAssignStmt(), transformReturnStmt(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformUpdateStmt(), transformValuesClause(), and view_query_is_auto_updatable().

◆ setOperations

◆ sortClause

◆ stmt_location

int Query::stmt_location

◆ targetList

List* Query::targetList

Definition at line 181 of file parsenodes.h.

Referenced by addRangeTableEntryForSubquery(), ApplyRetrieveRule(), assign_collations_walker(), build_physical_tlist(), check_and_push_window_quals(), check_output_expressions(), check_sql_fn_retval(), convert_ANY_sublink_to_join(), convert_EXISTS_to_ANY(), CopyAndAddInvertedQual(), count_rowexpr_columns(), 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_rule_windowclause(), get_select_query_def(), get_simple_values_rte(), get_update_query_def(), get_windowclause_startup_tuples(), is_simple_subquery(), is_simple_union_all_recurse(), make_setop_translation_list(), markTargetListOrigin(), minmax_qp_callback(), parseCheckAggregates(), plan_set_operations(), PlanCacheComputeResultDesc(), pull_up_simple_subquery(), query_is_distinct_for(), query_tree_mutator_impl(), query_tree_walker_impl(), recurse_set_operations(), relation_is_updatable(), remove_unused_subquery_outputs(), RewriteQuery(), rewriteRuleAction(), rewriteSearchAndCycle(), rewriteTargetView(), rewriteValuesRTE(), set_subquery_pathlist(), set_subquery_size_estimates(), simplify_EXISTS_query(), subquery_is_pushdown_safe(), subquery_push_qual(), transformInsertStmt(), transformJsonArrayQueryConstructor(), transformMergeStmt(), transformMultiAssignRef(), transformPLAssignStmt(), transformReturnStmt(), transformSelectStmt(), transformSetOperationStmt(), transformSetOperationTree(), transformSubLink(), transformUpdateStmt(), transformValuesClause(), view_cols_are_auto_updatable(), and view_query_is_auto_updatable().

◆ type

NodeTag Query::type

Definition at line 118 of file parsenodes.h.

◆ utilityStmt

◆ windowClause


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