QUERY PLAN
Aggregate (cost=4.16..4.17 rows=1 width=32)
-> Hash Join (cost=1.31..4.13 rows=9 width=5)
Hash Cond: (t.id = r.erp_other_payment_ticket_id)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..2.56 rows=44 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.20..1.20 rows=9 width=9)
-> Seq Scan on tbl_erp_other_payment_ticket_bank_ins r (cost=0.00..1.20 rows=9 width=9)
Filter: (erp_bank_id = 1)