Also while I wouldn’t call raw potato poisonous, it does contain toxins that are neutralised by cooking.
> 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]