-
- Downloads
Fix a couple of issues in recent patch to print updates to postgresql.conf
settings: avoid calling superuser() in contexts where it's not defined, don't leak the transient copies of GetConfigOption output, and avoid the whole exercise in postmaster child processes. I found that actually no current caller of GetConfigOption has any use for its internal check of GUC_SUPERUSER_ONLY. But rather than just remove that entirely, it seemed better to add a parameter indicating whether to enforce the check. Per report from Simon and subsequent testing.
Showing
- src/backend/utils/misc/guc-file.l 12 additions, 7 deletionssrc/backend/utils/misc/guc-file.l
- src/backend/utils/misc/guc.c 9 additions, 3 deletionssrc/backend/utils/misc/guc.c
- src/include/utils/guc.h 2 additions, 2 deletionssrc/include/utils/guc.h
- src/timezone/pgtz.c 3 additions, 3 deletionssrc/timezone/pgtz.c
Loading
Please register or sign in to comment