CREATE PRIMARY INDEX catalog_primary ON catalog
CREATE INDEX table_type ON catalog(table_type)
CREATE INDEX offer_ean ON catalog(ean) WHERE (table_type = "offer")
CREATE INDEX offer_shop_id ON catalog(shop_id) WHERE (table_type = "offer")
CREATE INDEX content_ean ON catalog(ean) WHERE (table_type = "content")
CREATE INDEX offer_ean_country ON catalog(ean,country) WHERE (table_type = "offer")