| Sort (cost=2796.56..2799.06 rows=1000 width=370) |
| Sort Key: (date(tt.dt)) DESC |
| -> HashAggregate (cost=2729.23..2746.73 rows=1000 width=370) |
| Group Key: tt.dt, p.day_at, p.user_id |
| -> Hash Left Join (cost=2708.98..2721.73 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=2686.69..2686.69 rows=1782 width=346) |
| -> Seq Scan on tbl_punch p (cost=0.00..2686.69 rows=1782 width=346) |
| Filter: (user_id = 1001) |