Postgres – Array Index Equivalence Miss

Let s explain the situation with a concrete example. Given the following table structure: The two following queries yield the exact same result. To get there, they use different operators though, and, under the hood, it s not clear how different it gets. The first one, using the ANY operator, will loop through the categories array, and [ ]