Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16355

Add option for mysqldump to read data as of specific timestamp from system-versioned tables

Details

    Description

      It would be great to have an option for mysqldump to read data as of specific timestamp from system-versioned tables. One should just use:

      SELECT * FROM <t> FOR SYSTEM_TIME AS OF TIMESTAMP '...';
      

      Instead of simple SELECT for such tables if the option is provided.

      I think it makes sense to implement this separately from MDEV-16029

      Attachments

        Issue Links

          Activity

            valerii Valerii Kravchuk created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            serg Sergei Golubchik made changes -
            Description It would be great to have an option for mysqldump to read data as of specific timestamp from system-versioned tables. One should just use:

            select * from <t> FOR SYSTEM_TIME AS OF TIMESTAMP '...'

            instead of simple SELECT for such tables if the option is provided.

            I think it makes sense to implement this separately from https://jira.mariadb.org/browse/MDEV-16029
            It would be great to have an option for mysqldump to read data as of specific timestamp from system-versioned tables. One should just use:

            select * from <t> FOR SYSTEM_TIME AS OF TIMESTAMP '...'

            instead of simple SELECT for such tables if the option is provided.

            I think it makes sense to implement this separately from MDEV-16029
            midenok Aleksey Midenkov made changes -
            Assignee Aleksey Midenkov [ midenok ]
            midenok Aleksey Midenkov made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            midenok Aleksey Midenkov made changes -
            Comment [ h3. Security precaution
            Should we allow function calls as {{--asof-time}} parameter, like:
            {code}
            mysqldump '--asof-time=NOW()' test
            {code}
            ?
            ]
            midenok Aleksey Midenkov made changes -
            Assignee Aleksey Midenok [ midenok ] Sergei Golubchik [ serg ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            midenok Aleksey Midenkov made changes -
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.4 [ 22408 ]
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            julien.fritsch Julien Fritsch made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Fix Version/s 10.7 [ 24805 ]
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Due Date 2021-09-14
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Aleksey Midenkov [ midenok ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            midenok Aleksey Midenkov made changes -
            Assignee Aleksey Midenkov [ midenok ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Aleksey Midenkov [ midenok ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            midenok Aleksey Midenkov made changes -
            Assignee Aleksey Midenkov [ midenok ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Component/s Scripts & Clients [ 11002 ]
            Component/s Backup [ 13902 ]
            Fix Version/s 10.7.0 [ 26072 ]
            Fix Version/s 10.7 [ 24805 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Roel Roel Van de Paar made changes -
            Description It would be great to have an option for mysqldump to read data as of specific timestamp from system-versioned tables. One should just use:

            select * from <t> FOR SYSTEM_TIME AS OF TIMESTAMP '...'

            instead of simple SELECT for such tables if the option is provided.

            I think it makes sense to implement this separately from MDEV-16029
            It would be great to have an option for mysqldump to read data as of specific timestamp from system-versioned tables. One should just use:

            {noformat}
            SELECT * FROM <t> FOR SYSTEM_TIME AS OF TIMESTAMP '...';
            {noformat}

            Instead of simple SELECT for such tables if the option is provided.

            I think it makes sense to implement this separately from MDEV-16029
            Roel Roel Van de Paar made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            Roel Roel Van de Paar made changes -
            Roel Roel Van de Paar made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 87596 ] MariaDB v4 [ 133568 ]
            midenok Aleksey Midenkov made changes -
            midenok Aleksey Midenkov made changes -
            midenok Aleksey Midenkov made changes -
            midenok Aleksey Midenkov made changes -
            midenok Aleksey Midenkov made changes -
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 139667 111284

            People

              serg Sergei Golubchik
              valerii Valerii Kravchuk
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.