QUERY PLAN
Hash Join (cost=1.31..21.08 rows=4 width=40)
Hash Cond: (r.erp_cash_cost_ticket_id = t.id)
-> Seq Scan on tbl_erp_cash_cost_ticket_purchase_contract_settles r (cost=0.00..19.75 rows=4 width=36)
Filter: (purchase_contract_id = 4072)
-> Hash (cost=1.17..1.17 rows=12 width=12)
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..1.17 rows=12 width=12)
Filter: (status = ANY ('{2,5,1}'::integer[]))