Re: RFC: Additional Directory for Extensions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: RFC: Additional Directory for Extensions
Date
Msg-id 38c53446-6b65-4222-b76b-351e56f4841c@eisentraut.org
Whole thread Raw
In response to Re: RFC: Additional Directory for Extensions  (Matheus Alcantara <matheusssilv97@gmail.com>)
List pgsql-hackers
On 03.03.25 19:45, Matheus Alcantara wrote:
> Hi, attached a new v5 with some minor improvements on TAP tests:
> 
> - Add a proper test name for all test cases
> - Add CREATE EXTENSION command execution
> - Change the assert on pg_available_extensions and
>    pg_available_extension_versions to validate the row content
> 
> Also rebased with master

This looks very good to me.  I have one issue to point out:  The logic 
in get_extension_control_directories() needs to be a little bit more 
careful to align with the rules in find_in_path().  For example, it 
should use first_path_var_separator() to get the platform-specific path 
separator, and probably also substitute_path_macro() and 
canonicalize_path() etc., to keep everything consistent.  (Maybe it 
would be ok to move the function to dfmgr.c to avoid having to export 
too many things from there.)

Independent of that, attached is a small patch that suggests to use the 
newer foreach_ptr() macro in some places.
Attachment

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: support virtual generated column not null constraint
Next
From: Corey Huinker
Date:
Subject: Re: Statistics Import and Export