Talking To Your Doctor About Your Heartburn

When does heartburn you are suffering from signal something more serious, and when should you talk to the doctor about it?