Skip to content

Revert PXC 8.4.11 forced sql_require_primary_key - #142

Merged
kimago merged 1 commit into
mainfrom
fix/revert-pxc-5106
Oct 8, 2026
Merged

kimago merged 1 commit into
mainfrom
fix/revert-pxc-5106

Conversation

@abg

@abg abg commented Oct 8, 2026

Copy link
Copy Markdown
Member

Effectively reverts PXC-5106 and related workarounds so pxc-strict-mode no longer forces sql_require_primary_key=ON. This restores schema migrations that create a table and add its primary key in separate statements, while preserving strict-mode rejection of writes to tables without a primary key.

This will be reverted in Percona XtraDB Cluster v8.4.13 in the next quarter and this change will be removed at that time. This is a temporary backwards compatibility fix.

This commit patches the Percona XtraDB Cluster v8.4.11 source tree during the bosh compile phase. Additionally system tests were added to validate the expected primary key workflow. These tests fail against a vanilla Percona XtraDB Cluster v8.4.11 cluster and pass with the changes in this commit.

Effectively reverts PXC-5106 and related workarounds so pxc-strict-mode
no longer forces sql_require_primary_key=ON. This restores schema
migrations that create a table and add its primary key in separate
statements, while preserving strict-mode rejection of writes to tables
without a primary key.

This will be reverted in Percona XtraDB Cluster v8.4.13 in the next
quarter and this change will be removed at that time. This is a
temporary backwards compatibility fix.

This commit patches the Percona XtraDB Cluster v8.4.11 source tree
during the bosh compile phase.  Additionally system tests were added to
validate the expected primary key workflow.  These tests fail against a
vanilla Percona XtraDB Cluster v8.4.11 cluster and pass with the changes
in this commit.

@kimago kimago left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes AI+HI review, approving.

@kimago
kimago merged commit f7af289 into main Oct 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants