1 | |
2 | #define PG_KEYWORD(a,b,c) {a,b,c}, |
3 | |
4 | const PGScanKeyword ScanKeywords[] = { |
5 | PG_KEYWORD("abort" , ABORT_P, UNRESERVED_KEYWORD) |
6 | PG_KEYWORD("absolute" , ABSOLUTE_P, UNRESERVED_KEYWORD) |
7 | PG_KEYWORD("access" , ACCESS, UNRESERVED_KEYWORD) |
8 | PG_KEYWORD("action" , ACTION, UNRESERVED_KEYWORD) |
9 | PG_KEYWORD("add" , ADD_P, UNRESERVED_KEYWORD) |
10 | PG_KEYWORD("admin" , ADMIN, UNRESERVED_KEYWORD) |
11 | PG_KEYWORD("after" , AFTER, UNRESERVED_KEYWORD) |
12 | PG_KEYWORD("aggregate" , AGGREGATE, UNRESERVED_KEYWORD) |
13 | PG_KEYWORD("all" , ALL, RESERVED_KEYWORD) |
14 | PG_KEYWORD("also" , ALSO, UNRESERVED_KEYWORD) |
15 | PG_KEYWORD("alter" , ALTER, UNRESERVED_KEYWORD) |
16 | PG_KEYWORD("always" , ALWAYS, UNRESERVED_KEYWORD) |
17 | PG_KEYWORD("analyse" , ANALYSE, RESERVED_KEYWORD) |
18 | PG_KEYWORD("analyze" , ANALYZE, RESERVED_KEYWORD) |
19 | PG_KEYWORD("and" , AND, RESERVED_KEYWORD) |
20 | PG_KEYWORD("any" , ANY, RESERVED_KEYWORD) |
21 | PG_KEYWORD("array" , ARRAY, RESERVED_KEYWORD) |
22 | PG_KEYWORD("as" , AS, RESERVED_KEYWORD) |
23 | PG_KEYWORD("asc" , ASC_P, RESERVED_KEYWORD) |
24 | PG_KEYWORD("assertion" , ASSERTION, UNRESERVED_KEYWORD) |
25 | PG_KEYWORD("assignment" , ASSIGNMENT, UNRESERVED_KEYWORD) |
26 | PG_KEYWORD("asymmetric" , ASYMMETRIC, RESERVED_KEYWORD) |
27 | PG_KEYWORD("at" , AT, UNRESERVED_KEYWORD) |
28 | PG_KEYWORD("attach" , ATTACH, UNRESERVED_KEYWORD) |
29 | PG_KEYWORD("attribute" , ATTRIBUTE, UNRESERVED_KEYWORD) |
30 | PG_KEYWORD("authorization" , AUTHORIZATION, TYPE_FUNC_NAME_KEYWORD) |
31 | PG_KEYWORD("backward" , BACKWARD, UNRESERVED_KEYWORD) |
32 | PG_KEYWORD("before" , BEFORE, UNRESERVED_KEYWORD) |
33 | PG_KEYWORD("begin" , BEGIN_P, UNRESERVED_KEYWORD) |
34 | PG_KEYWORD("between" , BETWEEN, COL_NAME_KEYWORD) |
35 | PG_KEYWORD("bigint" , BIGINT, COL_NAME_KEYWORD) |
36 | PG_KEYWORD("binary" , BINARY, TYPE_FUNC_NAME_KEYWORD) |
37 | PG_KEYWORD("bit" , BIT, COL_NAME_KEYWORD) |
38 | PG_KEYWORD("boolean" , BOOLEAN_P, COL_NAME_KEYWORD) |
39 | PG_KEYWORD("both" , BOTH, RESERVED_KEYWORD) |
40 | PG_KEYWORD("by" , BY, UNRESERVED_KEYWORD) |
41 | PG_KEYWORD("cache" , CACHE, UNRESERVED_KEYWORD) |
42 | PG_KEYWORD("called" , CALLED, UNRESERVED_KEYWORD) |
43 | PG_KEYWORD("cascade" , CASCADE, UNRESERVED_KEYWORD) |
44 | PG_KEYWORD("cascaded" , CASCADED, UNRESERVED_KEYWORD) |
45 | PG_KEYWORD("case" , CASE, RESERVED_KEYWORD) |
46 | PG_KEYWORD("cast" , CAST, RESERVED_KEYWORD) |
47 | PG_KEYWORD("catalog" , CATALOG_P, UNRESERVED_KEYWORD) |
48 | PG_KEYWORD("chain" , CHAIN, UNRESERVED_KEYWORD) |
49 | PG_KEYWORD("char" , CHAR_P, COL_NAME_KEYWORD) |
50 | PG_KEYWORD("character" , CHARACTER, COL_NAME_KEYWORD) |
51 | PG_KEYWORD("characteristics" , CHARACTERISTICS, UNRESERVED_KEYWORD) |
52 | PG_KEYWORD("check" , CHECK_P, RESERVED_KEYWORD) |
53 | PG_KEYWORD("checkpoint" , CHECKPOINT, UNRESERVED_KEYWORD) |
54 | PG_KEYWORD("class" , CLASS, UNRESERVED_KEYWORD) |
55 | PG_KEYWORD("close" , CLOSE, UNRESERVED_KEYWORD) |
56 | PG_KEYWORD("cluster" , CLUSTER, UNRESERVED_KEYWORD) |
57 | PG_KEYWORD("coalesce" , COALESCE, COL_NAME_KEYWORD) |
58 | PG_KEYWORD("collate" , COLLATE, RESERVED_KEYWORD) |
59 | PG_KEYWORD("collation" , COLLATION, TYPE_FUNC_NAME_KEYWORD) |
60 | PG_KEYWORD("column" , COLUMN, RESERVED_KEYWORD) |
61 | PG_KEYWORD("columns" , COLUMNS, UNRESERVED_KEYWORD) |
62 | PG_KEYWORD("comment" , COMMENT, UNRESERVED_KEYWORD) |
63 | PG_KEYWORD("comments" , COMMENTS, UNRESERVED_KEYWORD) |
64 | PG_KEYWORD("commit" , COMMIT, UNRESERVED_KEYWORD) |
65 | PG_KEYWORD("committed" , COMMITTED, UNRESERVED_KEYWORD) |
66 | PG_KEYWORD("concurrently" , CONCURRENTLY, TYPE_FUNC_NAME_KEYWORD) |
67 | PG_KEYWORD("configuration" , CONFIGURATION, UNRESERVED_KEYWORD) |
68 | PG_KEYWORD("conflict" , CONFLICT, UNRESERVED_KEYWORD) |
69 | PG_KEYWORD("connection" , CONNECTION, UNRESERVED_KEYWORD) |
70 | PG_KEYWORD("constraint" , CONSTRAINT, RESERVED_KEYWORD) |
71 | PG_KEYWORD("constraints" , CONSTRAINTS, UNRESERVED_KEYWORD) |
72 | PG_KEYWORD("content" , CONTENT_P, UNRESERVED_KEYWORD) |
73 | PG_KEYWORD("continue" , CONTINUE_P, UNRESERVED_KEYWORD) |
74 | PG_KEYWORD("conversion" , CONVERSION_P, UNRESERVED_KEYWORD) |
75 | PG_KEYWORD("copy" , COPY, UNRESERVED_KEYWORD) |
76 | PG_KEYWORD("cost" , COST, UNRESERVED_KEYWORD) |
77 | PG_KEYWORD("create" , CREATE_P, RESERVED_KEYWORD) |
78 | PG_KEYWORD("cross" , CROSS, TYPE_FUNC_NAME_KEYWORD) |
79 | PG_KEYWORD("csv" , CSV, UNRESERVED_KEYWORD) |
80 | PG_KEYWORD("cube" , CUBE, UNRESERVED_KEYWORD) |
81 | PG_KEYWORD("current" , CURRENT_P, UNRESERVED_KEYWORD) |
82 | PG_KEYWORD("current_catalog" , CURRENT_CATALOG, RESERVED_KEYWORD) |
83 | PG_KEYWORD("current_date" , CURRENT_DATE, RESERVED_KEYWORD) |
84 | PG_KEYWORD("current_role" , CURRENT_ROLE, RESERVED_KEYWORD) |
85 | PG_KEYWORD("current_schema" , CURRENT_SCHEMA, TYPE_FUNC_NAME_KEYWORD) |
86 | PG_KEYWORD("current_time" , CURRENT_TIME, RESERVED_KEYWORD) |
87 | PG_KEYWORD("current_timestamp" , CURRENT_TIMESTAMP, RESERVED_KEYWORD) |
88 | PG_KEYWORD("current_user" , CURRENT_USER, RESERVED_KEYWORD) |
89 | PG_KEYWORD("cursor" , CURSOR, UNRESERVED_KEYWORD) |
90 | PG_KEYWORD("cycle" , CYCLE, UNRESERVED_KEYWORD) |
91 | PG_KEYWORD("data" , DATA_P, UNRESERVED_KEYWORD) |
92 | PG_KEYWORD("database" , DATABASE, UNRESERVED_KEYWORD) |
93 | PG_KEYWORD("day" , DAY_P, UNRESERVED_KEYWORD) |
94 | PG_KEYWORD("deallocate" , DEALLOCATE, UNRESERVED_KEYWORD) |
95 | PG_KEYWORD("dec" , DEC, COL_NAME_KEYWORD) |
96 | PG_KEYWORD("decimal" , DECIMAL_P, COL_NAME_KEYWORD) |
97 | PG_KEYWORD("declare" , DECLARE, UNRESERVED_KEYWORD) |
98 | PG_KEYWORD("default" , DEFAULT, RESERVED_KEYWORD) |
99 | PG_KEYWORD("defaults" , DEFAULTS, UNRESERVED_KEYWORD) |
100 | PG_KEYWORD("deferrable" , DEFERRABLE, RESERVED_KEYWORD) |
101 | PG_KEYWORD("deferred" , DEFERRED, UNRESERVED_KEYWORD) |
102 | PG_KEYWORD("definer" , DEFINER, UNRESERVED_KEYWORD) |
103 | PG_KEYWORD("delete" , DELETE_P, UNRESERVED_KEYWORD) |
104 | PG_KEYWORD("delimiter" , DELIMITER, UNRESERVED_KEYWORD) |
105 | PG_KEYWORD("delimiters" , DELIMITERS, UNRESERVED_KEYWORD) |
106 | PG_KEYWORD("depends" , DEPENDS, UNRESERVED_KEYWORD) |
107 | PG_KEYWORD("desc" , DESC_P, RESERVED_KEYWORD) |
108 | PG_KEYWORD("describe" , DESCRIBE, UNRESERVED_KEYWORD) |
109 | PG_KEYWORD("detach" , DETACH, UNRESERVED_KEYWORD) |
110 | PG_KEYWORD("dictionary" , DICTIONARY, UNRESERVED_KEYWORD) |
111 | PG_KEYWORD("disable" , DISABLE_P, UNRESERVED_KEYWORD) |
112 | PG_KEYWORD("discard" , DISCARD, UNRESERVED_KEYWORD) |
113 | PG_KEYWORD("distinct" , DISTINCT, RESERVED_KEYWORD) |
114 | PG_KEYWORD("do" , DO, RESERVED_KEYWORD) |
115 | PG_KEYWORD("document" , DOCUMENT_P, UNRESERVED_KEYWORD) |
116 | PG_KEYWORD("domain" , DOMAIN_P, UNRESERVED_KEYWORD) |
117 | PG_KEYWORD("double" , DOUBLE_P, UNRESERVED_KEYWORD) |
118 | PG_KEYWORD("drop" , DROP, UNRESERVED_KEYWORD) |
119 | PG_KEYWORD("each" , EACH, UNRESERVED_KEYWORD) |
120 | PG_KEYWORD("else" , ELSE, RESERVED_KEYWORD) |
121 | PG_KEYWORD("enable" , ENABLE_P, UNRESERVED_KEYWORD) |
122 | PG_KEYWORD("encoding" , ENCODING, UNRESERVED_KEYWORD) |
123 | PG_KEYWORD("encrypted" , ENCRYPTED, UNRESERVED_KEYWORD) |
124 | PG_KEYWORD("end" , END_P, RESERVED_KEYWORD) |
125 | PG_KEYWORD("enum" , ENUM_P, UNRESERVED_KEYWORD) |
126 | PG_KEYWORD("escape" , ESCAPE, UNRESERVED_KEYWORD) |
127 | PG_KEYWORD("event" , EVENT, UNRESERVED_KEYWORD) |
128 | PG_KEYWORD("except" , EXCEPT, RESERVED_KEYWORD) |
129 | PG_KEYWORD("exclude" , EXCLUDE, UNRESERVED_KEYWORD) |
130 | PG_KEYWORD("excluding" , EXCLUDING, UNRESERVED_KEYWORD) |
131 | PG_KEYWORD("exclusive" , EXCLUSIVE, UNRESERVED_KEYWORD) |
132 | PG_KEYWORD("execute" , EXECUTE, UNRESERVED_KEYWORD) |
133 | PG_KEYWORD("exists" , EXISTS, COL_NAME_KEYWORD) |
134 | PG_KEYWORD("explain" , EXPLAIN, UNRESERVED_KEYWORD) |
135 | PG_KEYWORD("extension" , EXTENSION, UNRESERVED_KEYWORD) |
136 | PG_KEYWORD("external" , EXTERNAL, UNRESERVED_KEYWORD) |
137 | PG_KEYWORD("extract" , EXTRACT, COL_NAME_KEYWORD) |
138 | PG_KEYWORD("false" , FALSE_P, RESERVED_KEYWORD) |
139 | PG_KEYWORD("family" , FAMILY, UNRESERVED_KEYWORD) |
140 | PG_KEYWORD("fetch" , FETCH, RESERVED_KEYWORD) |
141 | PG_KEYWORD("filter" , FILTER, UNRESERVED_KEYWORD) |
142 | PG_KEYWORD("first" , FIRST_P, UNRESERVED_KEYWORD) |
143 | PG_KEYWORD("float" , FLOAT_P, COL_NAME_KEYWORD) |
144 | PG_KEYWORD("following" , FOLLOWING, UNRESERVED_KEYWORD) |
145 | PG_KEYWORD("for" , FOR, RESERVED_KEYWORD) |
146 | PG_KEYWORD("force" , FORCE, UNRESERVED_KEYWORD) |
147 | PG_KEYWORD("foreign" , FOREIGN, RESERVED_KEYWORD) |
148 | PG_KEYWORD("forward" , FORWARD, UNRESERVED_KEYWORD) |
149 | PG_KEYWORD("freeze" , FREEZE, TYPE_FUNC_NAME_KEYWORD) |
150 | PG_KEYWORD("from" , FROM, RESERVED_KEYWORD) |
151 | PG_KEYWORD("full" , FULL, TYPE_FUNC_NAME_KEYWORD) |
152 | PG_KEYWORD("function" , FUNCTION, UNRESERVED_KEYWORD) |
153 | PG_KEYWORD("functions" , FUNCTIONS, UNRESERVED_KEYWORD) |
154 | PG_KEYWORD("generated" , GENERATED, UNRESERVED_KEYWORD) |
155 | PG_KEYWORD("global" , GLOBAL, UNRESERVED_KEYWORD) |
156 | PG_KEYWORD("grant" , GRANT, RESERVED_KEYWORD) |
157 | PG_KEYWORD("granted" , GRANTED, UNRESERVED_KEYWORD) |
158 | PG_KEYWORD("greatest" , GREATEST, COL_NAME_KEYWORD) |
159 | PG_KEYWORD("group" , GROUP_P, RESERVED_KEYWORD) |
160 | PG_KEYWORD("grouping" , GROUPING, COL_NAME_KEYWORD) |
161 | PG_KEYWORD("handler" , HANDLER, UNRESERVED_KEYWORD) |
162 | PG_KEYWORD("having" , HAVING, RESERVED_KEYWORD) |
163 | PG_KEYWORD("header" , HEADER_P, UNRESERVED_KEYWORD) |
164 | PG_KEYWORD("hold" , HOLD, UNRESERVED_KEYWORD) |
165 | PG_KEYWORD("hour" , HOUR_P, UNRESERVED_KEYWORD) |
166 | PG_KEYWORD("identity" , IDENTITY_P, UNRESERVED_KEYWORD) |
167 | PG_KEYWORD("if" , IF_P, UNRESERVED_KEYWORD) |
168 | PG_KEYWORD("ilike" , ILIKE, TYPE_FUNC_NAME_KEYWORD) |
169 | PG_KEYWORD("immediate" , IMMEDIATE, UNRESERVED_KEYWORD) |
170 | PG_KEYWORD("immutable" , IMMUTABLE, UNRESERVED_KEYWORD) |
171 | PG_KEYWORD("implicit" , IMPLICIT_P, UNRESERVED_KEYWORD) |
172 | PG_KEYWORD("import" , IMPORT_P, UNRESERVED_KEYWORD) |
173 | PG_KEYWORD("in" , IN_P, RESERVED_KEYWORD) |
174 | PG_KEYWORD("including" , INCLUDING, UNRESERVED_KEYWORD) |
175 | PG_KEYWORD("increment" , INCREMENT, UNRESERVED_KEYWORD) |
176 | PG_KEYWORD("index" , INDEX, UNRESERVED_KEYWORD) |
177 | PG_KEYWORD("indexes" , INDEXES, UNRESERVED_KEYWORD) |
178 | PG_KEYWORD("inherit" , INHERIT, UNRESERVED_KEYWORD) |
179 | PG_KEYWORD("inherits" , INHERITS, UNRESERVED_KEYWORD) |
180 | PG_KEYWORD("initially" , INITIALLY, RESERVED_KEYWORD) |
181 | PG_KEYWORD("inline" , INLINE_P, UNRESERVED_KEYWORD) |
182 | PG_KEYWORD("inner" , INNER_P, TYPE_FUNC_NAME_KEYWORD) |
183 | PG_KEYWORD("inout" , INOUT, COL_NAME_KEYWORD) |
184 | PG_KEYWORD("input" , INPUT_P, UNRESERVED_KEYWORD) |
185 | PG_KEYWORD("insensitive" , INSENSITIVE, UNRESERVED_KEYWORD) |
186 | PG_KEYWORD("insert" , INSERT, UNRESERVED_KEYWORD) |
187 | PG_KEYWORD("instead" , INSTEAD, UNRESERVED_KEYWORD) |
188 | PG_KEYWORD("int" , INT_P, COL_NAME_KEYWORD) |
189 | PG_KEYWORD("integer" , INTEGER, COL_NAME_KEYWORD) |
190 | PG_KEYWORD("intersect" , INTERSECT, RESERVED_KEYWORD) |
191 | PG_KEYWORD("interval" , INTERVAL, COL_NAME_KEYWORD) |
192 | PG_KEYWORD("into" , INTO, RESERVED_KEYWORD) |
193 | PG_KEYWORD("invoker" , INVOKER, UNRESERVED_KEYWORD) |
194 | PG_KEYWORD("is" , IS, TYPE_FUNC_NAME_KEYWORD) |
195 | PG_KEYWORD("isnull" , ISNULL, TYPE_FUNC_NAME_KEYWORD) |
196 | PG_KEYWORD("isolation" , ISOLATION, UNRESERVED_KEYWORD) |
197 | PG_KEYWORD("join" , JOIN, TYPE_FUNC_NAME_KEYWORD) |
198 | PG_KEYWORD("key" , KEY, UNRESERVED_KEYWORD) |
199 | PG_KEYWORD("label" , LABEL, UNRESERVED_KEYWORD) |
200 | PG_KEYWORD("language" , LANGUAGE, UNRESERVED_KEYWORD) |
201 | PG_KEYWORD("large" , LARGE_P, UNRESERVED_KEYWORD) |
202 | PG_KEYWORD("last" , LAST_P, UNRESERVED_KEYWORD) |
203 | PG_KEYWORD("lateral" , LATERAL_P, RESERVED_KEYWORD) |
204 | PG_KEYWORD("leading" , LEADING, RESERVED_KEYWORD) |
205 | PG_KEYWORD("leakproof" , LEAKPROOF, UNRESERVED_KEYWORD) |
206 | PG_KEYWORD("least" , LEAST, COL_NAME_KEYWORD) |
207 | PG_KEYWORD("left" , LEFT, TYPE_FUNC_NAME_KEYWORD) |
208 | PG_KEYWORD("level" , LEVEL, UNRESERVED_KEYWORD) |
209 | PG_KEYWORD("like" , LIKE, TYPE_FUNC_NAME_KEYWORD) |
210 | PG_KEYWORD("limit" , LIMIT, RESERVED_KEYWORD) |
211 | PG_KEYWORD("listen" , LISTEN, UNRESERVED_KEYWORD) |
212 | PG_KEYWORD("load" , LOAD, UNRESERVED_KEYWORD) |
213 | PG_KEYWORD("local" , LOCAL, UNRESERVED_KEYWORD) |
214 | PG_KEYWORD("localtime" , LOCALTIME, RESERVED_KEYWORD) |
215 | PG_KEYWORD("localtimestamp" , LOCALTIMESTAMP, RESERVED_KEYWORD) |
216 | PG_KEYWORD("location" , LOCATION, UNRESERVED_KEYWORD) |
217 | PG_KEYWORD("lock" , LOCK_P, UNRESERVED_KEYWORD) |
218 | PG_KEYWORD("locked" , LOCKED, UNRESERVED_KEYWORD) |
219 | PG_KEYWORD("logged" , LOGGED, UNRESERVED_KEYWORD) |
220 | PG_KEYWORD("mapping" , MAPPING, UNRESERVED_KEYWORD) |
221 | PG_KEYWORD("match" , MATCH, UNRESERVED_KEYWORD) |
222 | PG_KEYWORD("materialized" , MATERIALIZED, UNRESERVED_KEYWORD) |
223 | PG_KEYWORD("maxvalue" , MAXVALUE, UNRESERVED_KEYWORD) |
224 | PG_KEYWORD("method" , METHOD, UNRESERVED_KEYWORD) |
225 | PG_KEYWORD("minute" , MINUTE_P, UNRESERVED_KEYWORD) |
226 | PG_KEYWORD("minvalue" , MINVALUE, UNRESERVED_KEYWORD) |
227 | PG_KEYWORD("mode" , MODE, UNRESERVED_KEYWORD) |
228 | PG_KEYWORD("month" , MONTH_P, UNRESERVED_KEYWORD) |
229 | PG_KEYWORD("move" , MOVE, UNRESERVED_KEYWORD) |
230 | PG_KEYWORD("name" , NAME_P, UNRESERVED_KEYWORD) |
231 | PG_KEYWORD("names" , NAMES, UNRESERVED_KEYWORD) |
232 | PG_KEYWORD("national" , NATIONAL, COL_NAME_KEYWORD) |
233 | PG_KEYWORD("natural" , NATURAL, TYPE_FUNC_NAME_KEYWORD) |
234 | PG_KEYWORD("nchar" , NCHAR, COL_NAME_KEYWORD) |
235 | PG_KEYWORD("new" , NEW, UNRESERVED_KEYWORD) |
236 | PG_KEYWORD("next" , NEXT, UNRESERVED_KEYWORD) |
237 | PG_KEYWORD("no" , NO, UNRESERVED_KEYWORD) |
238 | PG_KEYWORD("none" , NONE, COL_NAME_KEYWORD) |
239 | PG_KEYWORD("not" , NOT, RESERVED_KEYWORD) |
240 | PG_KEYWORD("nothing" , NOTHING, UNRESERVED_KEYWORD) |
241 | PG_KEYWORD("notify" , NOTIFY, UNRESERVED_KEYWORD) |
242 | PG_KEYWORD("notnull" , NOTNULL, TYPE_FUNC_NAME_KEYWORD) |
243 | PG_KEYWORD("nowait" , NOWAIT, UNRESERVED_KEYWORD) |
244 | PG_KEYWORD("null" , NULL_P, RESERVED_KEYWORD) |
245 | PG_KEYWORD("nullif" , NULLIF, COL_NAME_KEYWORD) |
246 | PG_KEYWORD("nulls" , NULLS_P, UNRESERVED_KEYWORD) |
247 | PG_KEYWORD("numeric" , NUMERIC, COL_NAME_KEYWORD) |
248 | PG_KEYWORD("object" , OBJECT_P, UNRESERVED_KEYWORD) |
249 | PG_KEYWORD("of" , OF, UNRESERVED_KEYWORD) |
250 | PG_KEYWORD("off" , OFF, UNRESERVED_KEYWORD) |
251 | PG_KEYWORD("offset" , OFFSET, RESERVED_KEYWORD) |
252 | PG_KEYWORD("oids" , OIDS, UNRESERVED_KEYWORD) |
253 | PG_KEYWORD("old" , OLD, UNRESERVED_KEYWORD) |
254 | PG_KEYWORD("on" , ON, RESERVED_KEYWORD) |
255 | PG_KEYWORD("only" , ONLY, RESERVED_KEYWORD) |
256 | PG_KEYWORD("operator" , OPERATOR, UNRESERVED_KEYWORD) |
257 | PG_KEYWORD("option" , OPTION, UNRESERVED_KEYWORD) |
258 | PG_KEYWORD("options" , OPTIONS, UNRESERVED_KEYWORD) |
259 | PG_KEYWORD("or" , OR, RESERVED_KEYWORD) |
260 | PG_KEYWORD("order" , ORDER, RESERVED_KEYWORD) |
261 | PG_KEYWORD("ordinality" , ORDINALITY, UNRESERVED_KEYWORD) |
262 | PG_KEYWORD("out" , OUT_P, COL_NAME_KEYWORD) |
263 | PG_KEYWORD("outer" , OUTER_P, TYPE_FUNC_NAME_KEYWORD) |
264 | PG_KEYWORD("over" , OVER, UNRESERVED_KEYWORD) |
265 | PG_KEYWORD("overlaps" , OVERLAPS, TYPE_FUNC_NAME_KEYWORD) |
266 | PG_KEYWORD("overlay" , OVERLAY, COL_NAME_KEYWORD) |
267 | PG_KEYWORD("overriding" , OVERRIDING, UNRESERVED_KEYWORD) |
268 | PG_KEYWORD("owned" , OWNED, UNRESERVED_KEYWORD) |
269 | PG_KEYWORD("owner" , OWNER, UNRESERVED_KEYWORD) |
270 | PG_KEYWORD("parallel" , PARALLEL, UNRESERVED_KEYWORD) |
271 | PG_KEYWORD("parser" , PARSER, UNRESERVED_KEYWORD) |
272 | PG_KEYWORD("partial" , PARTIAL, UNRESERVED_KEYWORD) |
273 | PG_KEYWORD("partition" , PARTITION, UNRESERVED_KEYWORD) |
274 | PG_KEYWORD("passing" , PASSING, UNRESERVED_KEYWORD) |
275 | PG_KEYWORD("password" , PASSWORD, UNRESERVED_KEYWORD) |
276 | PG_KEYWORD("placing" , PLACING, RESERVED_KEYWORD) |
277 | PG_KEYWORD("plans" , PLANS, UNRESERVED_KEYWORD) |
278 | PG_KEYWORD("policy" , POLICY, UNRESERVED_KEYWORD) |
279 | PG_KEYWORD("position" , POSITION, COL_NAME_KEYWORD) |
280 | PG_KEYWORD("pragma" , PRAGMA_P, UNRESERVED_KEYWORD) |
281 | PG_KEYWORD("preceding" , PRECEDING, UNRESERVED_KEYWORD) |
282 | PG_KEYWORD("precision" , PRECISION, COL_NAME_KEYWORD) |
283 | PG_KEYWORD("prepare" , PREPARE, UNRESERVED_KEYWORD) |
284 | PG_KEYWORD("prepared" , PREPARED, UNRESERVED_KEYWORD) |
285 | PG_KEYWORD("preserve" , PRESERVE, UNRESERVED_KEYWORD) |
286 | PG_KEYWORD("primary" , PRIMARY, RESERVED_KEYWORD) |
287 | PG_KEYWORD("prior" , PRIOR, UNRESERVED_KEYWORD) |
288 | PG_KEYWORD("privileges" , PRIVILEGES, UNRESERVED_KEYWORD) |
289 | PG_KEYWORD("procedural" , PROCEDURAL, UNRESERVED_KEYWORD) |
290 | PG_KEYWORD("procedure" , PROCEDURE, UNRESERVED_KEYWORD) |
291 | PG_KEYWORD("program" , PROGRAM, UNRESERVED_KEYWORD) |
292 | PG_KEYWORD("publication" , PUBLICATION, UNRESERVED_KEYWORD) |
293 | PG_KEYWORD("quote" , QUOTE, UNRESERVED_KEYWORD) |
294 | PG_KEYWORD("range" , RANGE, UNRESERVED_KEYWORD) |
295 | PG_KEYWORD("read" , READ_P, UNRESERVED_KEYWORD) |
296 | PG_KEYWORD("real" , REAL, COL_NAME_KEYWORD) |
297 | PG_KEYWORD("reassign" , REASSIGN, UNRESERVED_KEYWORD) |
298 | PG_KEYWORD("recheck" , RECHECK, UNRESERVED_KEYWORD) |
299 | PG_KEYWORD("recursive" , RECURSIVE, UNRESERVED_KEYWORD) |
300 | PG_KEYWORD("ref" , REF, UNRESERVED_KEYWORD) |
301 | PG_KEYWORD("references" , REFERENCES, RESERVED_KEYWORD) |
302 | PG_KEYWORD("referencing" , REFERENCING, UNRESERVED_KEYWORD) |
303 | PG_KEYWORD("refresh" , REFRESH, UNRESERVED_KEYWORD) |
304 | PG_KEYWORD("reindex" , REINDEX, UNRESERVED_KEYWORD) |
305 | PG_KEYWORD("relative" , RELATIVE_P, UNRESERVED_KEYWORD) |
306 | PG_KEYWORD("release" , RELEASE, UNRESERVED_KEYWORD) |
307 | PG_KEYWORD("rename" , RENAME, UNRESERVED_KEYWORD) |
308 | PG_KEYWORD("repeatable" , REPEATABLE, UNRESERVED_KEYWORD) |
309 | PG_KEYWORD("replace" , REPLACE, UNRESERVED_KEYWORD) |
310 | PG_KEYWORD("replica" , REPLICA, UNRESERVED_KEYWORD) |
311 | PG_KEYWORD("reset" , RESET, UNRESERVED_KEYWORD) |
312 | PG_KEYWORD("restart" , RESTART, UNRESERVED_KEYWORD) |
313 | PG_KEYWORD("restrict" , RESTRICT, UNRESERVED_KEYWORD) |
314 | PG_KEYWORD("returning" , RETURNING, RESERVED_KEYWORD) |
315 | PG_KEYWORD("returns" , RETURNS, UNRESERVED_KEYWORD) |
316 | PG_KEYWORD("revoke" , REVOKE, UNRESERVED_KEYWORD) |
317 | PG_KEYWORD("right" , RIGHT, TYPE_FUNC_NAME_KEYWORD) |
318 | PG_KEYWORD("role" , ROLE, UNRESERVED_KEYWORD) |
319 | PG_KEYWORD("rollback" , ROLLBACK, UNRESERVED_KEYWORD) |
320 | PG_KEYWORD("rollup" , ROLLUP, UNRESERVED_KEYWORD) |
321 | PG_KEYWORD("row" , ROW, COL_NAME_KEYWORD) |
322 | PG_KEYWORD("rows" , ROWS, UNRESERVED_KEYWORD) |
323 | PG_KEYWORD("rule" , RULE, UNRESERVED_KEYWORD) |
324 | PG_KEYWORD("savepoint" , SAVEPOINT, UNRESERVED_KEYWORD) |
325 | PG_KEYWORD("schema" , SCHEMA, UNRESERVED_KEYWORD) |
326 | PG_KEYWORD("schemas" , SCHEMAS, UNRESERVED_KEYWORD) |
327 | PG_KEYWORD("scroll" , SCROLL, UNRESERVED_KEYWORD) |
328 | PG_KEYWORD("search" , SEARCH, UNRESERVED_KEYWORD) |
329 | PG_KEYWORD("second" , SECOND_P, UNRESERVED_KEYWORD) |
330 | PG_KEYWORD("security" , SECURITY, UNRESERVED_KEYWORD) |
331 | PG_KEYWORD("select" , SELECT, RESERVED_KEYWORD) |
332 | PG_KEYWORD("sequence" , SEQUENCE, UNRESERVED_KEYWORD) |
333 | PG_KEYWORD("sequences" , SEQUENCES, UNRESERVED_KEYWORD) |
334 | PG_KEYWORD("serializable" , SERIALIZABLE, UNRESERVED_KEYWORD) |
335 | PG_KEYWORD("server" , SERVER, UNRESERVED_KEYWORD) |
336 | PG_KEYWORD("session" , SESSION, UNRESERVED_KEYWORD) |
337 | PG_KEYWORD("session_user" , SESSION_USER, RESERVED_KEYWORD) |
338 | PG_KEYWORD("set" , SET, UNRESERVED_KEYWORD) |
339 | PG_KEYWORD("setof" , SETOF, COL_NAME_KEYWORD) |
340 | PG_KEYWORD("sets" , SETS, UNRESERVED_KEYWORD) |
341 | PG_KEYWORD("share" , SHARE, UNRESERVED_KEYWORD) |
342 | PG_KEYWORD("show" , SHOW, UNRESERVED_KEYWORD) |
343 | PG_KEYWORD("similar" , SIMILAR, TYPE_FUNC_NAME_KEYWORD) |
344 | PG_KEYWORD("simple" , SIMPLE, UNRESERVED_KEYWORD) |
345 | PG_KEYWORD("skip" , SKIP, UNRESERVED_KEYWORD) |
346 | PG_KEYWORD("smallint" , SMALLINT, COL_NAME_KEYWORD) |
347 | PG_KEYWORD("snapshot" , SNAPSHOT, UNRESERVED_KEYWORD) |
348 | PG_KEYWORD("some" , SOME, RESERVED_KEYWORD) |
349 | PG_KEYWORD("sql" , SQL_P, UNRESERVED_KEYWORD) |
350 | PG_KEYWORD("stable" , STABLE, UNRESERVED_KEYWORD) |
351 | PG_KEYWORD("standalone" , STANDALONE_P, UNRESERVED_KEYWORD) |
352 | PG_KEYWORD("start" , START, UNRESERVED_KEYWORD) |
353 | PG_KEYWORD("statement" , STATEMENT, UNRESERVED_KEYWORD) |
354 | PG_KEYWORD("statistics" , STATISTICS, UNRESERVED_KEYWORD) |
355 | PG_KEYWORD("stdin" , STDIN, UNRESERVED_KEYWORD) |
356 | PG_KEYWORD("stdout" , STDOUT, UNRESERVED_KEYWORD) |
357 | PG_KEYWORD("storage" , STORAGE, UNRESERVED_KEYWORD) |
358 | PG_KEYWORD("strict" , STRICT_P, UNRESERVED_KEYWORD) |
359 | PG_KEYWORD("strip" , STRIP_P, UNRESERVED_KEYWORD) |
360 | PG_KEYWORD("subscription" , SUBSCRIPTION, UNRESERVED_KEYWORD) |
361 | PG_KEYWORD("substring" , SUBSTRING, COL_NAME_KEYWORD) |
362 | PG_KEYWORD("symmetric" , SYMMETRIC, RESERVED_KEYWORD) |
363 | PG_KEYWORD("sysid" , SYSID, UNRESERVED_KEYWORD) |
364 | PG_KEYWORD("system" , SYSTEM_P, UNRESERVED_KEYWORD) |
365 | PG_KEYWORD("table" , TABLE, RESERVED_KEYWORD) |
366 | PG_KEYWORD("tables" , TABLES, UNRESERVED_KEYWORD) |
367 | PG_KEYWORD("tablesample" , TABLESAMPLE, TYPE_FUNC_NAME_KEYWORD) |
368 | PG_KEYWORD("tablespace" , TABLESPACE, UNRESERVED_KEYWORD) |
369 | PG_KEYWORD("temp" , TEMP, UNRESERVED_KEYWORD) |
370 | PG_KEYWORD("template" , TEMPLATE, UNRESERVED_KEYWORD) |
371 | PG_KEYWORD("temporary" , TEMPORARY, UNRESERVED_KEYWORD) |
372 | PG_KEYWORD("text" , TEXT_P, UNRESERVED_KEYWORD) |
373 | PG_KEYWORD("then" , THEN, RESERVED_KEYWORD) |
374 | PG_KEYWORD("time" , TIME, COL_NAME_KEYWORD) |
375 | PG_KEYWORD("timestamp" , TIMESTAMP, COL_NAME_KEYWORD) |
376 | PG_KEYWORD("to" , TO, RESERVED_KEYWORD) |
377 | PG_KEYWORD("trailing" , TRAILING, RESERVED_KEYWORD) |
378 | PG_KEYWORD("transaction" , TRANSACTION, UNRESERVED_KEYWORD) |
379 | PG_KEYWORD("transform" , TRANSFORM, UNRESERVED_KEYWORD) |
380 | PG_KEYWORD("treat" , TREAT, COL_NAME_KEYWORD) |
381 | PG_KEYWORD("trigger" , TRIGGER, UNRESERVED_KEYWORD) |
382 | PG_KEYWORD("trim" , TRIM, COL_NAME_KEYWORD) |
383 | PG_KEYWORD("true" , TRUE_P, RESERVED_KEYWORD) |
384 | PG_KEYWORD("truncate" , TRUNCATE, UNRESERVED_KEYWORD) |
385 | PG_KEYWORD("trusted" , TRUSTED, UNRESERVED_KEYWORD) |
386 | PG_KEYWORD("type" , TYPE_P, UNRESERVED_KEYWORD) |
387 | PG_KEYWORD("types" , TYPES_P, UNRESERVED_KEYWORD) |
388 | PG_KEYWORD("unbounded" , UNBOUNDED, UNRESERVED_KEYWORD) |
389 | PG_KEYWORD("uncommitted" , UNCOMMITTED, UNRESERVED_KEYWORD) |
390 | PG_KEYWORD("unencrypted" , UNENCRYPTED, UNRESERVED_KEYWORD) |
391 | PG_KEYWORD("union" , UNION, RESERVED_KEYWORD) |
392 | PG_KEYWORD("unique" , UNIQUE, RESERVED_KEYWORD) |
393 | PG_KEYWORD("unknown" , UNKNOWN, UNRESERVED_KEYWORD) |
394 | PG_KEYWORD("unlisten" , UNLISTEN, UNRESERVED_KEYWORD) |
395 | PG_KEYWORD("unlogged" , UNLOGGED, UNRESERVED_KEYWORD) |
396 | PG_KEYWORD("until" , UNTIL, UNRESERVED_KEYWORD) |
397 | PG_KEYWORD("update" , UPDATE, UNRESERVED_KEYWORD) |
398 | PG_KEYWORD("user" , USER, RESERVED_KEYWORD) |
399 | PG_KEYWORD("using" , USING, RESERVED_KEYWORD) |
400 | PG_KEYWORD("vacuum" , VACUUM, UNRESERVED_KEYWORD) |
401 | PG_KEYWORD("valid" , VALID, UNRESERVED_KEYWORD) |
402 | PG_KEYWORD("validate" , VALIDATE, UNRESERVED_KEYWORD) |
403 | PG_KEYWORD("validator" , VALIDATOR, UNRESERVED_KEYWORD) |
404 | PG_KEYWORD("value" , VALUE_P, UNRESERVED_KEYWORD) |
405 | PG_KEYWORD("values" , VALUES, COL_NAME_KEYWORD) |
406 | PG_KEYWORD("varchar" , VARCHAR, COL_NAME_KEYWORD) |
407 | PG_KEYWORD("variadic" , VARIADIC, RESERVED_KEYWORD) |
408 | PG_KEYWORD("varying" , VARYING, UNRESERVED_KEYWORD) |
409 | PG_KEYWORD("verbose" , VERBOSE, TYPE_FUNC_NAME_KEYWORD) |
410 | PG_KEYWORD("version" , VERSION_P, UNRESERVED_KEYWORD) |
411 | PG_KEYWORD("view" , VIEW, UNRESERVED_KEYWORD) |
412 | PG_KEYWORD("views" , VIEWS, UNRESERVED_KEYWORD) |
413 | PG_KEYWORD("volatile" , VOLATILE, UNRESERVED_KEYWORD) |
414 | PG_KEYWORD("when" , WHEN, RESERVED_KEYWORD) |
415 | PG_KEYWORD("where" , WHERE, RESERVED_KEYWORD) |
416 | PG_KEYWORD("whitespace" , WHITESPACE_P, UNRESERVED_KEYWORD) |
417 | PG_KEYWORD("window" , WINDOW, RESERVED_KEYWORD) |
418 | PG_KEYWORD("with" , WITH, RESERVED_KEYWORD) |
419 | PG_KEYWORD("within" , WITHIN, UNRESERVED_KEYWORD) |
420 | PG_KEYWORD("without" , WITHOUT, UNRESERVED_KEYWORD) |
421 | PG_KEYWORD("work" , WORK, UNRESERVED_KEYWORD) |
422 | PG_KEYWORD("wrapper" , WRAPPER, UNRESERVED_KEYWORD) |
423 | PG_KEYWORD("write" , WRITE_P, UNRESERVED_KEYWORD) |
424 | PG_KEYWORD("xml" , XML_P, UNRESERVED_KEYWORD) |
425 | PG_KEYWORD("xmlattributes" , XMLATTRIBUTES, COL_NAME_KEYWORD) |
426 | PG_KEYWORD("xmlconcat" , XMLCONCAT, COL_NAME_KEYWORD) |
427 | PG_KEYWORD("xmlelement" , XMLELEMENT, COL_NAME_KEYWORD) |
428 | PG_KEYWORD("xmlexists" , XMLEXISTS, COL_NAME_KEYWORD) |
429 | PG_KEYWORD("xmlforest" , XMLFOREST, COL_NAME_KEYWORD) |
430 | PG_KEYWORD("xmlnamespaces" , XMLNAMESPACES, COL_NAME_KEYWORD) |
431 | PG_KEYWORD("xmlparse" , XMLPARSE, COL_NAME_KEYWORD) |
432 | PG_KEYWORD("xmlpi" , XMLPI, COL_NAME_KEYWORD) |
433 | PG_KEYWORD("xmlroot" , XMLROOT, COL_NAME_KEYWORD) |
434 | PG_KEYWORD("xmlserialize" , XMLSERIALIZE, COL_NAME_KEYWORD) |
435 | PG_KEYWORD("xmltable" , XMLTABLE, COL_NAME_KEYWORD) |
436 | PG_KEYWORD("year" , YEAR_P, UNRESERVED_KEYWORD) |
437 | PG_KEYWORD("yes" , YES_P, UNRESERVED_KEYWORD) |
438 | PG_KEYWORD("zone" , ZONE, UNRESERVED_KEYWORD) |
439 | |
440 | }; |
441 | |
442 | const int NumScanKeywords = lengthof(ScanKeywords); |
443 | |