diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index f1454805a088e61f2886b1f43b5a71f52223329d..c78654de957c4a327309313e38a2ee7be3dd55fc 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -134,8 +134,8 @@ class Setup {
 				'name' => 'MySQL/MariaDB'
 			),
 			'pgsql' => array(
-				'type' => 'function',
-				'call' => 'pg_connect',
+				'type' => 'pdo',
+				'call' => 'pgsql',
 				'name' => 'PostgreSQL'
 			),
 			'oci' => array(