Re: Re-thing PG_MODULE_MAGIC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re-thing PG_MODULE_MAGIC
Date: 2006-06-16 14:23:23
Message-ID: 16640.1150467803@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout <kleptog(at)svana(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-06-16 14:51:10 Re: ident auth vs. encrypting ident daemons
Previous Message Martijn van Oosterhout 2006-06-16 14:17:27 Re: Re-thing PG_MODULE_MAGIC