PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 hasGroupRTE pg_node_attr (query_jumble_ignore)
 
bool isReturn pg_node_attr (query_jumble_ignore)
 
List *rteperminfos pg_node_attr (query_jumble_ignore)
 
int mergeTargetRelation 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)
 
ParseLoc stmt_len pg_node_attr (query_jumble_ignore)
 

Data Fields

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

Detailed Description

Definition at line 117 of file parsenodes.h.

Member Function Documentation

◆ pg_node_attr() [1/21]

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

◆ pg_node_attr() [2/21]

QuerySource querySource Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [3/21]

bool canSetTag Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [4/21]

int resultRelation Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [5/21]

bool hasAggs Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [6/21]

bool hasWindowFuncs Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [7/21]

bool hasTargetSRFs Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [8/21]

bool hasSubLinks Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [9/21]

bool hasDistinctOn Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [10/21]

bool hasRecursive Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [11/21]

bool hasModifyingCTE Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [12/21]

bool hasForUpdate Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [13/21]

bool hasRowSecurity Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [14/21]

bool hasGroupRTE Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [15/21]

bool isReturn Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [16/21]

List *rteperminfos Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [17/21]

int mergeTargetRelation Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [18/21]

OverridingKind override Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [19/21]

List *constraintDeps Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [20/21]

List *withCheckOptions Query::pg_node_attr ( query_jumble_ignore  )

◆ pg_node_attr() [21/21]

ParseLoc stmt_len Query::pg_node_attr ( query_jumble_ignore  )

Field Documentation

◆ commandType

◆ cteList

◆ distinctClause

◆ groupClause

◆ groupDistinct

bool Query::groupDistinct

Definition at line 203 of file parsenodes.h.

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

◆ groupingSets

◆ havingQual

◆ jointree

◆ limitCount

◆ limitOffset

◆ limitOption

◆ mergeActionList

◆ mergeJoinCondition

Node* Query::mergeJoinCondition

◆ onConflict

◆ returningList

◆ rowMarks

◆ rtable

◆ setOperations

◆ sortClause

◆ stmt_location

ParseLoc Query::stmt_location

◆ targetList

List* Query::targetList

Definition at line 193 of file parsenodes.h.

Referenced by addRangeTableEntryForSubquery(), ApplyRetrieveRule(), assign_collations_walker(), build_physical_tlist(), build_setop_child_paths(), 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_is_simple_query(), 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_query_def(), get_rule_windowclause(), get_select_query_def(), get_simple_values_rte(), get_update_query_def(), is_simple_subquery(), is_simple_union_all_recurse(), make_setop_translation_list(), markTargetListOrigin(), parseCheckAggregates(), plan_set_operations(), PlanCacheComputeResultDesc(), pull_up_simple_subquery(), query_is_distinct_for(), query_tree_mutator_impl(), query_tree_walker_impl(), 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 119 of file parsenodes.h.

◆ utilityStmt

◆ windowClause


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