-
- Downloads
Extend GUC concepts of parse_hook and assign_hook to all four supported
datatypes, not only strings. parse_hook is useless for bool, I suppose, but it seems possibly useful for int and double to apply variable-specific constraints that are more complex than simple range limits. assign_hook is definitely useful for all datatypes --- we need it right now for bool to support date cache reset when changing Australian timezone rule setting. Also, clean up some residual problems with the reset all/show all patch, including memory leaks and mistaken reset of PostPortNumber. It seems best that RESET ALL not touch variables that don't have SUSET or USERSET context.
Showing
- src/backend/bootstrap/bootstrap.c 2 additions, 2 deletionssrc/backend/bootstrap/bootstrap.c
- src/backend/commands/variable.c 5 additions, 3 deletionssrc/backend/commands/variable.c
- src/backend/postmaster/postmaster.c 7 additions, 3 deletionssrc/backend/postmaster/postmaster.c
- src/backend/tcop/postgres.c 3 additions, 3 deletionssrc/backend/tcop/postgres.c
- src/backend/utils/misc/guc.c 196 additions, 117 deletionssrc/backend/utils/misc/guc.c
- src/include/utils/guc.h 10 additions, 8 deletionssrc/include/utils/guc.h
Loading
Please register or sign in to comment