explain.depesz.com

PostgreSQL's explain analyze made readable

Result: R6SC

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 122,392.072 ↓ 0.0 0 1

Limit (cost=2,103,028.98..2,103,028.99 rows=2 width=28) (actual time=122,392.072..122,392.072 rows=0 loops=1)

2. 0.016 122,392.072 ↓ 0.0 0 1

Sort (cost=2,103,028.98..2,103,028.99 rows=2 width=28) (actual time=122,392.072..122,392.072 rows=0 loops=1)

  • Sort Key: (max((max(t1._period)))) DESC, t1._fld32821rref
  • Sort Method: quicksort Memory: 25kB
3. 0.001 122,392.056 ↓ 0.0 0 1

GroupAggregate (cost=2,102,029.95..2,103,028.91 rows=2 width=28) (actual time=122,392.056..122,392.056 rows=0 loops=1)

  • Group Key: t1._fld32821rref
4. 0.002 122,392.055 ↓ 0.0 0 1

Merge Append (cost=2,102,029.95..2,103,028.88 rows=2 width=28) (actual time=122,392.055..122,392.055 rows=0 loops=1)

  • Sort Key: t1._fld32821rref
5. 0.000 122,286.355 ↓ 0.0 0 1

Limit (cost=1,880,567.77..1,880,567.79 rows=1 width=28) (actual time=122,286.355..122,286.355 rows=0 loops=1)

6. 0.002 122,286.355 ↓ 0.0 0 1

GroupAggregate (cost=1,880,567.77..1,880,567.79 rows=1 width=28) (actual time=122,286.355..122,286.355 rows=0 loops=1)

  • Group Key: t1._fld32821rref
7. 0.000 122,286.353 ↓ 0.0 0 1

Sort (cost=1,880,567.77..1,880,567.78 rows=1 width=28) (actual time=122,286.353..122,286.353 rows=0 loops=1)

  • Sort Key: t1._fld32821rref
  • Sort Method: quicksort Memory: 25kB
8. 112.114 122,293.844 ↓ 0.0 0 1

Gather (cost=8,823.34..1,880,567.71 rows=1 width=28) (actual time=122,286.344..122,293.844 rows=0 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
9. 751.515 122,181.730 ↓ 0.0 0 3 / 3

Parallel Hash Anti Join (cost=7,823.34..1,879,567.61 rows=1 width=28) (actual time=122,181.729..122,181.730 rows=0 loops=3)

  • Hash Cond: (t1._fld32821rref = t2._fld74574_rrref)
10. 121,242.880 121,242.880 ↑ 1.2 4,668,136 3 / 3

Parallel Seq Scan on _accumrg32819 t1 (cost=0.00..1,733,199.55 rows=5,833,462 width=28) (actual time=56,868.957..121,242.880 rows=4,668,136 loops=3)

  • Filter: ((_period >= '2015-01-01 00:00:00'::timestamp without time zone) AND (_period < '2015-12-31 17:05:45'::timestamp without time zone) AND (_fld1389 = '0'::numeric))
  • Rows Removed by Filter: 3609832
11. 0.080 187.335 ↑ 2.6 8 3 / 3

Parallel Hash (cost=7,823.08..7,823.08 rows=21 width=17) (actual time=187.335..187.335 rows=8 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 104kB
12. 187.255 187.255 ↑ 2.6 8 3 / 3

Parallel Seq Scan on _inforg74571 t2 (cost=0.00..7,823.08 rows=21 width=17) (actual time=119.915..187.255 rows=8 loops=3)

  • Filter: ((NOT _fld74573) AND (_fld74572_type = '\\010'::bytea) AND (_fld74572_rtref = '\\000\\000\\000\\231'::bytea) AND (_fld74572_rrref = '\\214\\332\\000\\014)\\264\\362\\242\\021\\343\\272B\\301*\\010\\353'::bytea) AND (_fld74574_type = '\\010'::bytea) AND (_fld74574_rtref = '\\000\\000\\000\\327'::bytea) AND (_fld74575_type = '\\010'::bytea) AND (_fld74575_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74575_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74576_type = '\\010'::bytea) AND (_fld74576_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74576_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74577_type = '\\010'::bytea) AND (_fld74577_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74577_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74578_type = '\\010'::bytea) AND (_fld74578_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74578_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld1389 = '0'::numeric))
  • Rows Removed by Filter: 53884
13. 0.001 105.698 ↓ 0.0 0 1

Limit (cost=221,462.17..222,461.02 rows=1 width=28) (actual time=105.698..105.698 rows=0 loops=1)

14. 0.000 105.697 ↓ 0.0 0 1

GroupAggregate (cost=221,462.17..222,461.02 rows=1 width=28) (actual time=105.697..105.697 rows=0 loops=1)

  • Group Key: t1_1._fld32821rref
15. 57.167 105.721 ↓ 0.0 0 1

Gather Merge (cost=221,462.17..222,461.00 rows=1 width=28) (actual time=105.694..105.721 rows=0 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
16. 0.002 48.554 ↓ 0.0 0 3 / 3

Merge Anti Join (cost=220,462.15..221,460.86 rows=1 width=28) (actual time=48.554..48.554 rows=0 loops=3)

  • Merge Cond: (t1_1._fld32821rref = t2_1._fld74574_rrref)
17. 0.054 40.244 ↓ 0.0 0 3 / 3

Sort (cost=221,674.86..221,802.93 rows=51,225 width=28) (actual time=40.244..40.244 rows=0 loops=3)

  • Sort Key: t1_1._fld32821rref
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
  • Worker 1: Sort Method: quicksort Memory: 25kB
18. 40.190 40.190 ↓ 0.0 0 3 / 3

Parallel Index Scan using _accumrg32819_1 on _accumrg32819 t1_1 (cost=0.56..217,667.90 rows=51,225 width=28) (actual time=40.189..40.190 rows=0 loops=3)

  • Index Cond: ((_fld1389 = '0'::numeric) AND (_period = '2015-12-31 17:05:45'::timestamp without time zone))
19. 0.005 8.308 ↑ 10.0 5 1 / 3

Sort (cost=294.35..294.47 rows=50 width=17) (actual time=24.923..24.923 rows=5 loops=1)

  • Sort Key: t2_1._fld74574_rrref
  • Sort Method: quicksort Memory: 26kB
20. 8.303 8.303 ↑ 2.0 25 1 / 3

Index Scan using _inforg74571_1 on _inforg74571 t2_1 (cost=0.55..292.94 rows=50 width=17) (actual time=24.871..24.908 rows=25 loops=1)

  • Index Cond: ((_fld1389 = '0'::numeric) AND (_fld74572_type = '\\010'::bytea) AND (_fld74572_rtref = '\\000\\000\\000\\231'::bytea) AND (_fld74572_rrref = '\\214\\332\\000\\014)\\264\\362\\242\\021\\343\\272B\\301*\\010\\353'::bytea) AND (_fld74573 = false) AND (_fld74574_type = '\\010'::bytea) AND (_fld74574_rtref = '\\000\\000\\000\\327'::bytea) AND (_fld74575_type = '\\010'::bytea) AND (_fld74575_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74575_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74576_type = '\\010'::bytea) AND (_fld74576_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74576_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74577_type = '\\010'::bytea) AND (_fld74577_rtref = '\\000\\000\\202\\355'::bytea))
  • Filter: ((NOT _fld74573) AND (_fld74577_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74578_type = '\\010'::bytea) AND (_fld74578_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74578_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea))