1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-02-15 14:03:19 +02:00

Fix display of Index Only Scans

New Pg::Explain version (0.67) splits them into parts, so it has to be
re-assembled for display
This commit is contained in:
Hubert depesz Lubaczewski 2013-05-25 00:36:52 +02:00
parent 579d9aea26
commit bb7242c0fe

View File

@ -160,6 +160,12 @@
% 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 ) {
on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }