Fabien COELHO <coe...@cri.ensmp.fr> writes: > A possible trick is to add ccp flags such as: -Dexit=exit_BAD > -Dabort=abort_BAD.
Not really going to work, at least not without a lot of fragile kluges, because the main problem here is to prevent libpq from *indirectly* calling those functions via stuff it imports from src/port or src/common. It's possible that we could make it work by generalizing the policy that "libpq may not call abort/exit" into "no PG shlib may call abort/exit", and then apply the cpp #defines while compiling the xxx_shlib.o variants of those files. This does not seem more attractive than what I proposed, though. regards, tom lane