I would suggest treating a post-doc as nothing more than a temporary, if necessary, bridge to a permanent job. It would be different in a place where a post-doc is open ended on a rolling, say, three year contract. But for fixed term post docs, just use them as a base from which to search for a permanent position.
I'll just have to guess, and my perspective is US rather than Europe, but after a certain number of post docs people will start to wonder why you haven't advanced. They might, then, lower your rating for any permanent position.
Of course, when times are tough in your field, then you may have few options but to compromise, but use every position to work toward a better one, at least until you have a tenured job.
However, you might meet such a goal, but only, IMO, if you become so incredibly, internationally, famous that people ignore everything else to get you. Possible, of course, but a risky path.
A "rolling" contract is one that guarantees you at least a certain number of years of employment after notice before you can be let go (other than for cause). So a rolling three year contract implies that if you get notice today (2020), you lose your job in 2023 rather than at the end of a fixed term.
There are people in the US who have such contracts and they are considered "safe", unlike post-docs. Professor of the Practice for example is for teaching faculty at some top US institutions (Duke, Stanford, CMU,...). While not tenured, the job is very secure, though not absolutely so.