Skip site navigation (1) Skip section navigation (2)

[PATCH] Magic block for modules

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: [PATCH] Magic block for modules
Date: 2006-05-07 21:17:05
Message-ID: (view raw or whole thread)
Lists: pgsql-hackerspgsql-patches
This implements a proposal made last november:

Basically, it tries to catch people loading modules which belong to the
wrong version or have had certain constants changed, or architechture
mismatches. It's a bit more fine grained though, it currently catches
changes in any of the following:

the size of 8 basic C types
The compiler used (only brand, not version)

It may be overkill, but better safe than sorry. The only one I'm
ambivalent about is the first one. We don't require a recompile between
minor version changes, or do we?

All it requires is to include the header "pgmagic.h" and to put
somewhere in their source:


Currently, modules without a magic block are merely logged at LOG
level. This needs some discussion though.

Have a nice day,
Martijn van Oosterhout   <kleptog(at)svana(dot)org>
> From each according to his ability. To each according to his ability to litigate.


pgsql-hackers by date

Next:From: Tom LaneDate: 2006-05-08 00:21:43
Subject: Re: [PATCH] Magic block for modules
Previous:From: Thomas HallgrenDate: 2006-05-07 20:48:22
Subject: Re: Fwd: [pgsql-hackers-win32] Build with Visual Studio & MSVC

pgsql-patches by date

Next:From: Tom LaneDate: 2006-05-08 00:11:17
Subject: Re: Page at a time index scan
Previous:From: Sven SuursohoDate: 2006-05-07 17:44:41
Subject: Re: plpython improvements

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group