QUERY PLAN
Hash Left Join (cost=124.80..182.27 rows=52 width=69)
Hash Cond: (prod.product_serie = gs.id)
-> Hash Left Join (cost=62.89..120.22 rows=52 width=44)
Hash Cond: (prod.product_component = gc.id)
-> Hash Left Join (cost=57.29..114.49 rows=52 width=32)
Hash Cond: (prod.product_type = gt.id)
-> Hash Left Join (cost=54.87..111.92 rows=52 width=24)
Hash Cond: (prod.product_brand = gb.id)
-> Bitmap Heap Scan on tbl_products prod (cost=46.96..103.88 rows=52 width=20)
Recheck Cond: (id = ANY ('{867,39,1372,2080,2073,1372,941,1025,2076,2261,2171,1231,672,969,989,2261,2075,1238,1224,2078,2261,2269,2242,1245,2085,2074,2072,2083,2084,1562,1372,868,1372,2171,870,1558,2077,2177,2262,2261,2231,2269,1246,1234,2086,1558,2255,2265,2267,2177,2232,2269}'::integer[]))
-> Bitmap Index Scan on tbl_products_pkey (cost=0.00..46.95 rows=52 width=0)
Index Cond: (id = ANY ('{867,39,1372,2080,2073,1372,941,1025,2076,2261,2171,1231,672,969,989,2261,2075,1238,1224,2078,2261,2269,2242,1245,2085,2074,2072,2083,2084,1562,1372,868,1372,2171,870,1558,2077,2177,2262,2261,2231,2269,1246,1234,2086,1558,2255,2265,2267,2177,2232,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)