mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Fix process list in PostgreSQL 9.2
This commit is contained in:
@@ -574,7 +574,8 @@ AND typelem = 0"
|
||||
}
|
||||
|
||||
function process_list() {
|
||||
return get_rows("SELECT * FROM pg_stat_activity ORDER BY procpid");
|
||||
global $connection;
|
||||
return get_rows("SELECT * FROM pg_stat_activity ORDER BY " . ($connection->server_info < 9.2 ? "procpid" : "pid"));
|
||||
}
|
||||
|
||||
function show_status() {
|
||||
|
Reference in New Issue
Block a user