|
@@ -489,8 +489,9 @@ class Pgsql
|
|
|
|
|
|
$other = [
|
|
$other = [
|
|
'pg_database_size' => $this->db->query('SELECT pg_size_pretty(pg_database_size(current_database()))')->fetchColumn(),
|
|
'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');
|
|
$stmt = $this->db->query('SHOW ALL');
|
|
|
|
|
|
while ($row = $stmt->fetch()) {
|
|
while ($row = $stmt->fetch()) {
|
|
@@ -500,8 +501,8 @@ class Pgsql
|
|
$other[$row['name']] = $row['setting'];
|
|
$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;
|
|
$size *= $blockSize ?: 8192;
|
|
|
|
|
|
return [
|
|
return [
|
|
@@ -509,7 +510,7 @@ class Pgsql
|
|
'tables' => (string) $tables,
|
|
'tables' => (string) $tables,
|
|
'records' => $records,
|
|
'records' => $records,
|
|
'size' => $size,
|
|
'size' => $size,
|
|
- 'server info' => $this->db->getAttribute(PDO::ATTR_SERVER_INFO),
|
|
|
|
|
|
+// 'server info' => $this->db->getAttribute(PDO::ATTR_SERVER_INFO),
|
|
] + $other;
|
|
] + $other;
|
|
}
|
|
}
|
|
|
|
|