Implement enum type for guc parameters, and convert a couple of existing
authorMagnus Hagander <magnus@hagander.net>
Mon, 10 Mar 2008 12:55:13 +0000 (12:55 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 10 Mar 2008 12:55:13 +0000 (12:55 +0000)
commit52a8d4f8f7e286482886861175312c1434b1d4fd
tree64031c50a3e1c1ee0e66f5f3ec4197021873150c
parent23c356ccecaf10665777c05fac414466b7d5793d
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
doc/src/sgml/config.sgml
src/backend/catalog/system_views.sql
src/backend/tcop/postgres.c
src/backend/utils/error/elog.c
src/backend/utils/misc/guc.c
src/include/tcop/tcopprot.h
src/include/utils/elog.h
src/include/utils/guc.h
src/include/utils/guc_tables.h
src/test/regress/expected/rules.out