GroupAggregate (cost=4127795.75..4167545.68 rows=8 width=13) (actual time=35611.848..35611.850 rows=1 loops=1) Output: message.operation, count(DISTINCT message.correlation_id) Group Key: message.operation Buffers: shared hit=127413 read=3064766 I/O Timings: shared/local read=30567.916 InitPlan 1 (returns $0) -> Result (cost=0.00..0.01 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=1) Output: (now() - '00:15:00'::interval) -> Sort (cost=4127795.74..4141045.69 rows=5299980 width=40) (actual time=35611.812..35611.813 rows=7 loops=1) Output: message.operation, message.correlation_id Sort Key: message.operation Sort Method: quicksort Memory: 25kB Buffers: shared hit=127413 read=3064766 I/O Timings: shared/local read=30567.916 -> Seq Scan on message (cost=0.00..3390928.25 rows=5299980 width=40) (actual time=7387.708..35611.789 rows=7 loops=1) Output: message.operation, message.correlation_id Filter: (message.creation_timestamp > $0) Rows Removed by Filter: 15890255 Buffers: shared hit=127413 read=3064766 I/O Timings: shared/local read=30567.916 Query Identifier: -6379450843721222788 Planning Time: 0.134 ms Execution Time: 35611.889 ms