pgsql: Compare collations before merging UNION operations.

2024-11-19 Thread Tom Lane
Compare collations before merging UNION operations. In the dim past we figured it was okay to ignore collations when combining UNION set-operation nodes into a single N-way UNION operation. I believe that was fine at the time, but it stopped being fine when we added nondeterministic collations: t

pgsql: Compare collations before merging UNION operations.

2024-11-19 Thread Tom Lane
Compare collations before merging UNION operations. In the dim past we figured it was okay to ignore collations when combining UNION set-operation nodes into a single N-way UNION operation. I believe that was fine at the time, but it stopped being fine when we added nondeterministic collations: t

pgsql: Compare collations before merging UNION operations.

2024-11-19 Thread Tom Lane
Compare collations before merging UNION operations. In the dim past we figured it was okay to ignore collations when combining UNION set-operation nodes into a single N-way UNION operation. I believe that was fine at the time, but it stopped being fine when we added nondeterministic collations: t

pgsql: Compare collations before merging UNION operations.

2024-11-19 Thread Tom Lane
Compare collations before merging UNION operations. In the dim past we figured it was okay to ignore collations when combining UNION set-operation nodes into a single N-way UNION operation. I believe that was fine at the time, but it stopped being fine when we added nondeterministic collations: t

pgsql: Compare collations before merging UNION operations.

2024-11-19 Thread Tom Lane
Compare collations before merging UNION operations. In the dim past we figured it was okay to ignore collations when combining UNION set-operation nodes into a single N-way UNION operation. I believe that was fine at the time, but it stopped being fine when we added nondeterministic collations: t

pgsql: Compare collations before merging UNION operations.

2024-11-19 Thread Tom Lane
Compare collations before merging UNION operations. In the dim past we figured it was okay to ignore collations when combining UNION set-operation nodes into a single N-way UNION operation. I believe that was fine at the time, but it stopped being fine when we added nondeterministic collations: t