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  (Joe Conway <mail@joeconway.com>)
Список pgsql-patches
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
Дата:
Сообщение: Re: [HACKERS] loading libraries on Postmaster startup
Следующее
От: John Cochran
Дата:
Сообщение: Re: [HACKERS] regression failure - horology