aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-11-08 16:30:22 +0900
committerAmit Langote <amitlan@postgresql.org>2024-11-08 17:18:55 +0900
commit33040b1715c7a3450a6b3dc61bd7779a5f9ae709 (patch)
tree0842ca992b40984bb62c1bd9f1a4bd1f59e1f5bd /src/backend/commands/variable.c
parent0a620659c549f05881800fddd1859f3e373dd9cf (diff)
downloadpostgresql-33040b1715c7a3450a6b3dc61bd7779a5f9ae709.tar.gz
postgresql-33040b1715c7a3450a6b3dc61bd7779a5f9ae709.zip
Disallow partitionwise join when collations don't match
If the collation of any join key column doesn’t match the collation of the corresponding partition key, partitionwise joins can yield incorrect results. For example, rows that would match under the join key collation might be located in different partitions due to the partitioning collation. In such cases, a partitionwise join would yield different results from a non-partitionwise join, so disallow it in such cases. Reported-by: Tender Wang <tndrwang@gmail.com> Author: Jian He <jian.universality@gmail.com> Reviewed-by: Tender Wang <tndrwang@gmail.com> Reviewed-by: Junwang Zhao <zhjwpku@gmail.com> Discussion: https://postgr.es/m/CAHewXNno_HKiQ6PqyLYfuqDtwp7KKHZiH1J7Pqyz0nr+PS2Dwg@mail.gmail.com Backpatch-through: 12
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions