I, too, am experiencing a similar problem -- I can't get pdo_pgsql or pgsql to load.
PHP 5.2.6, Apache 2.2.8, PostgreSQL 8.3.1 on WinXP (fully patched). PHP, Apache, and Postgres all appear to be functioning properly, individually. (And Windows, well... it's status quo! 😉 )
As a test just to see if I had everything wired up correctly, I tried loading MSSQL and that appears to have worked, and after reading this thread, I decided to try MySQL and it appears to have failed.
Given the following sample portion of my php.ini:
extension_dir = "C:\Program Files\php\ext"
extension=php_pdo.dll
extension=php_pgsql.dll
extension=php_pdo_pgsql.dll
extension=php_mssql.dll
extension=php_pdo_mssql.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
the only extensions that are shown by get_loaded_extensions() are PDO, mssql, and pdo_mssql. Ultimately I want to use PDO/pdo_pgsql but I had pgsql thrown in there too as I thought it might be a prerequisite; now I realize it's not, but just kept it included for troubleshooting purposes.
A couple asides:
Thanks in advance for any help! I would really like to get this running ASAP. (I have been enjoying a week's vacation from MS development tools and would really like that to continue!) Even if someone can confirm that this is a known bug and nothing that can be fixed without PHP-source-level intervention, that would help me to progress with my projects. Thanks!