In PostgreSQL, we have many ways to retrieve data from arrays. One way is to specifically reference its subscript or a range of subscripts. Another way is to search through the array’s contents for the value we want.
By doing a search, I mean we could do things like filter the query with a WHERE
clause, so that we only return rows that contain an array that has an element with a certain value.