Maybe you should check that you're linking against the libraries you think you are. For example, run ldd over both apache and the pgsql module and check they have similar ideas as to which libraries they're using. Make sure you don't have multiple copies of postgres installed, or multiple copies of any libraries it might use... Hope this helps,
Thanks everybody for the help. I lost 2-3 days trying and I went back go 8.0.8 in order to be able to work, but I'll make the suggested test the following weekend.
Regards, Iv.