Sort (cost=2583.37..2585.87 rows=1000 width=362) |
Sort Key: (date(tt.dt)) |
-> HashAggregate (cost=2516.04..2533.54 rows=1000 width=362) |
Group Key: tt.dt, p.day_at, p.user_id |
-> Hash Left Join (cost=2495.79..2508.54 rows=1000 width=346) |
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=2469.46..2469.46 rows=2105 width=338) |
-> Seq Scan on tbl_punch p (cost=0.00..2469.46 rows=2105 width=338) |
Filter: (user_id = 1013) |