explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 1Mkj

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 0.064 ↓ 0.0 0 1

Nested Loop (cost=1,189.97..1,937.05 rows=1,519 width=13) (actual time=0.064..0.064 rows=0 loops=1)

2. 0.000 0.063 ↓ 0.0 0 1

Nested Loop (cost=1,189.53..1,248.94 rows=1,519 width=8) (actual time=0.063..0.063 rows=0 loops=1)

3. 0.000 0.063 ↓ 0.0 0 1

Unique (cost=1,189.09..1,189.12 rows=6 width=4) (actual time=0.063..0.063 rows=0 loops=1)

4. 0.031 0.063 ↓ 0.0 0 1

Sort (cost=1,189.09..1,189.11 rows=6 width=4) (actual time=0.063..0.063 rows=0 loops=1)

  • Sort Key: u0.id
  • Sort Method: quicksort Memory: 25kB
5. 0.001 0.032 ↓ 0.0 0 1

Nested Loop (cost=0.86..1,189.02 rows=6 width=4) (actual time=0.032..0.032 rows=0 loops=1)

6. 0.031 0.031 ↓ 0.0 0 1

Index Scan using os_spec_info_date_next on os_spec u0 (cost=0.43..156.94 rows=1,537 width=8) (actual time=0.030..0.031 rows=0 loops=1)

  • Index Cond: (info_date_next >= '9999-12-31 23:59:59'::timestamp without time zone)
  • Filter: ((info_date <= '9999-12-31 23:59:59'::timestamp without time zone) AND (date_register <= '2020-12-31'::date) AND ((date_discard >= '2020-01-01'::date) OR (date_discard IS NULL)))
  • Rows Removed by Filter: 3
7. 0.000 0.000 ↓ 0.0 0

Index Scan using os_card_pkey on os_card u1 (cost=0.43..0.67 rows=1 width=4) (never executed)

  • Index Cond: (id = u0.os_id)
  • Filter: ((ent_id = 4,781) AND (state = ANY ('{2,3,4,5,6,7}'::integer[])))
8. 0.000 0.000 ↓ 0.0 0

Index Scan using os_spec_invnumber_os_spec_id on os_spec_invnumber (cost=0.44..7.43 rows=253 width=8) (never executed)

  • Index Cond: (os_spec_id = u0.id)
  • Filter: (state <> 3)
9. 0.000 0.000 ↓ 0.0 0

Index Scan using invnumber_pkey on invnumber (cost=0.43..0.45 rows=1 width=13) (never executed)

  • Index Cond: (id = os_spec_invnumber.invnum_id)
Planning time : 25.821 ms
Execution time : 0.200 ms