doc PG 17 relnotes: add FETCH_COUNT item
[pgsql.git] / src / common / keywords.c
blobcfd2cb2983d738c0dd6b9d1ff618d160e69d20f7
1 /*-------------------------------------------------------------------------
3 * keywords.c
4 * PostgreSQL's list of SQL keywords
7 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
11 * IDENTIFICATION
12 * src/common/keywords.c
14 *-------------------------------------------------------------------------
16 #include "c.h"
18 #include "common/keywords.h"
21 /* ScanKeywordList lookup data for SQL keywords */
23 #include "kwlist_d.h"
25 /* Keyword categories for SQL keywords */
27 #define PG_KEYWORD(kwname, value, category, collabel) category,
29 const uint8 ScanKeywordCategories[SCANKEYWORDS_NUM_KEYWORDS] = {
30 #include "parser/kwlist.h"
33 #undef PG_KEYWORD
35 /* Keyword can-be-bare-label flags for SQL keywords */
37 #define PG_KEYWORD(kwname, value, category, collabel) collabel,
39 #define BARE_LABEL true
40 #define AS_LABEL false
42 const bool ScanKeywordBareLabel[SCANKEYWORDS_NUM_KEYWORDS] = {
43 #include "parser/kwlist.h"
46 #undef PG_KEYWORD
47 #undef BARE_LABEL
48 #undef AS_LABEL