explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 0qN

Settings
# exclusive inclusive rows x rows loops node
1. 315.314 742.574 ↓ 0.0 0 1

Update on snapshots (cost=0.37..8.39 rows=1 width=42) (actual time=742.574..742.574 rows=0 loops=1)

2.          

Initplan (for Update)

3. 0.002 0.008 ↑ 1.0 1 1

Result (cost=0.21..0.22 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=1)

4.          

Initplan (for Result)

5. 0.000 0.006 ↑ 1.0 1 1

Limit (cost=0.15..0.21 rows=1 width=4) (actual time=0.006..0.006 rows=1 loops=1)

6. 0.006 0.006 ↑ 1,264.0 1 1

Index Only Scan Backward using snapshots_pkey on snapshots snapshots_1 (cost=0.15..70.27 rows=1,264 width=4) (actual time=0.006..0.006 rows=1 loops=1)

  • Index Cond: (id IS NOT NULL)
  • Heap Fetches: 1
7. 427.252 427.252 ↑ 1.0 1 1

Index Scan using snapshots_pkey on snapshots (cost=0.15..8.17 rows=1 width=42) (actual time=370.107..427.252 rows=1 loops=1)

  • Index Cond: (id = $1)
Planning time : 0.114 ms
Execution time : 746.801 ms