QUERY PLAN
Aggregate (cost=445.50..445.51 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=12.78..445.48 rows=11 width=0)
Recheck Cond: (created_by = 5087)
Filter: ((NOT is_complete) AND (is_public = 1))
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..12.78 rows=599 width=0)
Index Cond: (created_by = 5087)