QUERY PLAN
Hash Join (cost=82.93..153.45 rows=18 width=62)
Hash Cond: (t.id = r.erp_payment_ticket_id)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..62.20 rows=2171 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=82.70..82.70 rows=18 width=62)
-> Seq Scan on tbl_erp_payment_ticket_settles r (cost=0.00..82.70 rows=18 width=62)
Filter: (erp_cost_ticket_id = ANY ('{18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1}'::integer[]))