Skip to content

Commit

Permalink
Fix process list in PostgreSQL 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Oct 20, 2012
1 parent 7015fd9 commit 0408c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adminer/drivers/pgsql.inc.php
Expand Up @@ -574,7 +574,8 @@ function show_variables() {
}

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() {
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Expand Up @@ -4,6 +4,7 @@ Don't select row on double click
Shorten values in varchar fields
Display table default values on wide screens
Fix switching language on first load
PostgreSQL: Fix process list in version 9.2

Adminer 3.6.1 (released 2012-09-17):
Fix compiled version on PHP with multibyte support
Expand Down

0 comments on commit 0408c21

Please sign in to comment.