How to force regenerate thumbnails in WordPress posts?

If images src inside posts keep pointing to urls like “image-300×450.jpg”, a SQL command can solve it. Something like

UPDATE wp_posts SET post_content = replace(post_content, '-300x250', '[new dimensions]');

Just find a safe part of the url to replace. Probably that is what I would try. Remembering to do the good old backup of your db before…