Обсуждение: shared_preload_libraries path

Поиск
Список
Период
Сортировка

shared_preload_libraries path

От
Magnus Hagander
Дата:
Would i make sense to have a postgresql.conf parameter that would add
to LD_LIBRARY_PATH when loading libraries from
shared_preload_libraries (and other library loads). To make it
possible to configure it without having to  mess around with the
operating system configuration? Or is that too much reimplementing OS
functionality?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


Re: shared_preload_libraries path

От
Peter Geoghegan
Дата:
On 24 May 2012 13:09, Magnus Hagander <magnus@hagander.net> wrote:
> Would i make sense to have a postgresql.conf parameter that would add
> to LD_LIBRARY_PATH when loading libraries from
> shared_preload_libraries (and other library loads). To make it
> possible to configure it without having to  mess around with the
> operating system configuration? Or is that too much reimplementing OS
> functionality?

-1, I'm afraid.

I found this blog post to be insightful:

https://blogs.oracle.com/rie/entry/tt_ld_library_path_tt

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


Re: shared_preload_libraries path

От
Peter Geoghegan
Дата:
On 24 May 2012 13:22, Peter Geoghegan <peter@2ndquadrant.com> wrote:
> I found this blog post to be insightful:
>
> https://blogs.oracle.com/rie/entry/tt_ld_library_path_tt

This one might be more useful, and itself refers to the
aforementioned, earlier post:

https://blogs.oracle.com/ali/entry/avoiding_ld_library_path_the

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


Re: shared_preload_libraries path

От
Tom Lane
Дата:
Peter Geoghegan <peter@2ndquadrant.com> writes:
> On 24 May 2012 13:09, Magnus Hagander <magnus@hagander.net> wrote:
>> Would i make sense to have a postgresql.conf parameter that would add
>> to LD_LIBRARY_PATH when loading libraries from
>> shared_preload_libraries (and other library loads). To make it
>> possible to configure it without having to mess around with the
>> operating system configuration? Or is that too much reimplementing OS
>> functionality?

> -1, I'm afraid.

I think the same.  Aside from the problems Peter points out, there are
too many different ways to spell that variable name on different
platforms.
        regards, tom lane


Re: shared_preload_libraries path

От
Peter Eisentraut
Дата:
On tor, 2012-05-24 at 14:09 +0200, Magnus Hagander wrote:
> Would i make sense to have a postgresql.conf parameter that would add
> to LD_LIBRARY_PATH when loading libraries from
> shared_preload_libraries (and other library loads).

Well, you could write a library that sets it in its init function, and
load that before the library that needs it set. :-)



Re: shared_preload_libraries path

От
Magnus Hagander
Дата:
On Thu, May 24, 2012 at 7:58 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
> On tor, 2012-05-24 at 14:09 +0200, Magnus Hagander wrote:
>> Would i make sense to have a postgresql.conf parameter that would add
>> to LD_LIBRARY_PATH when loading libraries from
>> shared_preload_libraries (and other library loads).
>
> Well, you could write a library that sets it in its init function, and
> load that before the library that needs it set. :-)

:-) What's life without workarounds, eh? ;)


--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/