QUERY PLAN
Aggregate (cost=317.65..317.66 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=5.53..317.64 rows=3 width=0)
Recheck Cond: (created_by = 5016)
Filter: (NOT is_complete)
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..5.53 rows=166 width=0)
Index Cond: (created_by = 5016)