Green on potatoes indicates the presence of solanine caused by exposure to light. In general it should not be ingested. This is one of the reasons to hill potatoes when growing to prevent light from reaching the new tubers.
https://www.sciencebasedmedicine.org/killer-tomatoes-and-poisonous-potatoes/
Solanine is indeed a poison in large doses, causing everything from gastrointestinal symptoms to hallucinations, paralysis and death. Large amounts are toxic, but the amounts usually found in food are innocuous. It is poorly absorbed and rapidly excreted.
It is estimated that it would take 2–5mg per kilogram of body weight to produce toxic symptoms. A large potato weighs about 300g and has a solanine content of less than 0.2mg/gm That works out to around 0.03mg per kilogram for an adult, a hundredth of the toxic dose; I figure a murderous wife would have to feed something like 67 large potatoes to her husband in a single meal to poison him. Unless he’s a phenomenally big eater, arsenic would be a better bet. Potatoes that are diseased with blight or that have sprouted have a larger than usual amount of solanine. They will have a bitter taste and often a green discoloration; such potatoes should be avoided. Even integrative health guru
Andrew Weil is not afraid of solanine, pointing out that there hasn’t been a single case of solanine poisoning in the US from eating potatoes in the last 50 years.