I came from old school mysql and was surprised that postgresql can do array.
In old days, let's say you have User and Fruit tables. Each user can have multiple fruits. In order to store what fruit each user has, we need to create a third table to store user and fruit ids.
But seems like PostgreSQL can have a column say fruits in User that stores an array of Fruit.id.
My question is, which one is better? In terms of performance and possible future extension.