From bde0e6a025c78727d1566d98b5aff4077ad52f93 Mon Sep 17 00:00:00 2001 From: Nick Carboni Date: Thu, 7 Feb 2019 15:04:33 -0500 Subject: [PATCH] Replace waiting column with wait_event_type and wait_event The pg_stat_activity view changed in PG 9.6 Fixes #13200 --- lib/extensions/ar_adapter/ar_dba.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/extensions/ar_adapter/ar_dba.rb b/lib/extensions/ar_adapter/ar_dba.rb index e44024a49122..c0deade972f9 100644 --- a/lib/extensions/ar_adapter/ar_dba.rb +++ b/lib/extensions/ar_adapter/ar_dba.rb @@ -24,7 +24,8 @@ def client_connections SELECT client_addr AS client_address , datname AS database , pid AS spid - , waiting AS is_waiting + , wait_event_type + , wait_event , query FROM pg_stat_activity ORDER BY 1, 2