A genius Iraqi professor in surgery, Dr. Khalid Naji, once said [before his death]:
"The excessive grief, sadness and sorrow --> will lead to the development of either Duodenal Ulcer or An*al Hemorrhoids."
So the psychological factor is more important in causing the heartburn which when continues will lead to peptic ulceration mostly duodenal ulcer.
The frustration or feeling of deep and excessive grief will lead to the heartburn.
The cold natural milk without sugar is a good way of getting rid of the mild heartburn.
In addition the roasted or boiled beef or sheep meat without the fat is another way of getting rid of the heartburn.
The boiled egg may also be beneficial in this respect.
The sweet pastry and desserts in addition to the fat will increase the heartburn (in addition of course to the pepper and spices.)
The water is of little or no effect in reliving the heartburn.