Psychology might be different from my field... In my field then jobs in the US are (if you are lucky) 'tenure track' rather than people getting tenured jobs straight out of PhD. If you aren't so lucky then you get a one or two year contract... But you surely won't get tenure first off - so you aim for a post-doc or two then 'tenure track' or perhaps try and get 'tenure track' without going the post-doc route.
(Things are different outside the US e.g., in the UK or Australasia - though increasingly mirroring the US system).
5 years after you start your 'tenure track' you come up for tenure. Typically you get one year of teaching exemption so that you have one year to prepare for your tenure application. You either get tenure or... You pack your bags.
Sometimes people manage to get a tenured offer before they come up for tenure at their tenure track institution. Lucky lucky them. But generally speaking... Up for tenure 5 years after staring on a tenure track job (only the publications you got during that tenure track job are allowed to count towards your tenure). If you get tenure then you go from 'assistant proff' to 'associate proff'.
Once you have a tenured job you certainly wouldn't take a step back and accept a 'tenure track' job someplace else. I know people (who published books and a number of articles) during their tenure track who failed to get tenure (mostly for political reasons). There is a fair amount of angst involved... Support of department is one thing... Support of university administration can be quite another (and in some institutions they undermine the departments decision).