On Wed, 21 Jun 2023 at 10:26, Marc Millas <marc(dot)millas(at)mokadb(dot)com> wrote:
> link to the plan with both clauses ORed (the one not finishing) https://explain.depesz.com/s/jHO2
I'd go with the UNION or UNION ALL idea I mentioned earlier.
David