]> git.joonet.de Git - adminer.git/commitdiff
Fix process list in PostgreSQL 9.2
authorJakub Vrana <jakub@vrana.cz>
Sat, 20 Oct 2012 16:58:56 +0000 (09:58 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sat, 20 Oct 2012 16:58:56 +0000 (09:58 -0700)
adminer/drivers/pgsql.inc.php
changes.txt

index f589a6215e43f00cb12f2f366985995b48c597ec..150c6470892e56692a6cea2a737a260f89153d48 100644 (file)
@@ -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() {
index 474b6f9ae760a35a23c0ee1f6fa9c1fd1d18c891..4f3dc09cf84a757608252ffb7caa4aee51bcb2d5 100644 (file)
@@ -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