Re: Potential problem in commit f777d773878 and 4f7f7b03758

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, Matheus Alcantara <matheusssilv97(at)gmail(dot)com>, Srinath Reddy Sadipiralla <srinath2133(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Potential problem in commit f777d773878 and 4f7f7b03758
Date: 2025-09-04 12:02:27
Message-ID: CAFiTN-vkA01=BnLGTWBCii89g_ui0rFKzebd475U8aH+z-=+Ng@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 4, 2025 at 5:13 PM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2025-Aug-27, Peter Eisentraut wrote:
>
> > > > > On Sun, Aug 24, 2025 at 5:59 PM Srinath Reddy Sadipiralla
> > > > > <srinath2133(at)gmail(dot)com> wrote:
> > > > > >
> > > > > > Thanks Dilip and Matheus for working on this , i reviewed the
> > > > > > latest patch given [by] Matheus and it LGTM but i have doubt
> > > > > > that in f777d773878 commit the $libdir was moved out from
> > > > > > expand_dynamic_library_name into load_external_function
> > > > > > because if someone specifies LOAD '$libdir/foo' explicitly
> > > > > > they want to get the foo.so from $libdir not from other paths
> > > > > > given in dynamic_library_path
>
> > committed, thanks
>
> Was the above-quoted complaint addressed in some way? I see that Dilip
> and Matheus disregarded as not important, but I'm not so sure that
> that's really true.

What's the complain, Srinath complained that if you try to LOAD
'$libdir/foo' explicitly then it should load this from $libdir path
and it will indeed do so because it will directly call
expand_dynamic_library_name() and in this function if there is '/' it
will replace the $libdir macro with pkglib_path which is right thing
to do so it would behave as expected, am I missing something?

--
Regards,
Dilip Kumar
Google

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2025-09-04 12:50:41 Re: Inconsistent update in the MERGE command
Previous Message Álvaro Herrera 2025-09-04 12:00:29 Re: NOT NULL NOT ENFORCED