Re: Question regarding dynamic_library_path

From: "Thomas Hallgren" <thhal(at)mailblocks(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Question regarding dynamic_library_path
Date: 2004-06-08 17:08:00
Message-ID: thhal-0oIqhAXXzTds8EhLjH92Ne6eTF1bGHA@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> "Thomas Hallgren" <thhal(at)mailblocks(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2004-06-08 17:14:04 Re: Question regarding dynamic_library_path
Previous Message Andrew Dunstan 2004-06-08 16:44:22 Re: cvs head : broken regression tests ?