explain.depesz.com

PostgreSQL's explain analyze made readable

Result: dZMEy

Settings
# exclusive inclusive rows x rows loops node
1. 0.221 3,919.459 ↓ 1.6 33 1

GroupAggregate (cost=43,457.10..43,459.10 rows=20 width=834) (actual time=3,919.281..3,919.459 rows=33 loops=1)

  • Group Key: "*SELECT* 1".cmpcod, "*SELECT* 1".arpcod, "*SELECT* 1".fltcaridr, "*SELECT* 1".fltnum, "*SELECT* 1".fltseqnum, "*SELECT* 1".fltdat, "*SELECT* 1".legsernum, "*SELECT* 1".fltrou, "*SELECT* 1".fltorg, "*SELECT* 1".fltdst, "*SELECT* 1".flttyp, "*SELECT* 1".fltsta, "*SELECT* 1".acrtyp, "*SELECT* 1".legorg, "*SELECT* 1".fltdatprefix, "*SELECT* 1".expclsflg, "*SELECT* 1".depgte, "*SELECT* 1".deptim, "*SELECT* 1".arvgte
2.          

CTE preadvsmy

3. 0.019 76.628 ↓ 6.0 6 1

GroupAggregate (cost=19,592.51..19,592.55 rows=1 width=74) (actual time=76.618..76.628 rows=6 loops=1)

  • Group Key: malmst_2.cmpcod, trt.fltcaridr, trt.fltnum, trt.fltseqnum, csgdtl.uldnum
4. 0.017 76.609 ↓ 17.0 17 1

Sort (cost=19,592.51..19,592.52 rows=1 width=45) (actual time=76.609..76.609 rows=17 loops=1)

  • Sort Key: trt.fltseqnum, csgdtl.uldnum
  • Sort Method: quicksort Memory: 26kB
5. 0.026 76.592 ↓ 17.0 17 1

Nested Loop (cost=2,488.77..19,592.50 rows=1 width=45) (actual time=11.543..76.592 rows=17 loops=1)

6. 0.000 76.458 ↓ 27.0 27 1

Nested Loop (cost=2,488.49..19,592.20 rows=1 width=52) (actual time=11.529..76.458 rows=27 loops=1)

  • Join Filter: (((csgmst.csgdocnum)::text = (csgdtl.csgdocnum)::text) AND (csgmst.csgseqnum = csgdtl.csgseqnum) AND ((csgmst.poacod)::text = (csgdtl.poacod)::text))
7. 5.338 76.350 ↓ 27.0 27 1

Gather (cost=2,488.07..19,591.71 rows=1 width=121) (actual time=11.504..76.350 rows=27 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
8. 12.788 71.012 ↓ 9.0 9 3 / 3

Hash Join (cost=1,488.07..18,591.61 rows=1 width=121) (actual time=13.411..71.012 rows=9 loops=3)

  • Hash Cond: (((malmst_2.csgdocnum)::text = (csgmst.csgdocnum)::text) AND (malmst_2.csgseqnum = csgmst.csgseqnum) AND ((malmst_2.poacod)::text = (csgmst.poacod)::text))
9. 47.936 47.936 ↑ 1.2 115,151 3 / 3

Parallel Seq Scan on malmst malmst_2 (cost=0.00..15,484.23 rows=143,938 width=45) (actual time=0.004..47.936 rows=115,151 loops=3)

  • Filter: ((cmpcod)::text = 'AA'::text)
10. 0.008 10.288 ↓ 13.0 13 3 / 3

Hash (cost=1,488.06..1,488.06 rows=1 width=76) (actual time=10.288..10.288 rows=13 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
11. 0.073 10.280 ↓ 13.0 13 3 / 3

Hash Join (cost=785.63..1,488.06 rows=1 width=76) (actual time=5.926..10.280 rows=13 loops=3)

  • Hash Cond: (((trt.csgdocnum)::text = (csgmst.csgdocnum)::text) AND (trt.csgseqnum = csgmst.csgseqnum) AND ((trt.poacod)::text = (csgmst.poacod)::text))
12. 4.389 4.389 ↓ 1.6 13 3 / 3

Seq Scan on malcsgrtg trt (cost=0.00..702.30 rows=8 width=50) (actual time=0.047..4.389 rows=13 loops=3)

  • Filter: (((cmpcod)::text = 'AA'::text) AND (fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text))
  • Rows Removed by Filter: 22061
13. 3.382 5.818 ↑ 1.0 13,521 3 / 3

Hash (cost=549.01..549.01 rows=13,521 width=29) (actual time=5.818..5.818 rows=13,521 loops=3)

  • Buckets: 16384 Batches: 1 Memory Usage: 937kB
14. 2.436 2.436 ↑ 1.0 13,521 3 / 3

Seq Scan on malcsgmst csgmst (cost=0.00..549.01 rows=13,521 width=29) (actual time=0.009..2.436 rows=13,521 loops=3)

  • Filter: ((cmpcod)::text = 'AA'::text)
15. 0.135 0.135 ↑ 1.0 1 27

Index Scan using malcsgdtl_ind2 on malcsgdtl csgdtl (cost=0.42..0.47 rows=1 width=44) (actual time=0.005..0.005 rows=1 loops=27)

  • Index Cond: (((cmpcod)::text = 'AA'::text) AND (malseqnum = malmst_2.malseqnum))
  • Filter: (((malmst_2.csgdocnum)::text = (csgdocnum)::text) AND (malmst_2.csgseqnum = csgseqnum) AND ((malmst_2.poacod)::text = (poacod)::text))
  • Rows Removed by Filter: 0
16. 0.108 0.108 ↑ 1.0 1 27

Index Scan using malexgofcmst_pk on malexgofcmst ofc (cost=0.28..0.30 rows=1 width=10) (actual time=0.004..0.004 rows=1 loops=27)

  • Index Cond: (((cmpcod)::text = 'AA'::text) AND ((exgofccod)::text = (malmst_2.orgexgofc)::text))
  • Filter: ((actflg)::text = 'A'::text)
17. 0.403 3,919.238 ↓ 3.1 63 1

Sort (cost=23,864.55..23,864.60 rows=20 width=834) (actual time=3,919.235..3,919.238 rows=63 loops=1)

  • Sort Key: "*SELECT* 1".cmpcod, "*SELECT* 1".arpcod, "*SELECT* 1".fltcaridr, "*SELECT* 1".fltnum, "*SELECT* 1".fltseqnum, "*SELECT* 1".fltdat, "*SELECT* 1".legsernum, "*SELECT* 1".fltrou, "*SELECT* 1".fltorg, "*SELECT* 1".fltdst, "*SELECT* 1".flttyp, "*SELECT* 1".fltsta, "*SELECT* 1".acrtyp, "*SELECT* 1".legorg, "*SELECT* 1".fltdatprefix, "*SELECT* 1".expclsflg, "*SELECT* 1".depgte, "*SELECT* 1".deptim, "*SELECT* 1".arvgte
  • Sort Method: quicksort Memory: 41kB
18. 0.023 3,918.835 ↓ 3.1 63 1

Append (cost=10,809.21..23,863.92 rows=20 width=834) (actual time=152.760..3,918.835 rows=63 loops=1)

19. 0.001 11.031 ↓ 0.0 0 1

Subquery Scan on *SELECT* 1 (cost=10,809.21..10,809.84 rows=7 width=374) (actual time=11.031..11.031 rows=0 loops=1)

20. 0.000 11.030 ↓ 0.0 0 1

GroupAggregate (cost=10,809.21..10,809.75 rows=7 width=359) (actual time=11.030..11.030 rows=0 loops=1)

  • Group Key: fltmst.cmpcod, malflt.arpcod, fltmst.fltcaridr, fltmst.fltnum, fltmst.fltseqnum, malflt.legsernum, fltleg.acrtyp, fltleg.legorg, (COALESCE(malflt.expclsflg, 'N'::character varying)), fltleg.depgte, fltleg.arvgte, fltcon.connum, ((substr((fltcon.connum)::text, 1, 3))::character varying), (COALESCE(fltleg.atd, fltleg.etd, fltleg.std)), (CASE WHEN (fltleg.atd IS NOT NULL) THEN 'A'::text ELSE CASE WHEN (fltleg.etd IS NOT NULL) THEN 'E'::text ELSE CASE WHEN (fltleg.std IS NOT NULL) THEN 'S'::text ELSE ''::text END END END)
21. 0.016 11.030 ↓ 0.0 0 1

Sort (cost=10,809.21..10,809.23 rows=7 width=798) (actual time=11.030..11.030 rows=0 loops=1)

  • Sort Key: fltmst.fltseqnum, malflt.legsernum, fltleg.acrtyp, (COALESCE(malflt.expclsflg, 'N'::character varying)), fltleg.depgte, fltleg.arvgte, fltcon.connum, ((substr((fltcon.connum)::text, 1, 3))::character varying), (COALESCE(fltleg.atd, fltleg.etd, fltleg.std)), (CASE WHEN (fltleg.atd IS NOT NULL) THEN 'A'::text ELSE CASE WHEN (fltleg.etd IS NOT NULL) THEN 'E'::text ELSE CASE WHEN (fltleg.std IS NOT NULL) THEN 'S'::text ELSE ''::text END END END)
  • Sort Method: quicksort Memory: 25kB
22. 0.001 11.014 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.40..10,809.11 rows=7 width=798) (actual time=11.014..11.014 rows=0 loops=1)

23. 0.000 11.013 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.98..10,777.81 rows=7 width=720) (actual time=11.013..11.013 rows=0 loops=1)

  • Join Filter: (((segdtl.cmpcod)::text = (preadv.cmpcod)::text) AND (segdtl.fltcaridr = preadv.fltcaridr) AND ((segdtl.fltnum)::text = (preadv.fltnum)::text) AND (segdtl.fltseqnum = preadv.fltseqnum))
24. 0.000 11.013 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.98..10,777.58 rows=7 width=698) (actual time=11.013..11.013 rows=0 loops=1)

  • Join Filter: (((fltleg.cmpcod)::text = (dwsmst.cmpcod)::text) AND ((fltleg.fltnum)::text = (dwsmst.fltnum)::text) AND (fltleg.fltcaridr = dwsmst.fltcaridr) AND ((fltleg.legorg)::text = (dwsmst.arpcod)::text) AND (fltleg.fltseqnum = dwsmst.fltseqnum) AND (fltleg.legsernum = dwsmst.legsernum))
25. 0.001 11.013 ↓ 0.0 0 1

Nested Loop (cost=1.98..10,766.78 rows=7 width=157) (actual time=11.013..11.013 rows=0 loops=1)

  • Join Filter: ((fltmst.fltseqnum = fltcon.fltseqnum) AND (fltleg.legsernum = fltcon.legsernum))
26. 0.011 6.892 ↓ 5.0 5 1

Nested Loop (cost=0.85..2,077.79 rows=1 width=137) (actual time=6.839..6.892 rows=5 loops=1)

  • Join Filter: (fltleg.fltseqnum = fltmst.fltseqnum)
27. 0.040 6.816 ↓ 5.0 5 1

Nested Loop (cost=0.43..2,069.32 rows=1 width=89) (actual time=6.797..6.816 rows=5 loops=1)

  • Join Filter: ((fltleg.fltseqnum = malflt.fltseqnum) AND (fltleg.legsernum = malflt.legsernum))
  • Rows Removed by Join Filter: 160
28. 0.077 0.077 ↓ 1.7 33 1

Index Scan using fltoprleg_ind5 on fltoprleg fltleg (cost=0.43..72.54 rows=19 width=61) (actual time=0.061..0.077 rows=33 loops=1)

  • Index Cond: ((fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text) AND ((legorg)::text = 'DFW'::text))
  • Filter: ((cmpcod)::text = 'AA'::text)
29. 0.011 6.699 ↓ 5.0 5 33

Materialize (cost=0.00..1,996.45 rows=1 width=28) (actual time=0.000..0.203 rows=5 loops=33)

30. 6.688 6.688 ↓ 5.0 5 1

Seq Scan on malflt (cost=0.00..1,996.44 rows=1 width=28) (actual time=0.006..6.688 rows=5 loops=1)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
  • Rows Removed by Filter: 59867
31. 0.065 0.065 ↑ 1.0 1 5

Index Scan using fltoprmst_pk on fltoprmst fltmst (cost=0.43..8.46 rows=1 width=48) (actual time=0.013..0.013 rows=1 loops=5)

  • Index Cond: (((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND (fltseqnum = malflt.fltseqnum) AND ((cmpcod)::text = 'AA'::text))
  • Filter: ((fltsta)::text <> 'CAN'::text)
32. 0.000 4.120 ↓ 0.0 0 5

Nested Loop Left Join (cost=1.12..8,688.89 rows=7 width=65) (actual time=0.824..0.824 rows=0 loops=5)

33. 4.120 4.120 ↓ 0.0 0 5

Seq Scan on malfltcon fltcon (cost=0.00..201.93 rows=1 width=40) (actual time=0.823..0.824 rows=0 loops=5)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((asgprt)::text = 'DFW'::text) AND ((contyp)::text = 'U'::text) AND ((acpflg)::text = 'Y'::text))
  • Rows Removed by Filter: 4237
34. 0.000 0.000 ↓ 0.0 0

Nested Loop Left Join (cost=1.12..8,486.90 rows=7 width=62) (never executed)

35. 0.000 0.000 ↓ 0.0 0

Index Only Scan using maluldseg_pk on maluldseg uldseg (cost=0.28..4.32 rows=1 width=33) (never executed)

  • Index Cond: ((cmpcod = (fltcon.cmpcod)::text) AND (cmpcod = 'AA'::text) AND (fltcaridr = fltcon.fltcaridr) AND (fltcaridr = '1001'::numeric) AND (fltnum = (fltcon.fltnum)::text) AND (fltnum = '0030'::text) AND (fltseqnum = fltcon.fltseqnum) AND (segsernum = fltcon.segsernum) AND (uldnum = (fltcon.connum)::text))
  • Heap Fetches: 0
36. 0.000 0.000 ↓ 0.0 0

Nested Loop Left Join (cost=0.84..8,482.57 rows=1 width=43) (never executed)

37. 0.000 0.000 ↓ 0.0 0

Index Only Scan using maluldsegdtl_pk on maluldsegdtl segdtl (cost=0.42..4.46 rows=1 width=39) (never executed)

  • Index Cond: ((cmpcod = (uldseg.cmpcod)::text) AND (cmpcod = 'AA'::text) AND (fltcaridr = uldseg.fltcaridr) AND (fltcaridr = '1001'::numeric) AND (fltnum = (uldseg.fltnum)::text) AND (fltnum = '0030'::text) AND (fltseqnum = uldseg.fltseqnum) AND (segsernum = uldseg.segsernum) AND (uldnum = (uldseg.uldnum)::text))
  • Heap Fetches: 0
38. 0.000 0.000 ↓ 0.0 0

Index Scan using malmst_ind8 on malmst (cost=0.42..8,478.10 rows=1 width=14) (never executed)

  • Index Cond: (((segdtl.cmpcod)::text = (cmpcod)::text) AND ((cmpcod)::text = 'AA'::text))
  • Filter: (segdtl.malseqnum = malseqnum)
39. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..10.61 rows=1 width=680) (never executed)

40. 0.000 0.000 ↓ 0.0 0

Seq Scan on oprdwsmst dwsmst (cost=0.00..10.60 rows=1 width=680) (never executed)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
41. 0.000 0.000 ↓ 0.0 0

CTE Scan on preadvsmy preadv (cost=0.00..0.03 rows=1 width=120) (never executed)

  • Filter: (((cmpcod)::text = 'AA'::text) AND (fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text))
42. 0.000 0.000 ↓ 0.0 0

Index Only Scan using fltoprseg_pk on fltoprseg fltseg (cost=0.43..4.46 rows=1 width=18) (never executed)

  • Index Cond: ((fltnum = (fltmst.fltnum)::text) AND (fltnum = '0030'::text) AND (fltcaridr = fltmst.fltcaridr) AND (fltcaridr = '1001'::numeric) AND (fltseqnum = fltmst.fltseqnum) AND (cmpcod = (fltmst.cmpcod)::text) AND (cmpcod = 'AA'::text))
  • Heap Fetches: 0
43. 0.036 3,900.583 ↓ 5.0 35 1

Subquery Scan on *SELECT* 2 (cost=2.40..10,744.57 rows=7 width=325) (actual time=141.727..3,900.583 rows=35 loops=1)

44. 0.192 3,900.547 ↓ 5.0 35 1

Nested Loop Left Join (cost=2.40..10,744.50 rows=7 width=825) (actual time=141.725..3,900.547 rows=35 loops=1)

45. 0.151 3,899.935 ↓ 5.0 35 1

Nested Loop Left Join (cost=1.98..10,713.21 rows=7 width=720) (actual time=141.694..3,899.935 rows=35 loops=1)

  • Join Filter: (((segdtl_1.cmpcod)::text = (preadv_1.cmpcod)::text) AND (segdtl_1.fltcaridr = preadv_1.fltcaridr) AND ((segdtl_1.fltnum)::text = (preadv_1.fltnum)::text) AND (segdtl_1.fltseqnum = preadv_1.fltseqnum))
  • Rows Removed by Join Filter: 175
46. 0.052 3,823.029 ↓ 5.0 35 1

Nested Loop Left Join (cost=1.98..10,712.98 rows=7 width=698) (actual time=65.069..3,823.029 rows=35 loops=1)

47. 0.036 11.594 ↓ 9.0 9 1

Nested Loop (cost=1.14..2,230.41 rows=1 width=702) (actual time=0.119..11.594 rows=9 loops=1)

  • Join Filter: ((fltmst_1.fltseqnum = fltcon_1.fltseqnum) AND (fltleg_1.legsernum = fltcon_1.legsernum) AND (uldseg_1.segsernum = fltcon_1.segsernum))
  • Rows Removed by Join Filter: 36
48. 0.025 6.793 ↓ 5.0 5 1

Nested Loop (cost=1.14..2,028.46 rows=1 width=721) (actual time=0.073..6.793 rows=5 loops=1)

  • Join Filter: (fltmst_1.fltseqnum = uldseg_1.fltseqnum)
  • Rows Removed by Join Filter: 25
49. 0.030 0.030 ↓ 3.0 6 1

Index Only Scan using maluldseg_pk on maluldseg uldseg_1 (cost=0.28..4.43 rows=2 width=33) (actual time=0.018..0.030 rows=6 loops=1)

  • Index Cond: ((cmpcod = 'AA'::text) AND (fltcaridr = '1001'::numeric) AND (fltnum = '0030'::text))
  • Filter: ((uldnum)::text ~~ '%BULK-%'::text)
  • Heap Fetches: 0
50. 0.020 6.738 ↓ 5.0 5 6

Materialize (cost=0.85..2,024.01 rows=1 width=688) (actual time=0.009..1.123 rows=5 loops=6)

51. 0.008 6.718 ↓ 5.0 5 1

Nested Loop Left Join (cost=0.85..2,024.00 rows=1 width=688) (actual time=0.049..6.718 rows=5 loops=1)

  • Join Filter: (((fltleg_1.cmpcod)::text = (dwsmst_1.cmpcod)::text) AND ((fltleg_1.fltnum)::text = (dwsmst_1.fltnum)::text) AND (fltleg_1.fltcaridr = dwsmst_1.fltcaridr) AND ((fltleg_1.legorg)::text = (dwsmst_1.arpcod)::text) AND (fltleg_1.fltseqnum = dwsmst_1.fltseqnum) AND (fltleg_1.legsernum = dwsmst_1.legsernum))
52. 0.016 6.705 ↓ 5.0 5 1

Nested Loop (cost=0.85..2,013.38 rows=1 width=137) (actual time=0.045..6.705 rows=5 loops=1)

  • Join Filter: (fltleg_1.fltseqnum = fltmst_1.fltseqnum)
53. 0.021 6.634 ↓ 5.0 5 1

Nested Loop (cost=0.43..2,004.91 rows=1 width=89) (actual time=0.026..6.634 rows=5 loops=1)

54. 6.548 6.548 ↓ 5.0 5 1

Seq Scan on malflt malflt_1 (cost=0.00..1,996.44 rows=1 width=28) (actual time=0.004..6.548 rows=5 loops=1)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
  • Rows Removed by Filter: 59867
55. 0.065 0.065 ↑ 1.0 1 5

Index Scan using fltoprleg_ind5 on fltoprleg fltleg_1 (cost=0.43..8.46 rows=1 width=61) (actual time=0.013..0.013 rows=1 loops=5)

  • Index Cond: ((fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text) AND (fltseqnum = malflt_1.fltseqnum) AND ((legorg)::text = 'DFW'::text))
  • Filter: (((cmpcod)::text = 'AA'::text) AND (malflt_1.legsernum = legsernum))
56. 0.055 0.055 ↑ 1.0 1 5

Index Scan using fltoprmst_pk on fltoprmst fltmst_1 (cost=0.43..8.46 rows=1 width=48) (actual time=0.011..0.011 rows=1 loops=5)

  • Index Cond: (((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND (fltseqnum = malflt_1.fltseqnum) AND ((cmpcod)::text = 'AA'::text))
  • Filter: ((fltsta)::text <> 'CAN'::text)
57. 0.005 0.005 ↓ 0.0 0 5

Seq Scan on oprdwsmst dwsmst_1 (cost=0.00..10.60 rows=1 width=680) (actual time=0.001..0.001 rows=0 loops=5)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
58. 4.765 4.765 ↓ 9.0 9 5

Seq Scan on malfltcon fltcon_1 (cost=0.00..201.93 rows=1 width=40) (actual time=0.023..0.953 rows=9 loops=5)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((asgprt)::text = 'DFW'::text) AND ((contyp)::text = 'B'::text) AND ((acpflg)::text = 'Y'::text))
  • Rows Removed by Filter: 4228
59. 0.184 3,811.383 ↓ 4.0 4 9

Nested Loop Left Join (cost=0.84..8,482.57 rows=1 width=43) (actual time=71.918..423.487 rows=4 loops=9)

60. 0.189 0.189 ↓ 4.0 4 9

Index Only Scan using maluldsegdtl_pk on maluldsegdtl segdtl_1 (cost=0.42..4.46 rows=1 width=39) (actual time=0.013..0.021 rows=4 loops=9)

  • Index Cond: ((cmpcod = (uldseg_1.cmpcod)::text) AND (cmpcod = 'AA'::text) AND (fltcaridr = uldseg_1.fltcaridr) AND (fltcaridr = '1001'::numeric) AND (fltnum = (uldseg_1.fltnum)::text) AND (fltnum = '0030'::text) AND (fltseqnum = uldseg_1.fltseqnum) AND (segsernum = uldseg_1.segsernum) AND (uldnum = (uldseg_1.uldnum)::text))
  • Heap Fetches: 0
61. 3,811.010 3,811.010 ↑ 1.0 1 35

Index Scan using malmst_ind8 on malmst malmst_1 (cost=0.42..8,478.10 rows=1 width=14) (actual time=67.850..108.886 rows=1 loops=35)

  • Index Cond: (((segdtl_1.cmpcod)::text = (cmpcod)::text) AND ((cmpcod)::text = 'AA'::text))
  • Filter: (segdtl_1.malseqnum = malseqnum)
  • Rows Removed by Filter: 345451
62. 76.755 76.755 ↓ 6.0 6 35

CTE Scan on preadvsmy preadv_1 (cost=0.00..0.03 rows=1 width=120) (actual time=2.191..2.193 rows=6 loops=35)

  • Filter: (((cmpcod)::text = 'AA'::text) AND (fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text))
63. 0.420 0.420 ↑ 1.0 1 35

Index Only Scan using fltoprseg_pk on fltoprseg fltseg_1 (cost=0.43..4.46 rows=1 width=18) (actual time=0.012..0.012 rows=1 loops=35)

  • Index Cond: ((fltnum = (fltmst_1.fltnum)::text) AND (fltnum = '0030'::text) AND (fltcaridr = fltmst_1.fltcaridr) AND (fltcaridr = '1001'::numeric) AND (fltseqnum = fltmst_1.fltseqnum) AND (cmpcod = (fltmst_1.cmpcod)::text) AND (cmpcod = 'AA'::text))
  • Heap Fetches: 0
64. 0.014 7.198 ↓ 4.7 28 1

Subquery Scan on *SELECT* 3 (cost=1.28..2,309.41 rows=6 width=375) (actual time=6.594..7.198 rows=28 loops=1)

65. 0.101 7.184 ↓ 4.7 28 1

Nested Loop Anti Join (cost=1.28..2,309.29 rows=6 width=787) (actual time=6.591..7.184 rows=28 loops=1)

  • Join Filter: (((fltleg_2.cmpcod)::text = (fltcon_2.cmpcod)::text) AND ((fltleg_2.legorg)::text = (fltcon_2.asgprt)::text) AND (fltleg_2.fltcaridr = fltcon_2.fltcaridr) AND ((fltleg_2.fltnum)::text = (fltcon_2.fltnum)::text) AND (fltleg_2.fltseqnum = fltcon_2.fltseqnum))
  • Rows Removed by Join Filter: 269
66. 0.019 6.126 ↓ 5.5 33 1

Nested Loop Left Join (cost=1.28..2,117.80 rows=6 width=675) (actual time=5.625..6.126 rows=33 loops=1)

  • Join Filter: (((fltleg_2.cmpcod)::text = (dwsmst_2.cmpcod)::text) AND ((fltleg_2.fltnum)::text = (dwsmst_2.fltnum)::text) AND (fltleg_2.fltcaridr = dwsmst_2.fltcaridr) AND ((fltleg_2.legorg)::text = (dwsmst_2.arpcod)::text) AND (fltleg_2.fltseqnum = dwsmst_2.fltseqnum) AND (fltleg_2.legsernum = dwsmst_2.legsernum))
67. 0.053 6.107 ↓ 5.5 33 1

Nested Loop Left Join (cost=1.28..2,107.04 rows=6 width=111) (actual time=5.619..6.107 rows=33 loops=1)

68. 0.065 5.889 ↓ 5.5 33 1

Nested Loop Left Join (cost=0.85..2,080.22 rows=6 width=111) (actual time=5.593..5.889 rows=33 loops=1)

  • Join Filter: (((fltleg_2.fltnum)::text = (malflt_2.fltnum)::text) AND (fltleg_2.fltcaridr = malflt_2.fltcaridr) AND ((fltleg_2.legorg)::text = (malflt_2.arpcod)::text) AND (fltleg_2.fltseqnum = malflt_2.fltseqnum) AND (fltleg_2.legsernum = malflt_2.legsernum))
  • Rows Removed by Join Filter: 160
69. 0.044 0.313 ↓ 5.5 33 1

Nested Loop (cost=0.85..233.30 rows=6 width=109) (actual time=0.079..0.313 rows=33 loops=1)

70. 0.071 0.071 ↓ 1.7 33 1

Index Scan using fltoprleg_ind5 on fltoprleg fltleg_2 (cost=0.43..72.54 rows=19 width=61) (actual time=0.054..0.071 rows=33 loops=1)

  • Index Cond: ((fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text) AND ((legorg)::text = 'DFW'::text))
  • Filter: ((cmpcod)::text = 'AA'::text)
71. 0.198 0.198 ↑ 1.0 1 33

Index Scan using fltoprmst_pk on fltoprmst fltmst_2 (cost=0.43..8.46 rows=1 width=48) (actual time=0.006..0.006 rows=1 loops=33)

  • Index Cond: (((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND (fltseqnum = fltleg_2.fltseqnum) AND ((cmpcod)::text = 'AA'::text))
  • Filter: ((fltsta)::text <> 'CAN'::text)
72. 0.010 5.511 ↓ 5.0 5 33

Materialize (cost=0.00..1,846.77 rows=1 width=25) (actual time=0.000..0.167 rows=5 loops=33)

73. 5.501 5.501 ↓ 5.0 5 1

Seq Scan on malflt malflt_2 (cost=0.00..1,846.76 rows=1 width=25) (actual time=0.006..5.501 rows=5 loops=1)

  • Filter: (((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
  • Rows Removed by Filter: 59867
74. 0.165 0.165 ↑ 1.0 1 33

Index Only Scan using fltoprseg_pk on fltoprseg fltseg_2 (cost=0.43..4.46 rows=1 width=18) (actual time=0.005..0.005 rows=1 loops=33)

  • Index Cond: ((fltnum = (fltmst_2.fltnum)::text) AND (fltnum = '0030'::text) AND (fltcaridr = fltmst_2.fltcaridr) AND (fltcaridr = '1001'::numeric) AND (fltseqnum = fltmst_2.fltseqnum) AND (cmpcod = (fltmst_2.cmpcod)::text) AND (cmpcod = 'AA'::text))
  • Heap Fetches: 0
75. 0.000 0.000 ↓ 0.0 0 33

Materialize (cost=0.00..10.61 rows=1 width=680) (actual time=0.000..0.000 rows=0 loops=33)

76. 0.001 0.001 ↓ 0.0 0 1

Seq Scan on oprdwsmst dwsmst_2 (cost=0.00..10.60 rows=1 width=680) (actual time=0.001..0.001 rows=0 loops=1)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
77. 0.007 0.957 ↓ 8.0 8 33

Materialize (cost=0.00..191.34 rows=1 width=22) (actual time=0.001..0.029 rows=8 loops=33)

78. 0.950 0.950 ↓ 9.0 9 1

Seq Scan on malfltcon fltcon_2 (cost=0.00..191.33 rows=1 width=22) (actual time=0.027..0.950 rows=9 loops=1)

  • Filter: (((cmpcod)::text = 'AA'::text) AND ((asgprt)::text = 'DFW'::text) AND (fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text) AND ((acpflg)::text = 'Y'::text))
  • Rows Removed by Filter: 4228