Re: Re-thing PG_MODULE_MAGIC - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re-thing PG_MODULE_MAGIC
Date
Msg-id 16640.1150467803@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re-thing PG_MODULE_MAGIC  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> However, thinking about it, what they're doing can't possibly work. To
> override malloc/free, you need to load the library *before* the C
> library. Having the postmaster do it after startup is way too late.

Yeah, I was wondering about that too.  At the very least you'd expect
some odd behaviors with memory malloc'd before the load vs memory
malloc'd after.  Much more likely, though, it just fails to do anything
at all.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Re-thing PG_MODULE_MAGIC
Next
From: Andrew Dunstan
Date:
Subject: Re: ident auth vs. encrypting ident daemons