Sort (cost=232.42..232.45 rows=10 width=8) (actual time=20.023..20.030 rows=30 loops=1) |
Output: (CASE WHEN ((cte.i % ($2 * 2)) < $3) THEN ((cte.i % ($4 * 2)) + 1) ELSE (($5 * 2) - (cte.i % ($6 * 2))) END), cte.i |
Sort Key: cte.i |
Sort Method: quicksort Memory: 26kB |
Buffers: shared hit=7 |
CTE cte |
-> Recursive Union (cost=0.00..2.95 rows=31 width=4) (actual time=0.003..12.957 rows=20001 loops=1) |
-> Result (cost=0.00..0.01 rows=1 width=4) (actual time=0.001..0.002 rows=1 loops=1) |
Output: 0 |
-> WorkTable Scan on cte cte_1 (cost=0.00..0.23 rows=3 width=4) (actual time=0.000..0.000 rows=1 loops=20001) |
Output: (cte_1.i + 1) |
Filter: (cte_1.i < 20000) |
Rows Removed by Filter: 0 |
InitPlan 2 (returns $2) |
-> Seq Scan on public.param (cost=0.00..32.60 rows=2260 width=4) (actual time=0.003..0.003 rows=1 loops=1) |
Output: param.n |
Buffers: shared hit=1 |
InitPlan 3 (returns $3) |
-> Seq Scan on public.param param_1 (cost=0.00..32.60 rows=2260 width=4) (actual time=0.003..0.003 rows=1 loops=1) |
Output: param_1.n |
Buffers: shared hit=1 |
InitPlan 4 (returns $4) |
-> Seq Scan on public.param param_2 (cost=0.00..32.60 rows=2260 width=4) (actual time=0.003..0.003 rows=1 loops=1) |
Output: param_2.n |
Buffers: shared hit=1 |
InitPlan 5 (returns $5) |
-> Seq Scan on public.param param_3 (cost=0.00..32.60 rows=2260 width=4) (actual time=0.004..0.004 rows=1 loops=1) |
Output: param_3.n |
Buffers: shared hit=1 |
InitPlan 6 (returns $6) |
-> Seq Scan on public.param param_4 (cost=0.00..32.60 rows=2260 width=4) (actual time=0.003..0.003 rows=1 loops=1) |
Output: param_4.n |
Buffers: shared hit=1 |
InitPlan 7 (returns $7) |
-> Seq Scan on public.param param_5 (cost=0.00..32.60 rows=2260 width=4) (actual time=0.013..0.014 rows=1 loops=1) |
Output: param_5.n |
Buffers: shared hit=1 |
InitPlan 8 (returns $8) |
-> Seq Scan on public.param param_6 (cost=0.00..32.60 rows=2260 width=4) (actual time=0.003..0.004 rows=1 loops=1) |
Output: param_6.m |
Buffers: shared hit=1 |
-> CTE Scan on cte (cost=0.00..1.10 rows=10 width=8) (actual time=0.037..20.012 rows=30 loops=1) |
Output: CASE WHEN ((cte.i % ($2 * 2)) < $3) THEN ((cte.i % ($4 * 2)) + 1) ELSE (($5 * 2) - (cte.i % ($6 * 2))) END, cte.i |
Filter: (cte.i < (($7 * 2) * $8)) |
Rows Removed by Filter: 19971 |
Buffers: shared hit=7 |
Planning Time: 0.438 ms |
Execution Time: 20.431 ms |