Peel the pumpkin, remove seeds and dice the pulp. Peel and finely dice the onions. Heat 2 tablespoons of butter. Fry half of the bacon, onions and pumpkin for about 5 minutes. Season with salt and pepper.
Deglaze with 1 litre of water, bring to the boil, season again with salt. Stir in polenta. Cook at low heat stirring constantly for 10-15 minutes. In the meantime wash and quarter the pears and cut out the core.
Cut quarters into slices or columns. Wash and chop the thyme. Fill pumpkin polenta into a greased form (approx. 22 cm Ø). Spread pears, remaining bacon and thyme on it. Sprinkle with breadcrumbs and spread 2 tablespoons of butter in flakes on top.
Cook in the preheated oven (electric cooker: 225 °C/ convection oven: 200 °C/ gas: level 4) for about 15 minutes.