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)
commitd88190b94e2b9e5795d8d7dc6cb0eaca8fea9f2f
tree355d493f26d5935b0eecd0771dd8cdf2ec16dd25
parent9751e8bf6381569427131c25332aa9f10f178792
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