QUERY PLAN
Aggregate (cost=9.65..9.66 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=4.31..9.65 rows=1 width=0)
Recheck Cond: (created_by = ANY ('{5493,5493}'::integer[]))
Filter: ((NOT is_complete) AND (is_public = 1))
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..4.30 rows=2 width=0)
Index Cond: (created_by = ANY ('{5493,5493}'::integer[]))