1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2024-11-24 08:42:27 +02:00

Not all foreign scans have "ON" clause

Example: https://explain.depesz.com/s/0FlR
Reported by MatheusOl on irc
This commit is contained in:
Hubert depesz Lubaczewski 2018-04-27 17:13:40 +02:00
parent 5ed566fce6
commit c409a2ad48

View File

@ -210,7 +210,9 @@
on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %> on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% } % }
% elsif ( 'Foreign Scan' eq $node->type ) { % elsif ( 'Foreign Scan' eq $node->type ) {
% if ( defined $node->scan_on ) {
on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %> on <%= $node->scan_on->{ table_name } %> <%= $node->scan_on->{ table_alias } || '' %>
% }
% } % }
% elsif ( 'CTE Scan' eq $node->type ) { % elsif ( 'CTE Scan' eq $node->type ) {
on <%= $node->scan_on->{ cte_name } %> <%= $node->scan_on->{ cte_alias } || '' %> on <%= $node->scan_on->{ cte_name } %> <%= $node->scan_on->{ cte_alias } || '' %>