Re: Avoid leaking system path from pg_available_extensions - Mailing list pgsql-hackers

From Jim Jones
Subject Re: Avoid leaking system path from pg_available_extensions
Date
Msg-id cf40d36e-e45a-41c2-aea1-7834bcb62da9@uni-muenster.de
Whole thread
In response to Re: Avoid leaking system path from pg_available_extensions  (Matheus Alcantara <matheusssilv97@gmail.com>)
Responses Re: Avoid leaking system path from pg_available_extensions
List pgsql-hackers
On 21/05/2026 17:12, Matheus Alcantara wrote:
> I've reproduced the issue and the fix looks correct to me.

same here, +1

I was wondering if creating a constant for it would be, stylistically
speaking, a cleaner solution. For instance:

#define EXTENSION_SYSTEM_MACRO  "$system"

I realize that it's used only inside get_extension_control_directories()
but since it is even mentioned in the docs, I guess it wouldn't be a bad
idea.

Thanks!

Best, Jim



pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Fix pg_get_multixact_stats() members_size calculation
Next
From: Yugo Nagata
Date:
Subject: Re: Incremental View Maintenance, take 2