Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu
Дата
Msg-id Pine.LNX.4.30.0201211148030.687-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu
Список pgsql-hackers
Bruce Momjian writes:

> Interesting LAZY has better efficiency.  Seems we should just keep LAZY
> as our default for future releases and tell people if they link to bad
> object files, they should expect trouble.

In practice, we load object files only if we call the function, so symbol
resolution happens either way briefly after loading.  RTLD_NOW includes
some overhead because it checks symbols that we might not end up needing,
but for the typical PostgreSQL extension module, that should really not
matter.

-- 
Peter Eisentraut   peter_e@gmx.net



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pltlc and pltlcu problems
Следующее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: pltlc and pltlcu problems