add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
QUERY PLAN
Merge Full Join (cost=317.01..711.38 rows=25538 width=16)
  Merge Cond: (b.bcol1 = c.ccol1)
  -> Sort (cost=158.51..164.16 rows=2260 width=8)
        Sort Key: b.bcol1
        -> Seq Scan on tableb b (cost=0.00..32.60 rows=2260 width=8)
  -> Sort (cost=158.51..164.16 rows=2260 width=8)
        Sort Key: c.ccol1
        -> Seq Scan on tablec c (cost=0.00..32.60 rows=2260 width=8)
QUERY PLAN
Merge Left Join (cost=475.52..5209.87 rows=288579 width=24)
  Merge Cond: (tablea.acol1 = tableb.bcol1)
  -> Sort (cost=158.51..164.16 rows=2260 width=8)
        Sort Key: tablea.acol1
        -> Seq Scan on tablea (cost=0.00..32.60 rows=2260 width=8)
  -> Materialize (cost=317.01..775.23 rows=25538 width=16)
        -> Merge Left Join (cost=317.01..711.38 rows=25538 width=16)
              Merge Cond: (tableb.bcol1 = tablec.ccol1)
              -> Sort (cost=158.51..164.16 rows=2260 width=8)
                    Sort Key: tableb.bcol1
                    -> Seq Scan on tableb (cost=0.00..32.60 rows=2260 width=8)
              -> Sort (cost=158.51..164.16 rows=2260 width=8)
                    Sort Key: tablec.ccol1
                    -> Seq Scan on tablec (cost=0.00..32.60 rows=2260 width=8)
QUERY PLAN
Merge Left Join (cost=2994.69..7334.68 rows=288579 width=24)
  Merge Cond: (a.acol1 = b.bcol1)
  -> Sort (cost=158.51..164.16 rows=2260 width=8)
        Sort Key: a.acol1
        -> Seq Scan on tablea a (cost=0.00..32.60 rows=2260 width=8)
  -> Sort (cost=2836.19..2900.03 rows=25538 width=16)
        Sort Key: b.bcol1
        -> Merge Full Join (cost=317.01..711.38 rows=25538 width=16)
              Merge Cond: (b.bcol1 = c.ccol1)
              -> Sort (cost=158.51..164.16 rows=2260 width=8)
                    Sort Key: b.bcol1
                    -> Seq Scan on tableb b (cost=0.00..32.60 rows=2260 width=8)
              -> Sort (cost=158.51..164.16 rows=2260 width=8)
                    Sort Key: c.ccol1
                    -> Seq Scan on tablec c (cost=0.00..32.60 rows=2260 width=8)
QUERY PLAN
Merge Left Join (cost=3250.07..7590.06 rows=288579 width=24)
  Merge Cond: (a.acol1 = d.bcol1)
  CTE cte
    -> Merge Full Join (cost=317.01..711.38 rows=25538 width=16)
          Merge Cond: (b.bcol1 = c.ccol1)
          -> Sort (cost=158.51..164.16 rows=2260 width=8)
                Sort Key: b.bcol1
                -> Seq Scan on tableb b (cost=0.00..32.60 rows=2260 width=8)
          -> Sort (cost=158.51..164.16 rows=2260 width=8)
                Sort Key: c.ccol1
                -> Seq Scan on tablec c (cost=0.00..32.60 rows=2260 width=8)
  -> Sort (cost=158.51..164.16 rows=2260 width=8)
        Sort Key: a.acol1
        -> Seq Scan on tablea a (cost=0.00..32.60 rows=2260 width=8)
  -> Sort (cost=2380.19..2444.03 rows=25538 width=16)
        Sort Key: d.bcol1
        -> CTE Scan on cte d (cost=0.00..510.76 rows=25538 width=16)