Försök att ställa in,
Mer information:https://www.codeigniter.com/user_guide/database/configuration. html
EDIT: Prova den här konfigurationen för PDO
i postgres
$db['default']['hostname'] = 'pgsql:host=localhost;dbname=yourdb'; //set host
$db['default']['username'] = 'your username'; //set username
$db['default']['password'] = 'your password'; //set password
$db['default']['database'] = 'your database'; //set databse
$db['default']['dbdriver'] = 'pdo'; //set driver here