From: Gilles Darold Date: Thu, 12 Sep 2019 07:18:32 +0000 (+0200) Subject: Translate action WITH into CTE, regression introduced in last release X-Git-Tag: v11.1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecb98ceff08197590edc2db03db7ad1adc53d801;p=pgbadger Translate action WITH into CTE, regression introduced in last release --- diff --git a/pgbadger b/pgbadger index 7e68209..4504cc6 100755 --- a/pgbadger +++ b/pgbadger @@ -15466,6 +15466,7 @@ sub store_queries my $action = uc($1); if ($normalized =~ $action_regex) { $action = uc($1); + $action = 'CTE' if ($action eq 'WITH'); # if this is a copy statement try to find if this is a write or read statement if (($action eq 'copy') && (($normalized =~ /from\s+stdin/i) || ($normalized =~ /from\s+'[^']+'/is))) { $action = 'copy from';