Fix the documentation about session_preload_libraries.#55
Merged
darold merged 2 commits intodarold:masterfrom Jun 8, 2025
Merged
Fix the documentation about session_preload_libraries.#55darold merged 2 commits intodarold:masterfrom
darold merged 2 commits intodarold:masterfrom
Conversation
Remove the documentation about suggesting non-superusers can set session_preload_libraries. This is incorrect as it triggers a "permission denied" error, as confirmed by PostgreSQL documentation stating only superusers or those with SET privilege can modify this setting [1]. [1]: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-SESSION-PRELOAD-LIBRARIES
As noted in commit ef79a91, explicit loading is redundant when a library is managed by session_preload_libraries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here is a sentence about session_preload_libraries in the PostgreSQL documentation:
For a non-superuser without SET privilege, the
ALTER DATABASE <dbname> SET session_preload_libraries = ...will cause a permission denied.This PR also removes the
LOAD '$libdir/plugins/pgtt';command in the example, because we usesession_preload_librariesto load this library.If we want to keep this command, we should revert the commit ef79a91, since we should link the library into
$libdir/plugins.