title: Implementing Postgresql with Grocery-Crud Invalid DB Driver Error
body: <p>I have a bit of experience with code igniter and grocery crud as I have implemented a working site using MySQLi. But now I'm running into quite a lot of issues trying to set up a site using Postgresql.
  My database.php config file looks like</p>
  <pre><code>$db['default'] = array(
      'dsn' =&gt; 'pgsql:host=localhost;dbname=DBNAME',
      'hostname' =&gt; 'localhost',
      'username' =&gt; 'postgreusername',
      'password' =&gt; 'password',
      'database' =&gt; 'DBNAME',
      'dbdriver' =&gt; 'pdo_pgsql',
      'dbprefix' =&gt; '',
      'pconnect' =&gt; FALSE,
      'db_debug' =&gt; (ENVIRONMENT !== 'production'),
      'cache_on' =&gt; FALSE,
      'cachedir' =&gt; '',
      'char_set' =&gt; 'utf8',
      'dbcollat' =&gt; 'utf8_general_ci',
      'swap_pre' =&gt; '',
      'encrypt' =&gt; FALSE,
      'compress' =&gt; FALSE,
      'stricton' =&gt; FALSE,
      'failover' =&gt; array(),
      'save_queries' =&gt; TRUE,
      'port'=&gt; 5432
  );
  </code></pre>
  <p>I've also tried using pgsql as the dbdriver, but I keep getting and invalid DB Driver error. I have verified that pgsql and pdo_pgsql are installed and enabled by using</p>
  <pre><code>echo get_loaded_extensions();
  </code></pre>
  <p>And both pdo_pgsql and pgsql are listed.
  Trying to use psql also gives me a DBDriver error, and it makes no difference if the dsn is commented out.
  Are pdo_pgsql/pgsql the correct dbdrivers to be using to intergrate Postgre with Codeigniter or is there another driver I should look into?</p>