QUERY PLAN
Hash Join (cost=88.24..156.77 rows=20 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=87.99..87.99 rows=20 width=62)
-> Seq Scan on tbl_erp_payment_ticket_settles r (cost=0.00..87.99 rows=20 width=62)
Filter: (erp_other_payment_ticket_id = ANY ('{33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14}'::integer[]))