As I see it, the problem is "undefined function", not authentication or connection errors.
I have the same problem (RedHat 9).
php-pgsql is installed.
php_info shows '--with-pgsql=shared'
(so recompiling seems unnecessary.)
/etc/php.d/pgsql.ini has in it:
; Enable pgsql extension module
extension=pgsql.so
The following files exist:
/usr/lib/php4/pgsql.so
/usr/lib/pgsql/plpgsql.so
This is a production web site that used to work before upgrading to RH9. HELP!!!!!!!