Re: Question regarding dynamic_library_path - Mailing list pgsql-hackers

From Thomas Hallgren
Subject Re: Question regarding dynamic_library_path
Date
Msg-id thhal-0oIqhAXXzTds8EhLjH92Ne6eTF1bGHA@mailblocks.com
Whole thread Raw
In response to Question regarding dynamic_library_path  ("Thomas Hallgren" <thhal@mailblocks.com>)
List pgsql-hackers
> "Thomas Hallgren" <thhal@mailblocks.com> writes:
> > Why does postgres maintain a loader logic of its own? I can understand
that
> > the dynamic_library_path is necessary in order to configure everything
in
> > one single place. But why not just merge it with the LD_LIBRARY_PATH (or
> > PATH on Windows) and then let dlopen do the rest using a stripped
filename?
>
> What LD_LIBRARY_PATH?  The above statement is so full of system-specific
> assumptions that it seems hopeless.
>
> regards, tom lane
>
The LD_LIBRARY_PATH or PATH depending on system (Posix or Windows) that is
effective when the dlopen function is called. All OS'es where shared
libraries are possible have something similar.

The general idea is to let the OS find the shared library rather than have
the backend do it by itself. There's a flaw in the current design. IMHO, it
would be a good thing to improve it.

regards,

Thomas Hallgren




pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: cvs head : broken regression tests ?
Next
From: "Thomas Hallgren"
Date:
Subject: Re: Question regarding dynamic_library_path