On Tue, Sep 8, 2026 at 7:52 PM Hayato Kuroda (Fujitsu)
<[email protected]> wrote:
> Good point, should be fixed. I came up with an idea to spedcify missing_ok :=
> true
> for current_setting(), and skip checking if it returns NULL. Thought?
Using missing_ok = true seems fine for older minor versions that don't
support output_plugin_libraries, but it doesn't handle insufficient
privileges cases, does it? current_setting('output_plugin_libraries', true)
still raises a permission-denied error if the current user cannot examine
the setting, no?
How about querying pg_settings instead? For example,
SELECT setting
FROM pg_catalog.pg_settings
WHERE name = 'output_plugin_libraries';
This returns no rows if the parameter doesn't exist or the current user
doesn't have permission to examine it, so we could skip the check for
that database in either case.
Regards,
--
Fujii Masao