Re: [PATCH] Allow bare library names for non-superuser LOAD

From: cca5507 <cca5507(at)qq(dot)com>
To: Japin Li <japinli(at)hotmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] Allow bare library names for non-superuser LOAD
Date: 2026-09-03 13:17:18
Message-ID: tencent_A25AB53229C6323A784407EA76DAA1AB8508@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> According to the documentation [1], this is expected behavior.
>
> Non-superusers can only apply LOAD to library files located in $libdir/plugins/ —
>         the specified filename must begin with exactly that string. 

Yes, I knew that this is the expected behavior, but it's not very convenient for
non-superusers, right? Therefore, I would like to propose a patch that allows
non-superusers to omit the $libdir/plugins/ prefix and let postgres to expand
it automatically.

--
Regards,
ChangAo Chen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Karlsson 2026-09-03 13:30:54 Re: new clang warnings about unused global variables
Previous Message Yuhang Qiu 2026-09-03 13:15:15 Re: aio: Async fsyncs for crash recovery and checkpointer