Potatoes are inherently poisonous, especially if they are sprouting. But in the potato tuber itself, the doage is low enough not to worry... as long as you're older than 3 or 4. Beneath that, and you can subject children to poisoning accidentally.
https://www.huffingtonpost.co.uk/2014/08/14/girl-8-orphaned-...
> The majority (30-80%) of the solanine in potatoes is found in the outer layer of the potato.[26] Therefore, peeling potatoes before cooking them reduces the glycoalkaloid intake from potato consumption. Fried potato peels have been shown to have 1.4–1.5 mg solanine/g, which is seven times the recommended upper safety limit of 0.2 mg/g.[18] Chewing a small piece of the raw potato peel before cooking can help determine the level of solanine contained in the potato; bitterness indicates high glycoalkaloid content.[18] If the potato has more than 0.2 mg/g of solanine, an immediate burning sensation will develop in the mouth.[18]