QUERY PLAN
Hash Join (cost=3.80..5.80 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..1.78 rows=78 width=55)
-> Hash (cost=3.79..3.79 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_gifts esgs (cost=0.00..3.79 rows=1 width=4)
Filter: (project_id = 4005)