Skip to content

Support UNDO TABLESPACE DDL (CREATE / ALTER / DROP) #27

@kyleconroy

Description

@kyleconroy

Summary

Marino does not parse the UNDO TABLESPACE family of DDL statements that manage InnoDB undo logs as first-class tablespaces.

MySQL version

Introduced in MySQL 8.0.14.

Current state in marino

grep -in 'UNDO TABLESPACE\|UndoTablespace' parser/parser.y parser/keywords.go returns no matches.

Example SQL

CREATE UNDO TABLESPACE undo_ts ADD DATAFILE 'undo_ts.ibu';

ALTER UNDO TABLESPACE undo_ts SET INACTIVE;
ALTER UNDO TABLESPACE undo_ts SET ACTIVE;

DROP UNDO TABLESPACE undo_ts;

ENGINE clause is also accepted (deprecated in 8.4 but still parses):

CREATE UNDO TABLESPACE undo_ts ADD DATAFILE 'undo_ts.ibu' ENGINE = INNODB;

Validation

All three statements above run successfully against MySQL 9.2.0 Community.

Notes for the implementer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions