• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D08-Nov-202124 43

MakefileH A D08-Nov-20211.9 KiB5921

READMEH A D08-Nov-20211.5 KiB3328

analyze.cH A D08-Nov-202186.1 KiB2,8531,629

check_keywords.plH A D08-Nov-20214.9 KiB236163

gram.cH A D08-Nov-20212 MiB42,37239,214

gram.hH A D08-Nov-202111.4 KiB566512

gram.yH A D08-Nov-2021397.6 KiB15,06312,001

parse_agg.cH A D08-Nov-202157.4 KiB2,0391,285

parse_clause.cH A D08-Nov-202199.8 KiB3,2961,821

parse_coerce.cH A D08-Nov-202173.7 KiB2,4041,391

parse_collate.cH A D08-Nov-202133.3 KiB1,040534

parse_cte.cH A D08-Nov-202129.1 KiB975649

parse_expr.cH A D08-Nov-202189.5 KiB3,3102,308

parse_func.cH A D08-Nov-202162.8 KiB2,0481,258

parse_node.cH A D08-Nov-202117 KiB585331

parse_oper.cH A D08-Nov-202131 KiB1,136649

parse_param.cH A D08-Nov-202110.5 KiB355219

parse_relation.cH A D08-Nov-202189.8 KiB3,2632,033

parse_target.cH A D08-Nov-202150.3 KiB1,8131,144

parse_type.cH A D08-Nov-202121.6 KiB830523

parse_utilcmd.cH A D08-Nov-202191.8 KiB3,0571,903

parser.cH A D08-Nov-20215.3 KiB19697

scan.cH A D08-Nov-2021614.6 KiB11,9229,895

scan.lH A D08-Nov-202142.8 KiB1,5861,138

scansup.cH A D08-Nov-20215.3 KiB232131

README

1src/backend/parser/README
2
3Parser
4======
5
6This directory does more than tokenize and parse SQL queries.  It also
7creates Query structures for the various complex queries that are passed
8to the optimizer and then executor.
9
10parser.c	things start here
11scan.l		break query into tokens
12scansup.c	handle escapes in input strings
13gram.y		parse the tokens and produce a "raw" parse tree
14analyze.c	top level of parse analysis for optimizable queries
15parse_agg.c	handle aggregates, like SUM(col1),  AVG(col2), ...
16parse_clause.c	handle clauses like WHERE, ORDER BY, GROUP BY, ...
17parse_coerce.c	handle coercing expressions to different data types
18parse_collate.c	assign collation information in completed expressions
19parse_cte.c	handle Common Table Expressions (WITH clauses)
20parse_expr.c	handle expressions like col, col + 3, x = 3 or x = 4
21parse_func.c	handle functions, table.column and column identifiers
22parse_node.c	create nodes for various structures
23parse_oper.c	handle operators in expressions
24parse_param.c	handle Params (for the cases used in the core backend)
25parse_relation.c support routines for tables and column handling
26parse_target.c	handle the result list of the query
27parse_type.c	support routines for data type handling
28parse_utilcmd.c	parse analysis for utility commands (done at execution time)
29
30See also src/common/keywords.c, which contains the table of standard
31keywords and the keyword lookup function.  We separated that out because
32various frontend code wants to use it too.
33