]> granicus.if.org Git - pgbadger/commitdiff
Fix parsing of auto_explain.
authorGilles Darold <gilles.darold@lzlabs.com>
Tue, 21 May 2019 09:07:25 +0000 (11:07 +0200)
committerGilles Darold <gilles.darold@lzlabs.com>
Tue, 21 May 2019 09:07:25 +0000 (11:07 +0200)
pgbadger

index b714b274f790b20d614a07594eb237c85da9017c..be27268b70f1ef06d5e93aafd7ce905282503dd7 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -14092,7 +14092,7 @@ sub store_queries
                                        $cur_info{$t_pid}{query} =~ s/"$//s;
                                        $cur_info{$t_pid}{plan} .= "\n";
                                # TEXT format
-                               } elsif ($cur_info{$t_pid}{query} =~ s/Query Text: ([^"])/$1/s) {
+                               } elsif ($cur_info{$t_pid}{query} =~ s/Query Text: ([^"]+)/$1/s) {
                                        $cur_info{$t_pid}{plan} .= "\n";
                                # JSON format
                                } elsif ($cur_info{$t_pid}{query} =~ s/.*"Query Text": "//s) {