PHP 5.2.8 is refusing to load php_pgsql.dll, with the following error:
php_pgsql.dll
Warning: PHP Startup: Unable to load dynamic library \'D:\\PHP\\ext\\
I found this to work for me:
After installation of PostgreSQL, you need to copy libpq.dll from wamp\bin\php\phpX.X.X to wamp\bin\apache\Apache2.2*\bin. And restart the Wampserver.
libpq.dll
wamp\bin\php\phpX.X.X
wamp\bin\apache\Apache2.2*\bin