製品アップデート情報一覧
show status like '%backquery%'を実行してください)。SELECT ... FROM <テーブル名>AS OF TIMESTAMP <時刻>;
MySQL [test]> create table t1(id int,c1 int) engine=innodb;Query OK, 0 rows affected (0.06 sec)MySQL [test]> insert into t1 values(1,1),(2,2),(3,3),(4,4);Query OK, 4 rows affected (0.01 sec)Records: 4 Duplicates: 0 Warnings: 0MySQL [test]> select now();+---------------------+| now() |+---------------------+| 2024-10-18 16:01:01 |+---------------------+1 row in set (0.00 sec)MySQL [test]> delete from t1 where id=4;Query OK, 1 row affected (0.00 sec)MySQL [test]> select * from t1;+------+------+| id | c1 |+------+------+| 1 | 1 || 2 | 2 || 3 | 3 |+------+------+3 rows in set (0.00 sec)MySQL [test]> select * from t1 as of timestamp '2024-10-18 16:01:01';+------+------+| id | c1 |+------+------+| 1 | 1 || 2 | 2 || 3 | 3 || 4 | 4 |+------+------+4 rows in set (0.00 sec)
create table t3 select * from t1 as of timestamp '2024-10-18 16:01:01';
insert into t4 select * from t1 as of timestamp '2024-10-18 16:01:01';
パラメータ名 | パラメータ範囲 | タイプ | デフォルト値 | 設定可能範囲 | 再起動の必要があるかどうか。 | 説明 |
Innodb_backquery_enable | グローバルパラメータ | Boolean | OFF | ON\\OFF | いいえ | フラッシュバック照会機能の有効化設定。 |
Innodb_backquery_window | グローバルパラメータ | Integer | 900 | 1 - 86400 | いいえ | フラッシュバック照会がサポートする時間範囲(単位:秒)です。このパラメータの値が大きいほど、フラッシュバック照会がサポートする履歴データの照会可能時間が長くなりますが、同時にundoテーブルスペースが占有するストレージ容量も増加します。 |
Innodb_backquery_history_limit | グローバルパラメータ | Integer | 8000000 | 1 - 9223372036854476000 | いいえ | undo履歴リストの長さ制限を超えると、Innodb_backquery_windowのトリガーによるpurgeが無視され、履歴リストの長さが設定値を下回るまで実行されません。 |
フィードバック