QUERY PLAN
Hash Join (cost=67.00..137.46 rows=12 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=66.85..66.85 rows=12 width=62)
-> Seq Scan on tbl_erp_payment_ticket_settles r (cost=0.00..66.85 rows=12 width=62)
Filter: (erp_cost_ticket_id = ANY ('{12,11,10,9,8,7,6,5,4,3,2,1}'::integer[]))