QUERY PLAN
Hash Join (cost=7.55..11.39 rows=1 width=55)
Hash Cond: (esgps.erp_sales_gift_id = esgs.id)
-> Seq Scan on tbl_erp_sales_gift_products esgps (cost=0.00..3.45 rows=145 width=55)
-> Hash (cost=7.54..7.54 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_gifts esgs (cost=0.00..7.54 rows=1 width=4)
Filter: (project_id = 4172)