Commit 5ed566fc authored by Hubert depesz Lubaczewski's avatar Hubert depesz Lubaczewski
Browse files

Properly display what parallel scans are on

Problem was reported on irc by Matthijs van der Vleuten.
parent 69cb9e85
......@@ -188,25 +188,16 @@
<%= $node->type %>
% }
% if ( 'Bitmap Heap Scan' eq $node->type ) {
% if ( $node->type =~ m{^(Parallel )?Bitmap Heap Scan$} ) {
on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% elsif ( 'Bitmap Index Scan' eq $node->type ) {
on <%= $node->scan_on->{ index_name } %>
% }
% elsif ( 'Index Scan' eq $node->type ) {
% elsif ( $node->type =~ m{^(Parallel )?Index (Only )?Scan( Backward)?$} ) {
using <%= $node->scan_on->{ index_name } %> on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% elsif ( 'Index Scan Backward' eq $node->type ) {
using <%= $node->scan_on->{ index_name } %> on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% elsif ( 'Index Only Scan' eq $node->type ) {
using <%= $node->scan_on->{ index_name } %> on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% elsif ( 'Index Only Scan Backward' eq $node->type ) {
using <%= $node->scan_on->{ index_name } %> on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% elsif ( 'Seq Scan' eq $node->type ) {
% elsif ( $node->type =~ m{^(Parallel )?Seq Scan$} ) {
on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% elsif ( ( 'Insert' eq $node->type ) && ( $node->scan_on ) ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment