[MDEV-14005] Remove need for Partition Key to be part of Primary Key Created: 2017-10-04 Updated: 2022-04-25 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Partitioning |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Alvin Richards (Inactive) | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | None | ||
| Description |
| Comments |
| Comment by Alvin Richards (Inactive) [ 2017-10-04 ] | ||
Additional Information1. Datatype restrictions
2. Primary Keys 3. Adding Unique Keys
| ||
| Comment by Sergei Golubchik [ 2017-10-12 ] | ||
|
The reason for this restriction — it guarantees that two rows from different partitions can never cause unique key conflicts. That is, on any, say, INSERT the engine only needs to ensure uniqueness within a partition, there is no need to search for conflicting values in other partitions. To remove this restriction, we'll need to implement the search for conflicting values in other partitions. (note the possible race condition when two threads insert conflicting values in different partitions at about the same time) | ||
| Comment by Aurélien LEQUOY [ 2017-10-18 ] | ||
|
it's funny i sent this problem some years ago too but was closed considering normal behavior have to think about spider, because we can push directly in partition. One nice feature should be to autocreate partition with BY LIST COLUMNS with a max cardinality when this cardinality reached put all new value in DEFAULT. | ||
| Comment by Alexey Botchkov [ 2017-12-04 ] | ||
|
Patch proposal. | ||
| Comment by Aurélien LEQUOY [ 2017-12-04 ] | ||
|
it's will be in version 10.2.12 ? | ||
| Comment by Sergei Golubchik [ 2017-12-06 ] | ||
|
Unlikely, it's a new feature. We cannot add it to a GA release. It'll be done in 10.3 | ||
| Comment by Sergei Golubchik [ 2017-12-15 ] | ||
|
holyfoot, where's the patch? | ||
| Comment by Alexey Botchkov [ 2018-01-24 ] | ||
|
Patch proposal | ||
| Comment by Eric Herman [ 2018-08-03 ] | ||
|
Similar to Oracle MySQL bug#29840 "A PRIMARY KEY must include all columns in the table's partitioning function" | ||
| Comment by Alexey Botchkov [ 2018-08-21 ] | ||
|
http://lists.askmonty.org/pipermail/commits/2018-August/012814.html | ||
| Comment by Alexey Botchkov [ 2019-02-03 ] | ||
|
email 'Re: d1ccc60: MDEV-14005 Remove ne...' |