aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-12-01 15:48:06 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-12-01 16:17:38 +0100
commite846fc491923a499a6d8b388292798fc808cd7a3 (patch)
treeeb28c653a44733634ff9c648c50e665a48079dec /src/tutorial/funcs.source
parent1a4d714e18127264abf856fc6c07e056bd2f558a (diff)
downloadpostgresql-e846fc491923a499a6d8b388292798fc808cd7a3.tar.gz
postgresql-e846fc491923a499a6d8b388292798fc808cd7a3.zip
Check collation when creating partitioned index
When creating a partitioned index, the partition key must be a subset of the index's columns. But this currently doesn't check that the collations between the partition key and the index definition match. So you can construct a unique index that fails to enforce uniqueness. (This would most likely involve a nondeterministic collation, so it would have to be crafted explicitly and is not something that would just happen by accident.) This patch adds the required collation check. As a result, any previously allowed unique index that has a collation mismatch would no longer be allowed to be created. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/3327cb54-f7f1-413b-8fdb-7a9dceebb938%40eisentraut.org
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions