mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Change local_preload_libraries to PGC_USERSET
This allows it to be used with ALTER ROLE SET. Although the old setting of PGC_BACKEND prevented changes after session start, after discussion it was more useful to allow ALTER ROLE SET instead and just document that changes during a session have no effect. This is similar to how session_preload_libraries works already. An alternative would be to change things to allow PGC_BACKEND and PGC_SU_BACKEND settings to be changed by ALTER ROLE SET. But that might need further research (e.g., log_connections would probably not work). based on patch by Kyotaro Horiguchi
This commit is contained in:
@ -2920,7 +2920,7 @@ static struct config_string ConfigureNamesString[] =
|
||||
},
|
||||
|
||||
{
|
||||
{"local_preload_libraries", PGC_BACKEND, CLIENT_CONN_PRELOAD,
|
||||
{"local_preload_libraries", PGC_USERSET, CLIENT_CONN_PRELOAD,
|
||||
gettext_noop("Lists unprivileged shared libraries to preload into each backend."),
|
||||
NULL,
|
||||
GUC_LIST_INPUT | GUC_LIST_QUOTE
|
||||
|
Reference in New Issue
Block a user