mirror of
https://github.com/vrana/adminer.git
synced 2026-03-22 20:41:32 +01:00
improved kill command support for MySQL and initial support for PgSQL
This commit is contained in:
committed by
Jakub Vrana
parent
c5a7174a2a
commit
3289eca040
@@ -631,9 +631,19 @@ AND typelem = 0"
|
||||
|
||||
function support($feature) {
|
||||
global $connection;
|
||||
return preg_match('~^(database|table|columns|sql|indexes|comment|view|' . ($connection->server_info >= 9.3 ? 'materializedview|' : '') . 'scheme|processlist|sequence|trigger|type|variables|drop_col)$~', $feature); //! routine|
|
||||
return preg_match('~^(database|table|columns|sql|indexes|comment|view|' . ($connection->server_info >= 9.3 ? 'materializedview|' : '') . 'scheme|processlist|sequence|trigger|type|variables|drop_col|kill)$~', $feature); //! routine|
|
||||
}
|
||||
|
||||
function kill_process($val) {
|
||||
return queries("SELECT pg_terminate_backend(" . number($val).")");
|
||||
}
|
||||
|
||||
function max_connections() {
|
||||
global $connection;
|
||||
return $connection->result("SHOW max_connections");
|
||||
}
|
||||
|
||||
$id_name = "pid";
|
||||
$jush = "pgsql";
|
||||
$types = array();
|
||||
$structured_types = array();
|
||||
|
||||
Reference in New Issue
Block a user