Postpartum psychosis is a rare and very serious type of depression that can occur after pregnancy. It's a medical emergency.