QUERY PLAN
Hash Join (cost=132.55..236.15 rows=25 width=62)
Hash Cond: (r.erp_payment_ticket_id = t.id)
-> Seq Scan on tbl_erp_payment_ticket_settles r (cost=0.00..103.54 rows=25 width=62)
Filter: (erp_other_payment_ticket_id = ANY ('{44,46,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26}'::integer[]))
-> Hash (cost=103.39..103.39 rows=2333 width=4)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..103.39 rows=2333 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))