QUERY PLAN
Aggregate (cost=2.33..2.34 rows=1 width=32)
-> Hash Join (cost=1.20..2.32 rows=5 width=7)
Hash Cond: (r.erp_provident_fund_id = t.id)
-> Seq Scan on tbl_erp_provident_fund_bank_outs r (cost=0.00..1.09 rows=7 width=11)
Filter: (erp_bank_id = 1)
-> Hash (cost=1.11..1.11 rows=7 width=4)
-> Seq Scan on tbl_erp_provident_funds t (cost=0.00..1.11 rows=7 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))