Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scbuild: error on duplicate columns in ALTER PRIMARY KEY
This check has been missing from the declarative schema changer builder. This would result in execution errors in later stages when the new index makes it into the table descriptor. Since these are internal errors, the user experience is correspondingly poor. This patch fixes this. Fixes #91301 Release note (bug fix): fixed a bug present only in earlier 22.2 release candidates, in which an ALTER PRIMARY KEY USING COLUMNS (x, x) statement would result in an internal error instead of the expected user-facing error with a pg-code.
- Loading branch information