| Aggregate (cost=83.06..83.07 rows=1 width=48) |
| -> HashAggregate (cost=69.71..72.52 rows=281 width=95) |
| Group Key: r.id, r.day_at, r.title, r.status, r.repair_type, r.repair_time, r.next_verify_user, r.verify_at, r.next_cancel_verify_user, r.cancel_at, r.description, r.refuse_description, r.is_resubmited, r.created_by, r.created_at, r.updated_at, r.cancel_description |
| -> HashAggregate (cost=54.96..57.77 rows=281 width=95) |
| Group Key: r.id |
| -> Hash Left Join (cost=26.22..54.25 rows=281 width=95) |
| Hash Cond: (r.id = crvr.punch_repair_id) |
| -> Hash Left Join (cost=25.13..52.08 rows=281 width=95) |
| Hash Cond: (r.id = rvr.punch_repair_id) |
| Filter: ((r.created_by = ANY ('{1000,1001,1004,1005,1011,1013,1015,1022,1023,5016,5064,5085,5087,5248,5250,5252,5295,5300,5311,5332,5360,5446,5449,5461,5476}'::integer[])) OR (rccr.user_id = 1001) OR (rvr.user_id = 1001)) |
| -> Hash Right Join (cost=14.05..21.79 rows=374 width=99) |
| Hash Cond: (rccr.punch_repair_id = r.id) |
| -> Seq Scan on tbl_punch_repair_carbon_copy_rels rccr (cost=0.00..6.74 rows=374 width=8) |
| -> Hash (cost=9.58..9.58 rows=358 width=95) |
| -> Seq Scan on tbl_punch_repairs r (cost=0.00..9.58 rows=358 width=95) |
| -> Hash (cost=6.59..6.59 rows=359 width=8) |
| -> Seq Scan on tbl_punch_repair_verify_rels rvr (cost=0.00..6.59 rows=359 width=8) |
| -> Hash (cost=1.04..1.04 rows=4 width=4) |
| -> Seq Scan on tbl_punch_repair_cancel_verify_rels crvr (cost=0.00..1.04 rows=4 width=4) |