explain.depesz.com

PostgreSQL's explain analyze made readable

Result: eIZou

Settings
# exclusive inclusive rows x rows loops node
1. 0.220 4,839.893 ↓ 1.6 33 1

GroupAggregate (cost=43,457.10..43,459.10 rows=20 width=834) (actual time=4,839.719..4,839.893 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.023 77.925 ↓ 6.0 6 1

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

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

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

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

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

6. 0.000 77.738 ↓ 27.0 27 1

Nested Loop (cost=2,488.49..19,592.20 rows=1 width=52) (actual time=11.439..77.738 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.757 77.628 ↓ 27.0 27 1

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

  • Workers Planned: 2
  • Workers Launched: 2
8. 12.593 71.871 ↓ 9.0 9 3 / 3

Hash Join (cost=1,488.07..18,591.61 rows=1 width=121) (actual time=13.440..71.871 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. 49.012 49.012 ↑ 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.005..49.012 rows=115,151 loops=3)

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

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
11. 0.078 10.258 ↓ 13.0 13 3 / 3

Hash Join (cost=785.63..1,488.06 rows=1 width=76) (actual time=5.886..10.258 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.408 4.408 ↓ 1.6 13 3 / 3

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

  • Filter: (((cmpcod)::text = 'AA'::text) AND (fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text))
  • Rows Removed by Filter: 22,061
13. 3.376 5.772 ↑ 1.0 13,521 3 / 3

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

  • Buckets: 16,384 Batches: 1 Memory Usage: 937kB
14. 2.396 2.396 ↑ 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.396 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.425 4,839.673 ↓ 3.1 63 1

Sort (cost=23,864.55..23,864.60 rows=20 width=834) (actual time=4,839.670..4,839.673 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.034 4,839.248 ↓ 3.1 63 1

Append (cost=10,809.21..23,863.92 rows=20 width=834) (actual time=153.176..4,839.248 rows=63 loops=1)

19. 0.000 10.858 ↓ 0.0 0 1

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

20. 0.001 10.858 ↓ 0.0 0 1

GroupAggregate (cost=10,809.21..10,809.75 rows=7 width=359) (actual time=10.858..10.858 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.012 10.857 ↓ 0.0 0 1

Sort (cost=10,809.21..10,809.23 rows=7 width=798) (actual time=10.857..10.857 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.000 10.845 ↓ 0.0 0 1

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

23. 0.000 10.845 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.98..10,777.81 rows=7 width=720) (actual time=10.845..10.845 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 10.845 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.98..10,777.58 rows=7 width=698) (actual time=10.845..10.845 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.005 10.845 ↓ 0.0 0 1

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

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

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

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

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

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

Index Scan using fltoprleg_ind5 on fltoprleg fltleg (cost=0.43..72.54 rows=19 width=61) (actual time=0.063..0.079 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.009 6.534 ↓ 5.0 5 33

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

30. 6.525 6.525 ↓ 5.0 5 1

Seq Scan on malflt (cost=0.00..1,996.44 rows=1 width=28) (actual time=0.005..6.525 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: 59,867
31. 0.055 0.055 ↑ 1.0 1 5

Index Scan using fltoprmst_pk on fltoprmst fltmst (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.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.824..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: 4,237
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.043 4,821.068 ↓ 5.0 35 1

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

44. 0.244 4,821.025 ↓ 5.0 35 1

Nested Loop Left Join (cost=2.40..10,744.50 rows=7 width=825) (actual time=142.314..4,821.025 rows=35 loops=1)

45. 0.176 4,820.256 ↓ 5.0 35 1

Nested Loop Left Join (cost=1.98..10,713.21 rows=7 width=720) (actual time=142.286..4,820.256 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.071 4,741.995 ↓ 5.0 35 1

Nested Loop Left Join (cost=1.98..10,712.98 rows=7 width=698) (actual time=64.360..4,741.995 rows=35 loops=1)

47. 0.036 11.488 ↓ 9.0 9 1

Nested Loop (cost=1.14..2,230.41 rows=1 width=702) (actual time=0.118..11.488 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.027 6.857 ↓ 5.0 5 1

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

  • Join Filter: (fltmst_1.fltseqnum = uldseg_1.fltseqnum)
  • Rows Removed by Join Filter: 25
49. 0.038 0.038 ↓ 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.024..0.038 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.022 6.792 ↓ 5.0 5 6

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

51. 0.006 6.770 ↓ 5.0 5 1

Nested Loop Left Join (cost=0.85..2,024.00 rows=1 width=688) (actual time=0.044..6.770 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.019 6.759 ↓ 5.0 5 1

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

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

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

54. 6.607 6.607 ↓ 5.0 5 1

Seq Scan on malflt malflt_1 (cost=0.00..1,996.44 rows=1 width=28) (actual time=0.003..6.607 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: 59,867
55. 0.060 0.060 ↑ 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.012..0.012 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.050 0.050 ↑ 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.010..0.010 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.000..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.595 4.595 ↓ 9.0 9 5

Seq Scan on malfltcon fltcon_1 (cost=0.00..201.93 rows=1 width=40) (actual time=0.023..0.919 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: 4,228
59. 0.259 4,730.436 ↓ 4.0 4 9

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

60. 0.207 0.207 ↓ 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.015..0.023 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. 4,729.970 4,729.970 ↑ 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=82.976..135.142 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: 345,451
62. 78.085 78.085 ↓ 6.0 6 35

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

  • Filter: (((cmpcod)::text = 'AA'::text) AND (fltcaridr = '1001'::numeric) AND ((fltnum)::text = '0030'::text))
63. 0.525 0.525 ↑ 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.015..0.015 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.288 ↓ 4.7 28 1

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

65. 0.091 7.274 ↓ 4.7 28 1

Nested Loop Anti Join (cost=1.28..2,309.29 rows=6 width=787) (actual time=6.671..7.274 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.018 6.193 ↓ 5.5 33 1

Nested Loop Left Join (cost=1.28..2,117.80 rows=6 width=675) (actual time=5.682..6.193 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.045 6.175 ↓ 5.5 33 1

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

68. 0.072 5.932 ↓ 5.5 33 1

Nested Loop Left Join (cost=0.85..2,080.22 rows=6 width=111) (actual time=5.641..5.932 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.040 0.316 ↓ 5.5 33 1

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

70. 0.078 0.078 ↓ 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.062..0.078 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.005 5.544 ↓ 5.0 5 33

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

73. 5.539 5.539 ↓ 5.0 5 1

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

  • Filter: (((fltnum)::text = '0030'::text) AND (fltcaridr = '1001'::numeric) AND ((arpcod)::text = 'DFW'::text))
  • Rows Removed by Filter: 59,867
74. 0.198 0.198 ↑ 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.006..0.006 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.002 0.002 ↓ 0.0 0 1

Seq Scan on oprdwsmst dwsmst_2 (cost=0.00..10.60 rows=1 width=680) (actual time=0.002..0.002 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.014 0.990 ↓ 8.0 8 33

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

78. 0.976 0.976 ↓ 9.0 9 1

Seq Scan on malfltcon fltcon_2 (cost=0.00..191.33 rows=1 width=22) (actual time=0.030..0.976 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: 4,228