QUERY PLAN
Aggregate (cost=8.17..8.18 rows=1 width=8)
-> Index Scan using tbl_schedules_created_by_idx on tbl_schedules (cost=0.14..8.16 rows=1 width=0)
Index Cond: (created_by = 5495)
Filter: ((NOT is_complete) AND (is_public = 1))