This is great solution, for me all funcionalities is working, without manual modifications in wp-db.php file. Very clean on WordPress 4.3.
But for me file config.php not work, did never work, than in driver_pgsql.php on function wpsql_select_db i commented line $GLOBALS[‘pg4wp_conn’] = pg_connect($pg_connstr); and instead write same like that $GLOBALS[‘pg4wp_conn’] = pg_connect(‘host=pgsql.server port=5432 dbname=nameOfdb user=nameOfUser password=passOfdbuser’);
thank’s very much for share your resolution!!!! Send for developer!!!