| Sort (cost=2735.09..2737.59 rows=1000 width=370) |
| Sort Key: (date(tt.dt)) |
| -> HashAggregate (cost=2667.76..2685.26 rows=1000 width=370) |
| Group Key: tt.dt, p.day_at, p.user_id |
| -> Hash Left Join (cost=2647.51..2660.26 rows=1000 width=354) |
| Hash Cond: (date(tt.dt) = p.day_at) |
| -> Function Scan on generate_series tt (cost=0.02..10.02 rows=1000 width=8) |
| -> Hash (cost=2637.82..2637.82 rows=774 width=346) |
| -> Bitmap Heap Scan on tbl_punch p (cost=1180.10..2637.82 rows=774 width=346) |
| Recheck Cond: (user_id = 5085) |
| -> Bitmap Index Scan on tbl_punch_pkey (cost=0.00..1179.90 rows=774 width=0) |
| Index Cond: (user_id = 5085) |