QUERY PLAN
Hash Left Join (cost=118.75..167.20 rows=31 width=69)
Hash Cond: (prod.product_serie = gs.id)
-> Hash Left Join (cost=56.84..105.21 rows=31 width=44)
Hash Cond: (prod.product_component = gc.id)
-> Hash Left Join (cost=51.24..99.53 rows=31 width=32)
Hash Cond: (prod.product_type = gt.id)
-> Hash Left Join (cost=48.83..97.03 rows=31 width=24)
Hash Cond: (prod.product_brand = gb.id)
-> Bitmap Heap Scan on tbl_products prod (cost=40.92..89.04 rows=31 width=20)
Recheck Cond: (id = ANY ('{39,672,941,1025,1224,1231,1234,1238,1245,1246,1372,1562,1584,2072,2073,2074,2075,2076,2077,2078,2080,2083,2084,2085,2086,2171,2242,2255,2261,2262,2269}'::integer[]))
-> Bitmap Index Scan on tbl_products_pkey (cost=0.00..40.91 rows=31 width=0)
Index Cond: (id = ANY ('{39,672,941,1025,1224,1231,1234,1238,1245,1246,1372,1562,1584,2072,2073,2074,2075,2076,2077,2078,2080,2083,2084,2085,2086,2171,2242,2255,2261,2262,2269}'::integer[]))
-> Hash (cost=5.18..5.18 rows=218 width=12)
-> Seq Scan on tbl_product_brands gb (cost=0.00..5.18 rows=218 width=12)
-> Hash (cost=1.63..1.63 rows=63 width=16)
-> Seq Scan on tbl_product_types gt (cost=0.00..1.63 rows=63 width=16)
-> Hash (cost=3.60..3.60 rows=160 width=20)
-> Seq Scan on tbl_product_components gc (cost=0.00..3.60 rows=160 width=20)
-> Hash (cost=41.96..41.96 rows=1596 width=33)
-> Seq Scan on tbl_product_series gs (cost=0.00..41.96 rows=1596 width=33)