Skip to content
Browse files

Fix process list in PostgreSQL 9.2

  • Loading branch information...
1 parent 7015fd9 commit 0408c21d070cfb5436798d26a1396d6ee042faf8 @vrana committed Oct 20, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −1 adminer/drivers/pgsql.inc.php
  2. +1 −0 changes.txt
View
3 adminer/drivers/pgsql.inc.php
@@ -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() {
View
1 changes.txt
@@ -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

0 comments on commit 0408c21

Please sign in to comment.
Something went wrong with that request. Please try again.