QUERY PLAN
Aggregate (cost=112.44..112.45 rows=1 width=32)
-> Hash Join (cost=6.59..111.99 rows=178 width=6)
Hash Cond: (t.id = r.erp_collect_ticket_id)
-> Seq Scan on tbl_erp_collect_tickets t (cost=0.00..95.42 rows=2187 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=4.35..4.35 rows=179 width=10)
-> Seq Scan on tbl_erp_collect_ticket_bank_ins r (cost=0.00..4.35 rows=179 width=10)
Filter: (erp_bank_id = 1)