QUERY PLAN
Sort (cost=516.32..519.75 rows=1369 width=520)
Sort Key: id DESC
-> Bitmap Heap Scan on tbl_schedules (cost=26.89..445.01 rows=1369 width=520)
Recheck Cond: (created_by = 1004)
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..26.55 rows=1369 width=0)
Index Cond: (created_by = 1004)