I'm fairly new to Postgresql and it's really weird for me that It can't keep track of auto increment fields.
I have these tables I'm using for my django app
Article
Article_Category
Category
Everything was working fine until today. The Article table suddenly forgot what was the last Article_id and started creating id's back to 1.