QUERY PLAN
Hash Join (cost=64.35..132.79 rows=11 width=62)
Hash Cond: (t.id = r.erp_payment_ticket_id)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..60.42 rows=2109 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=64.21..64.21 rows=11 width=62)
-> Seq Scan on tbl_erp_payment_ticket_settles r (cost=0.00..64.21 rows=11 width=62)
Filter: (erp_cost_ticket_id = ANY ('{11,10,9,8,7,6,5,4,3,2,1}'::integer[]))