Re: [HACKERS] loading libraries on Postmaster startup

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [HACKERS] loading libraries on Postmaster startup
Дата
Msg-id
Pine.LNX.4.44.0302232059280.1618-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
Re: [HACKERS] loading libraries on Postmaster startup Bruce Momjian <pgman@candle.pha.pa.us>
Joe Conway writes:

> Are you referring to LD_PRELOAD? As I said before, it doesn't help
> preloading the library if I can't also run an initialization function.
> Do you know a way to do that? If so, is it portable?

With GCC you can use __attribute__((constructor)) after the initialization
function.  It's pretty ugly to do right, admittedly.

-- 
Peter Eisentraut   peter_e@gmx.net

В списке pgsql-patches по дате отправления
От: Joe Conway
Дата:
От: John Cochran
Дата:
FAQ