]> granicus.if.org Git - pgbadger/commitdiff
Fix unregistred client hostname with default pattern. Thanks to Eric S. Lucinger...
authorDarold Gilles <gilles@darold.net>
Sat, 15 Aug 2015 08:33:58 +0000 (19:33 +1100)
committerDarold Gilles <gilles@darold.net>
Sat, 15 Aug 2015 08:33:58 +0000 (19:33 +1100)
pgbadger

index f6672c9f69f302e94aebbe0c10c2fcdeb2321cdf..29bdaa0b729c2c0650e531c470f9defd321438ba 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -10626,7 +10626,7 @@ sub set_current_infos
                $cur_info{$t_pid}{loglevel}  = $prefix_vars{'t_loglevel'};
                $cur_info{$t_pid}{dbname}    = $prefix_vars{'t_dbname'};
                $cur_info{$t_pid}{dbuser}    = $prefix_vars{'t_dbuser'};
-               $cur_info{$t_pid}{dbclient}  = $prefix_vars{'t_client'};
+               $cur_info{$t_pid}{dbclient}  = $prefix_vars{'t_client'} ||  $prefix_vars{'t_dbclient'};
                $cur_info{$t_pid}{dbappname} = $prefix_vars{'t_appname'};
                $cur_info{$t_pid}{date}      = $prefix_vars{'t_date'};
                $cur_info{$t_pid}{bind}      = $prefix_vars{'t_bind'};