MariaDB Temporal tables
summary
MariaDB implements both application-time and system-versioned temporal tables (system timing in MariaDB 10, application timing added in 10.4). Creating them uses ALTER TABLE with algorithm=copy and a shared lock so writes block and extra disk space is needed; building application-time tables requires adding temporal columns, defaults, and making row_end part of unique keys so multiple versions coexist. History is pruned with DELETE ... FOR PORTION OF TIME, updates mark logical deletion (example: stored procedure sets valid_to = NOW()), and rename table is atomic so swaps happen without service interruption.
AI-written summary · about
