getDbType() === 'pgsql'; } public function hasPgExtension($name) { $db = $this->db(); $query = $db->select()->from( array('e' => 'pg_extension'), array('cnt' => 'COUNT(*)') )->where('extname = ?', $name); return (int) $db->fetchOne($query) === 1; } }