Skip to content

Add support for sql_require_primary_key #28544

@morgo

Description

@morgo

Feature Request

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:

This is a feature from MySQL 8.0:
https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_require_primary_key

It allows you to enforce tables have a primary key. It has more meaning in MySQL because row-based replication benefits from it (Edit that: it very much applies to TiCDC), and InnoDB is less efficient when using its internal primary key. But it's still useful.

Describe alternatives you've considered:

N/A - compatibility feature.

Teachability, Documentation, Adoption, Migration Strategy:

Compatibility feature

Metadata

Metadata

Assignees

Labels

sig/sql-infraSIG: SQL Infratype/feature-requestCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions