Re: RFC: Additional Directory for Extensions

Matheus Alcantara <matheusssilv97@gmail.com>

From: Matheus Alcantara <matheusssilv97@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Peter Eisentraut <peter@eisentraut.org>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>, Craig Ringer <craig.ringer@enterprisedb.com>, "David E. Wheeler" <david@justatheory.com>, Robert Haas <robertmhaas@gmail.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2025-02-25T20:29:29Z
Lists: pgsql-hackers

Attachments

Thanks for reviewing!

On Tue, Feb 25, 2025 at 9:45 AM Andrew Dunstan <andrew@dunslane.net> wrote:
> I think your additions generally look good. We should be able to
> simplify this:
>
>
> +    system_dir = psprintf("%s/extension", sharepath);
> +    ecp = system_dir;
> +
> +    if (strlen(Extension_control_path) == 0)
> +    {
> +        paths = lappend(paths, ecp);
> +    }
>
Fixed on the attached v3.

-- 
Matheus Alcantara

Commits

  1. doc: Flesh out extension docs for the "prefix" make variable

  2. Fix extension control path tests

  3. extension_control_path