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.
Showing
- doc/src/sgml/catalogs.sgml 9 additions, 3 deletionsdoc/src/sgml/catalogs.sgml
- doc/src/sgml/config.sgml 3 additions, 2 deletionsdoc/src/sgml/config.sgml
- src/backend/catalog/system_views.sql 2 additions, 2 deletionssrc/backend/catalog/system_views.sql
- src/backend/tcop/postgres.c 2 additions, 2 deletionssrc/backend/tcop/postgres.c
- src/backend/utils/error/elog.c 2 additions, 2 deletionssrc/backend/utils/error/elog.c
- src/backend/utils/misc/guc.c 389 additions, 218 deletionssrc/backend/utils/misc/guc.c
- src/include/tcop/tcopprot.h 2 additions, 2 deletionssrc/include/tcop/tcopprot.h
- src/include/utils/elog.h 2 additions, 2 deletionssrc/include/utils/elog.h
- src/include/utils/guc.h 2 additions, 1 deletionsrc/include/utils/guc.h
- src/include/utils/guc_tables.h 26 additions, 2 deletionssrc/include/utils/guc_tables.h
- src/test/regress/expected/rules.out 1 addition, 1 deletionsrc/test/regress/expected/rules.out
Loading
Please register or sign in to comment