Volatile barium compounds burn with a green to pale green flame , which is an efficient test to detect a barium compound .
Barium compounds put out a greenish flame when heated red-hot .