explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8RKx

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

Limit (cost=1,000.47..161,995.67 rows=1 width=12) (actual time=1,134.106..1,134.106 rows=0 loops=1)

2.          

Initplan (for Limit)

3. 0.002 0.022 ↑ 1.0 1 1

Result (cost=0.46..0.47 rows=1 width=8) (actual time=0.021..0.022 rows=1 loops=1)

4.          

Initplan (for Result)

5. 0.001 0.020 ↑ 1.0 1 1

Limit (cost=0.43..0.46 rows=1 width=8) (actual time=0.019..0.020 rows=1 loops=1)

6. 0.019 0.019 ↑ 9,929,946.0 1 1

Index Only Scan Backward using global_restriction_uidx on global_restriction g (cost=0.43..213,375.59 rows=9,929,946 width=8) (actual time=0.019..0.019 rows=1 loops=1)

  • Index Cond: (last_update IS NOT NULL)
  • Heap Fetches: 0
7. 98.359 1,158.887 ↓ 0.0 0 1

Gather (cost=1,000.00..161,995.20 rows=1 width=12) (actual time=1,134.105..1,158.887 rows=0 loops=1)

  • Workers Planned: 2
  • Params Evaluated: $1
  • Workers Launched: 2
8. 1,060.528 1,060.528 ↓ 0.0 0 3 / 3

Parallel Seq Scan on offer_p01 o (cost=0.00..160,995.10 rows=1 width=12) (actual time=1,060.528..1,060.528 rows=0 loops=3)

  • Filter: ((last_update < $1) AND (state <> 'FINISHED'::offer_state) AND (partition_id = 1))
  • Rows Removed by Filter: 2,106,689
Planning time : 0.299 ms
Execution time : 1,158.923 ms