From 52a8d4f8f7e286482886861175312c1434b1d4fd Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 10 Mar 2008 12:55:13 +0000 Subject: Implement enum type for guc parameters, and convert a couple of existing variables to it. More need to be converted, but I wanted to get this in before it conflicts with too much... Other than just centralising the text-to-int conversion for parameters, this allows the pg_settings view to contain a list of available options and allows an error hint to show what values are allowed. --- doc/src/sgml/catalogs.sgml | 12 +++++++++--- doc/src/sgml/config.sgml | 5 +++-- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 8a16c77a7dd..4c92c2c77a5 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -1,4 +1,4 @@ - + @@ -6260,8 +6260,8 @@ vartype text - Parameter type (bool, integer, - real, or string) + Parameter type (bool, enum, + integer, real, or string) @@ -6281,6 +6281,12 @@ Maximum allowed value of the parameter (NULL for non-numeric values) + + enumvals + text + Allowed values in enum parameters (NULL for non-enum + values) + diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 0c2740890da..38f996ec0ba 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -162,7 +162,8 @@ SET ENABLE_SEQSCAN TO OFF; displaying and updating session run-time parameters. It is equivalent to SHOW and SET, but can be more convenient to use because it can be joined with other tables, or selected from using - any desired selection condition. + any desired selection condition. It also contains more information about + what values are allowed for the parameters. -- cgit v1.2.3