Two variants of ALTER TABLE changing PRIMARY KEY - ADD (#1104) and DROP (#8735) - are currently implemented to help database setup by some tools (ORMs, Keycloak, etc.) do not honor concurrent DMLs which may lead to data loss.
This needs to be changed to either become an online operation, or lock an entire table for the ALTER time.
Jira Link: DB-2917
Description
Two variants of
ALTER TABLE
changing PRIMARY KEY - ADD (#1104) and DROP (#8735) - are currently implemented to help database setup by some tools (ORMs, Keycloak, etc.) do not honor concurrent DMLs which may lead to data loss.This needs to be changed to either become an online operation, or lock an entire table for the
ALTER
time.