Update DB\Pgsql
This commit is contained in:
parent
d2ec24e6b9
commit
ef101cc85a
1 changed files with 6 additions and 5 deletions
|
@ -489,8 +489,9 @@ class Pgsql
|
|||
|
||||
$other = [
|
||||
'pg_database_size' => $this->db->query('SELECT pg_size_pretty(pg_database_size(current_database()))')->fetchColumn(),
|
||||
];
|
||||
|
||||
]
|
||||
+ $this->db->query('SELECT name, setting FROM pg_settings WHERE category ~ \'Locale\'')->fetchAll(PDO::FETCH_KEY_PAIR);
|
||||
/*
|
||||
$stmt = $this->db->query('SHOW ALL');
|
||||
|
||||
while ($row = $stmt->fetch()) {
|
||||
|
@ -500,8 +501,8 @@ class Pgsql
|
|||
$other[$row['name']] = $row['setting'];
|
||||
}
|
||||
}
|
||||
|
||||
// $blockSize = $this->db->query('SELECT current_setting(\'block_size\')')->fetchColumn();
|
||||
*/
|
||||
$blockSize = $this->db->query('SELECT current_setting(\'block_size\')')->fetchColumn();
|
||||
$size *= $blockSize ?: 8192;
|
||||
|
||||
return [
|
||||
|
@ -509,7 +510,7 @@ class Pgsql
|
|||
'tables' => (string) $tables,
|
||||
'records' => $records,
|
||||
'size' => $size,
|
||||
'server info' => $this->db->getAttribute(PDO::ATTR_SERVER_INFO),
|
||||
// 'server info' => $this->db->getAttribute(PDO::ATTR_SERVER_INFO),
|
||||
] + $other;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue