>
> ==> ldd /usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so
> linux-vdso.so.1 => (0x00007fffddd8f000)
> libpq.so.5 => /usr/lib64/perl5/CORE/libpq.so.5 (0x00007f5ecdbd6000)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I may be wrong, but is the above path in the LD_LIBRARY_PATH. Why do you expect it to be picked auto magically.