From c63147d6f0e86d96ffb315147f36af613a35c2ce Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 3 Jul 2008 20:58:47 +0000 Subject: Add a function pg_get_keywords() to let clients find out the set of keywords known to the SQL parser. Dave Page --- doc/src/sgml/func.sgml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 48cb4f6c2b6..d3529f560e3 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -11484,6 +11484,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); format_type + + pg_get_keywords + + pg_get_viewdef @@ -11538,6 +11542,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); text get SQL name of a data type + + pg_get_keywords() + setof record + get list of SQL keywords and their categories + pg_get_constraintdef(constraint_oid) text @@ -11633,6 +11642,16 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); for the type modifier if no specific modifier is known. + + pg_get_keywords returns a set of records describing + the SQL keywords recognized by the server. The word column + contains the keyword. The catcode column contains a + category code: U for unreserved, C for column name, + T for type or function name, or R for reserved. + The catdesc column contains a possibly-localized string + describing the category. + + pg_get_constraintdef, pg_get_indexdef, pg_get_ruledef, -- cgit v1.2.3