While it is considered bad manners to become obviously drunk in some formal restaurants, for example high-end restaurants that serve kaiseki ryori (Japanese haute cuisine), the same is not true for other types of restaurants such as izakaya, as long as you do not bother other guests.