QUERY PLAN
-------------------------------------------------------------------------------------------------------------------
Aggregate (cost=63664.69..63664.74 rows=1 width=8) (actual time=176.344..176.344 rows=1 loops=1)
Buffers: shared hit=4425
-> Seq Scan on t1 (cost=0.00..60843.75 rows=1128375 width=0) (actual time=0.010..91.800 rows=1000000 loops=1)
Buffers: shared hit=4425
Planning time: 0.101 ms
Execution time: 176.418 ms
(6 rows)
QUERY PLAN
--------------------------------------------------------------------------------------------------------------------------------------
Finalize Aggregate (cost=30108.46..30108.51 rows=1 width=8) (actual time=88.572..88.572 rows=1 loops=1)
Buffers: shared hit=2075
-> Gather (cost=30108.20..30108.45 rows=2 width=8) (actual time=88.549..88.567 rows=3 loops=1)
Workers Planned: 2
Workers Launched: 2
Buffers: shared hit=2075
-> Partial Aggregate (cost=29108.20..29108.25 rows=1 width=8) (actual time=83.902..83.902 rows=1 loops=3)
Buffers: shared hit=4425
-> Parallel Seq Scan on t1 (cost=0.00..27932.81 rows=470156 width=0) (actual time=0.026..48.045 rows=333333 loops=3)
Buffers: shared hit=4425
Planning time: 0.201 ms
Execution time: 91.212 ms
(12 rows)