Skip to content
Advertisement

PostgreSQL Integer in Array is not merge-joinable

I would like to perform a FULL OUTER JOIN ON a condition that is an integer being in an array of integer.

The query would look something like this:

But I get the following error:

FULL JOIN is only supported with merge-joinable or hash-joinable join conditions

Is there a way to make this condition merge-joinable ?

Advertisement

Answer

Hmmm . . . Does it work like this?

The issue with this is that it will multiply the number of rows. So, how about just constructing the FULL JOIN?

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement