explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 2K1Z

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

Limit (cost=10.84..13.87 rows=1 width=312) (actual time=0.010..0.010 rows=0 loops=1)

  • Buffers: shared hit=1
2. 0.009 0.009 ↓ 0.0 0 1

Index Scan using test_index on public.ci_pipelines (cost=10.84..13.87 rows=1 width=312) (actual time=0.009..0.009 rows=0 loops=1)

  • Index Cond: ((ci_pipelines.project_id = 2) AND (ci_pipelines.id < 6) AND ((ci_pipelines.ref)::text = 'ref'::text))
  • Filter: (ci_pipelines.tag AND (NOT (hashed SubPlan 2)))
  • Rows Removed by Filter: 0
  • Buffers: shared hit=1
3.          

SubPlan (for Index Scan)

4. 0.000 0.000 ↓ 0.0 0 0

Index Scan using index_ci_pipelines_on_project_id_and_id_desc on public.ci_pipelines ci_pipelines_2 (cost=7.69..10.71 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

  • Index Cond: ((ci_pipelines_2.project_id = 2) AND (ci_pipelines_2.id < 6))
  • Filter: (ci_pipelines_2.tag AND ((ci_pipelines_2.ref)::text = 'ref'::text) AND ((ci_pipelines_2.id = 6) OR (hashed SubPlan 1)))
  • Rows Removed by Filter: 0
5.          

SubPlan (for Index Scan)

6. 0.000 0.000 ↓ 0.0 0 0

Nested Loop (cost=1.00..7.11 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

7. 0.000 0.000 ↓ 0.0 0 0

Index Scan using index_ci_sources_pipelines_on_source_pipeline_id on public.ci_sources_pipelines (cost=0.43..3.53 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

  • Index Cond: (ci_sources_pipelines.source_pipeline_id = 6)
  • Filter: (ci_sources_pipelines.source_project_id = ci_sources_pipelines.project_id)
  • Rows Removed by Filter: 0
8. 0.000 0.000 ↓ 0.0 0 0

Index Only Scan using ci_pipelines_pkey on public.ci_pipelines ci_pipelines_1 (cost=0.57..3.59 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

  • Index Cond: (ci_pipelines_1.id = ci_sources_pipelines.pipeline_id)
  • Heap Fetches: 0