1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
| # Copyright (c) 2022-2026, PostgreSQL Global Development Group
|
| # Some code in numeric.c benefits from auto-vectorization
| numeric_backend_lib = static_library('numeric_backend_lib',
| 'numeric.c',
| dependencies: backend_build_deps,
| kwargs: internal_lib_args,
| c_args: vectorize_cflags,
| )
|
| backend_link_with += numeric_backend_lib
|
| backend_sources += files(
| 'acl.c',
| 'amutils.c',
| 'array_expanded.c',
| 'array_selfuncs.c',
| 'array_typanalyze.c',
| 'array_userfuncs.c',
| 'arrayfuncs.c',
| 'arraysubs.c',
| 'arrayutils.c',
| 'ascii.c',
| 'bool.c',
| 'bytea.c',
| 'cash.c',
| 'char.c',
| 'cryptohashfuncs.c',
| 'date.c',
| 'datetime.c',
| 'datum.c',
| 'dbsize.c',
| 'domains.c',
| 'encode.c',
| 'enum.c',
| 'expandeddatum.c',
| 'expandedrecord.c',
| 'float.c',
| 'format_type.c',
| 'formatting.c',
| 'genfile.c',
| 'geo_ops.c',
| 'geo_selfuncs.c',
| 'geo_spgist.c',
| 'hbafuncs.c',
| 'inet_cidr_ntop.c',
| 'inet_net_pton.c',
| 'int.c',
| 'int8.c',
| 'json.c',
| 'jsonb.c',
| 'jsonb_gin.c',
| 'jsonb_op.c',
| 'jsonb_util.c',
| 'jsonbsubs.c',
| 'jsonfuncs.c',
| 'jsonpath.c',
| 'jsonpath_exec.c',
| 'like.c',
| 'like_support.c',
| 'lockfuncs.c',
| 'mac.c',
| 'mac8.c',
| 'mcxtfuncs.c',
| 'misc.c',
| 'multirangetypes.c',
| 'multirangetypes_selfuncs.c',
| 'multixactfuncs.c',
| 'name.c',
| 'network.c',
| 'network_gist.c',
| 'network_selfuncs.c',
| 'network_spgist.c',
| 'number.c',
| 'numutils.c',
| 'oid.c',
| 'oid8.c',
| 'oracle_compat.c',
| 'orderedsetaggs.c',
| 'partitionfuncs.c',
| 'pg_dependencies.c',
| 'pg_locale.c',
| 'pg_locale_builtin.c',
| 'pg_locale_icu.c',
| 'pg_locale_libc.c',
| 'pg_lsn.c',
| 'pg_ndistinct.c',
| 'pg_upgrade_support.c',
| 'pgstatfuncs.c',
| 'pseudorandomfuncs.c',
| 'pseudotypes.c',
| 'quote.c',
| 'rangetypes.c',
| 'rangetypes_gist.c',
| 'rangetypes_selfuncs.c',
| 'rangetypes_spgist.c',
| 'rangetypes_typanalyze.c',
| 'regexp.c',
| 'regproc.c',
| 'ri_triggers.c',
| 'rowtypes.c',
| 'rudb_ver_info.c',
| 'ruleutils.c',
| 'selfuncs.c',
| 'skipsupport.c',
| 'tid.c',
| 'timestamp.c',
| 'trigfuncs.c',
| 'tsginidx.c',
| 'tsgistidx.c',
| 'tsquery.c',
| 'tsquery_cleanup.c',
| 'tsquery_gist.c',
| 'tsquery_op.c',
| 'tsquery_rewrite.c',
| 'tsquery_util.c',
| 'tsrank.c',
| 'tsvector.c',
| 'tsvector_op.c',
| 'tsvector_parser.c',
| 'uuid.c',
| 'varbit.c',
| 'varchar.c',
| 'varchar2.c',
| 'raw.c',
| 'varlena.c',
| 'version.c',
| 'waitfuncs.c',
| 'windowfuncs.c',
| 'xid.c',
| 'xid8funcs.c',
| 'xml.c',
| )
|
|
| jsonpath_scan = custom_target('jsonpath_scan',
| input: 'jsonpath_scan.l',
| output: 'jsonpath_scan.c',
| command: [flex_cmd, '--no-backup', '--', '-CF', '-p', '-p'],
| )
| generated_sources += jsonpath_scan
|
| jsonpath_gram = custom_target('jsonpath_parse',
| input: 'jsonpath_gram.y',
| kwargs: bison_kw,
| )
| generated_sources += jsonpath_gram.to_list()
|
| # so we don't need to add . as an include dir for the whole backend
| backend_link_with += static_library('jsonpath',
| jsonpath_scan, jsonpath_gram,
| dependencies: [backend_code],
| include_directories: include_directories('.'),
| kwargs: internal_lib_args,
| )
|
| #generated_backend_sources += jsonpath_gram.to_list()
|
|