]> git.joonet.de Git - adminer.git/commitdiff
CockroachDB: Disable processlist
authorJakub Vrana <jakub@vrana.cz>
Thu, 13 Mar 2025 11:10:45 +0000 (12:10 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 13 Mar 2025 11:12:44 +0000 (12:12 +0100)
adminer/drivers/pgsql.inc.php

index 5889635ffdd983f407398a12f06fbc728b9954f4..f3bc4c08fdc4d1ec8254923092345f351be493f7 100644 (file)
@@ -952,7 +952,11 @@ AND typelem = 0"
        }
 
        function support($feature) {
-               return preg_match('~^(check|database|table|columns|sql|indexes|descidx|comment|view|' . (min_version(9.3) ? 'materializedview|' : '') . 'scheme|routine|processlist|sequence|trigger|type|variables|drop_col|kill|dump)$~', $feature);
+               global $connection;
+               return ($feature == "processlist"
+                       ? !preg_match('~CockroachDB~', $connection->server_info) // https://github.com/cockroachdb/cockroach/issues/24745
+                       : preg_match('~^(check|database|table|columns|sql|indexes|descidx|comment|view|' . (min_version(9.3) ? 'materializedview|' : '') . 'scheme|routine|sequence|trigger|type|variables|drop_col|kill|dump)$~', $feature)
+               );
        }
 
        function kill_process($val) {