Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Have an option to force PK for (innodb) tables.
Forcing is quite easy (a poc from 2011):
http://linsenraum.de/erkules/2011/03/this-table-type-requires-a-primary-key.html
Why?
RBR and so Galera would benefit from such an option.
From my point of view a lot of DBA's would love it
Attachments
Issue Links
- relates to
-
MDEV-8582 innodb_force_primary_key option does not force PK or unique key
-
- Closed
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Remote Link | This issue links to "TokuDB - Race in secondary index query (when no PK exists) (Web Link)" [ 13700 ] |
Fix Version/s | 10.1.0 [ 12200 ] |
Remote Link | This issue links to "Bug #69845 Provide an option to prevent creation of tables without a unique/PK (Web Link)" [ 14502 ] |
Assignee | Jan Lindström [ jplindst ] |
Priority | Trivial [ 5 ] | Major [ 3 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | defaullt [ 30205 ] | MariaDB v2 [ 43374 ] |
Workflow | MariaDB v2 [ 43374 ] | MariaDB v3 [ 63488 ] |
Workflow | MariaDB v3 [ 63488 ] | MariaDB v4 [ 132231 ] |
Another possible issue that could be faced when using tables without a PK on a TokuDB table : if you use UNCOMMITED-READ isolation level, you can hit a HA_ERROR_CRASHED error during certain operations : http://www.tokutek.com/2013/11/what-does-the-incorrect-key-file-for-table-error-mean/