Re: [HACKERS] loading libraries on Postmaster startup - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: [HACKERS] loading libraries on Postmaster startup
Date
Msg-id Pine.LNX.4.44.0302232059280.1618-100000@peter.localdomain
Whole thread Raw
In response to Re: [HACKERS] loading libraries on Postmaster startup  (Joe Conway <mail@joeconway.com>)
List 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 by date:

Previous
From: Joe Conway
Date:
Subject: Re: [HACKERS] loading libraries on Postmaster startup
Next
From: John Cochran
Date:
Subject: Re: [HACKERS] regression failure - horology