Water does not produce CO on reacting with:
Barium reacts vigorously even with cold water while Mg reacts slowly with warm water. Mg does not react with cold water easily while Beryllium does not react even with boiling water.