Piotrkowski: An error occured in: ERROR: could not resize shared memory segment "/PostgreSQL.2012776296" to 126816 bytes: No space left on device Query: SELECT DISTINCT
ip_subcategory.subcat_id AS id,
ip_subcategory.subcat_name AS name,
ip_subcategory.subcat_seo AS seo,
COALESCE(ips.ile,0) as ile
FROM
ip_subcategory
LEFT JOIN (
SELECT count(DISTINCT(ip_card.card_id)) as ile, subcat_id
FROM
ip_card_cs,
ip_cs,
ip_card,
ip_city,
ip_powiat
WHERE
ip_card_cs.cs_id=ip_cs.cs_id AND
ip_card_cs.card_id = ip_card.card_id AND
ip_card.city_id = ip_city.city_id AND
ip_card.card_status = '0' AND
ip_city.powiat_id=ip_powiat.powiat_id AND
ip_powiat.powiat_id=248 AND
ip_cs.cat_id=42061
GROUP BY subcat_id
) ips ON (ips.subcat_id=ip_subcategory.subcat_id ),
ip_cs
WHERE
ip_cs.cat_id=42061 AND
ip_cs.subcat_id=ip_subcategory.subcat_id
ORDER BY
ip_subcategory.subcat_name