1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

PostgreSQL: Display description of system variables

This commit is contained in:
Jakub Vrana
2025-03-18 16:00:21 +01:00
parent 8613f97948
commit 3fb6cac361
6 changed files with 29 additions and 21 deletions

View File

@@ -718,8 +718,9 @@ if (isset($_GET["sqlite"])) {
foreach (get_rows("PRAGMA pragma_list") as $row) {
$name = $row["name"];
if ($name != "pragma_list" && $name != "compile_options") {
$return[$name] = array($name, '');
foreach (get_rows("PRAGMA $name") as $row) {
$return[$name] .= implode(", ", $row) . "\n";
$return[$name][1] .= implode(", ", $row) . "\n";
}
}
}
@@ -729,8 +730,7 @@ if (isset($_GET["sqlite"])) {
function show_status() {
$return = array();
foreach (get_vals("PRAGMA compile_options") as $option) {
list($key, $val) = explode("=", $option, 2);
$return[$key] = $val;
$return[] = explode("=", $option, 2);
}
return $return;
}