QUERY PLAN
Aggregate (cost=2.41..2.42 rows=1 width=32)
-> Hash Join (cost=1.24..2.38 rows=8 width=6)
Hash Cond: (r.erp_personal_tax_id = t.id)
-> Seq Scan on tbl_erp_personal_tax_bank_outs r (cost=0.00..1.11 rows=9 width=10)
Filter: (erp_bank_id = 1)
-> Hash (cost=1.12..1.12 rows=9 width=4)
-> Seq Scan on tbl_erp_personal_taxs t (cost=0.00..1.12 rows=9 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))