I'm used to Codeigniter with mysql(i) but I have a customer who needs PostgreSQL to be connected. I tried the usual settings and added the specific port for Postgre but I get this error:
Unable to connect to your database server using the provided settings.

My code is simply this:
$active_group = (ENVIRONMENT == 'development') ? 'offline' : 'online';
//Set to 'development' in file: index.php
$active_record = TRUE;
/**
* OFFLINE CONFIGURATION
*/
$db['offline']['hostname'] = 'localhost';
$db['offline']['username'] = 'root';
$db['offline']['password'] = 'root';
$db['offline']['database'] = 'testing';
$db['offline']['dbdriver'] = 'postgre';
$db['offline']['dbprefix'] = '';
$db['offline']['pconnect'] = TRUE;
$db['offline']['db_debug'] = TRUE;
$db['offline']['cache_on'] = FALSE;
$db['offline']['cachedir'] = '';
$db['offline']['char_set'] = 'utf8';
$db['offline']['dbcollat'] = 'utf8_general_ci';
$db['offline']['swap_pre'] = '';
$db['offline']['autoinit'] = TRUE;
$db['offline']['stricton'] = FALSE;
$db['offline']['port'] = 5432;
/**
* ONLINE CONFIGURATION
*/
$db['online']['hostname'] = '?';
$db['online']['username'] = '?';
$db['online']['password'] = '?';
$db['online']['database' ....
//Continues with online configuration...
Now I'm using the offline configuration for now and this is not working showing the error above. I did try to set "db_debug" to FALSE and that works but I feel like is just skimping the point and I'll never get database error shown which I need in offline mode...
I have pgAdmin open and is connected to the same database and is working ok. Any hint on this?