If your salad has dressing made out of mayonnaise, it shouldn't be kept at room temperature for more than an hour or two. Any longer, you'll risk bacteria growth and getting a food-borne illness. So keep that in mind next time you're serving potato salad at a picnic or potluck.