You can either go with the Stackoverflow approach and include a unique identifier as well as a human friendly name:
/posts/13523/welcome-to-my-blog
/posts/83841/welcome-to-my-blog
Or you can enforce uniqueness on your slugs and set up your CMS to throw an error (or add an automatic modification such as a numerical suffix) if a user tries to create a duplicate.