Update DB\Pgsql

This commit is contained in:
Visman 2021-12-11 13:17:52 +07:00
parent 4b469dbf05
commit fac9ef1c8d

View file

@ -490,8 +490,9 @@ class Pgsql
$blockSize = $this->db->query('SELECT current_setting(\'block_size\')')->fetchColumn();
$size *= $blockSize ?: 8192;
$other = [];
$other['pg_database_size'] = $this->db->query('SELECT pg_size_pretty(pg_database_size(current_database()))')->fetchColumn();
$other = [
'pg_database_size' => $this->db->query('SELECT pg_size_pretty(pg_database_size(current_database()))')->fetchColumn(),
];
return [
'db' => 'PostgreSQL (PDO) v.' . $this->db->getAttribute(PDO::ATTR_SERVER_VERSION),