Coba atur,
Info Lebih Lanjut:https://www.codeigniter.com/user_guide/database/configuration. html
EDIT: Coba konfigurasi ini untuk PDO
di 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