I'm going to a formal visit in warsaw ,and I would like to buy food that only poznan has and warsaw doesn't have .
I'm not sure you can find anything like it. There's a local cuisine, but it'll be difficult to find a product that is sold in Poznan and isn't available in Warsaw - both cities are too big and too close for that.
Greater Poland's cuisine is strongly based on potatos so you can consider the potato vodka - eg. Chopin vodka - it can be bought in Warsaw too but nevermind it.