all:
doctrine:
class: sfDoctrineDatabase
param:
dsn: pgsql:host=localhost;dbname=project_name
username: root
password:
Just replace mysql with pgsql.
If you ran into error
Couldn’t locate driver named pgsql
check if pdo_pgsql extenstion is enabled in php.ini. Uncomment this line
extension=php_pdo_pgsql.dll