QUERY PLAN
Aggregate (cost=91.79..91.80 rows=1 width=32)
-> Hash Join (cost=9.16..91.26 rows=211 width=6)
Hash Cond: (t.id = r.erp_payment_ticket_id)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..68.42 rows=2313 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))
-> Hash (cost=6.47..6.47 rows=215 width=10)
-> Seq Scan on tbl_erp_payment_ticket_bank_outs r (cost=0.00..6.47 rows=215 width=10)
Filter: (erp_bank_id = 1)