summaryrefslogtreecommitdiff
path: root/src/include/parser
diff options
context:
space:
mode:
authorTom Lane2008-07-03 20:58:47 +0000
committerTom Lane2008-07-03 20:58:47 +0000
commitc63147d6f0e86d96ffb315147f36af613a35c2ce (patch)
treeab767c9fa14153d7fafd45d7fa1350d50265ab89 /src/include/parser
parente3d9dceef62e072cf9a433ae6c74a1c5a10d94d3 (diff)
Add a function pg_get_keywords() to let clients find out the set of keywords
known to the SQL parser. Dave Page
Diffstat (limited to 'src/include/parser')
-rw-r--r--src/include/parser/keywords.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/parser/keywords.h b/src/include/parser/keywords.h
index 717e20e7df4..2da7fd3da9e 100644
--- a/src/include/parser/keywords.h
+++ b/src/include/parser/keywords.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/parser/keywords.h,v 1.24 2008/01/01 19:45:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/parser/keywords.h,v 1.25 2008/07/03 20:58:46 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -28,6 +28,9 @@ typedef struct ScanKeyword
int16 category; /* see codes above */
} ScanKeyword;
+extern const ScanKeyword ScanKeywords[];
+extern const ScanKeyword *LastScanKeyword;
+
extern const ScanKeyword *ScanKeywordLookup(const char *text);
#endif /* KEYWORDS_H */