"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> ERROR: incompatible library "/home/kgrittn/postgresql-8.4.0/src/test/regress/refint.so": version mismatch
> DETAIL: Server is version 8.4, library is version 8.3.
That's just bizarre. Could you try strace'ing the backend while doing
that CREATE FUNCTION command (or it should be enough to just try to LOAD
that file by name)? That should provide some evidence about what's
happening. It seems like the dynamic linker must be ignoring the file
it's told to load and loading something else instead, but that's weird
enough that I want strace proof of it...
regards, tom lane