PostgreSQL Query Evaluation (cont)
Each query is represented by a Query structure
- defined in
src/include/nodes/parsenodes.h
- holds all components of the SQL query, including
- required columns as list of
TargetEntry s
- referenced tables as list of
RangeTblEntry s
-
where clause as node in FromExpr struct
- sorting requirements as list of
SortGroupClause s
- queries may be nested, so forms a tree structure
|