| From: | "Matheus Alcantara" <matheusssilv97(at)gmail(dot)com> |
|---|---|
| To: | "Quan Zongliang" <quanzongliang(at)yeah(dot)net>, "Euler Taveira" <euler(at)eulerto(dot)com>, "Chao Li" <li(dot)evan(dot)chao(at)gmail(dot)com>, "Matheus Alcantara" <matheusssilv97(at)gmail(dot)com> |
| Cc: | "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Include extension path on pg_available_extensions |
| Date: | 2025-10-28 12:29:13 |
| Message-ID: | DDTYF5BVNCWW.2HK3K2N51EWPA@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu Oct 23, 2025 at 10:57 PM -03, Quan Zongliang wrote:
> On 10/23/25 9:56 PM, Euler Taveira wrote:
>
>>
>> * insufficient privilege: if the role doesn't have the sufficient privileges,
>> return NULL or '<insufficient privilege>' (similar to pg_stat_activity). I
>> don't have a strong preference but the latter can impose more effort to use
>> if you don't know the role has sufficient privilege. However, it is clear why
>> the absolute path is not returned.
>>
>
> +1
> I think this way is better.
>
So here it is, see attached.
I've created a new role pg_read_extension_paths for this, I'm not sure
if it's the best way to do this. I'm open for other ideas, perhaps we
can reuse some other role?
--
Matheus Alcantara
| Attachment | Content-Type | Size |
|---|---|---|
| v3-0001-Add-path-of-extension-on-pg_available_extensions.patch | text/plain | 17.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | vignesh C | 2025-10-28 12:30:16 | Re: Logical Replication of sequences |
| Previous Message | Amit Kapila | 2025-10-28 12:25:01 | Re: POC: enable logical decoding when wal_level = 'replica' without a server restart |