QUERY PLAN
Aggregate (cost=299.76..299.77 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=5.40..299.75 rows=3 width=0)
Recheck Cond: (created_by = 1001)
Filter: ((NOT is_complete) AND (is_public = 1))
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..5.40 rows=149 width=0)
Index Cond: (created_by = 1001)