Thread

  1. Re: Avoid leaking system path from pg_available_extensions

    Matheus Alcantara <matheusssilv97@gmail.com> — 2026-05-22T15:40:28Z

    On 22/05/26 04:25, Jim Jones wrote:
    > On 21/05/2026 17:12, Matheus Alcantara wrote:
    >> I've reproduced the issue and the fix looks correct to me.
    > 
    > same here, +1
    > 
    
    Thank you for also testing.
    
    > 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.
    > 
    
    I'm not against it but I don't think that it's necessary since as you 
    mention, only get_extension_control_directories() use.
    
    --
    Matheus Alcantara
    EDB: https://www.enterprisedb.com