| Aggregate (cost=388.36..388.37 rows=1 width=8) |
| -> Group (cost=388.34..388.35 rows=1 width=479) |
| Group Key: s.id |
| -> Sort (cost=388.34..388.34 rows=1 width=4) |
| Sort Key: s.id |
| -> Hash Right Join (cost=375.64..388.33 rows=1 width=4) |
| Hash Cond: (ccr.schedule_id = s.id) |
| -> Seq Scan on tbl_schedule_carbon_copy_rels ccr (cost=0.00..10.88 rows=688 width=4) |
| -> Hash (cost=375.63..375.63 rows=1 width=12) |
| -> Bitmap Heap Scan on tbl_schedules s (cost=6.03..375.63 rows=1 width=12) |
| Recheck Cond: (client_id = 149) |
| Filter: ((set_top_at IS NULL) AND (NOT is_complete) AND ((end_at > now()) OR (end_at IS NULL))) |
| -> Bitmap Index Scan on tbl_schedules_client_id_idx (cost=0.00..6.03 rows=232 width=0) |
| Index Cond: (client_id = 149) |