| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
UPDATE, DELETE: replace linear search of current/historical records
with vers_setup_conds().
Additional DML cases in view.test
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Preparation for MDEV-16210:
replace.test:
key_type combinations: PK and UNIQUE.
foreign.test:
Preparation for key_type combinations.
Other fixes:
* Merged versioning.update2 into versioning.update;
* Removed test2 database and done individual drop instead.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Fix reinitialize vers_write on table reopen.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
table->n_v_cols)' on DELETE HISTORY
Turn off versioned_write for DELETE HISTORY.
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
covered by tests
* add error for truncation of versioned tables: `ER_TRUNCATE_ILLEGAL_VERS`
* make a full table open with `tdc_aquire_share` instead of just `ha_table_exists` check
test suites run: main, parts, versioning
Closes #785
|
|
|
|
|
|
|
|
|
| |
SP with DELETE HISTORY
* remove assertion
* do not setup `conds` if it's already cached
Fixes #823
|
|
|
|
|
|
|
| |
causes Assertion `table_list->vers_conditions.type == SYSTEM_TIME_BEFORE' failure
* Fix versioning.truncate,trx_id to create transaction-based tables
* Fix SYSTEM_TIME_BEFORE condition for VERS_TRX_ID
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Lots of changes:
* calculate the current history partition in ::external_lock(),
not in ::write_row() or ::update_row()
* remove dynamically collected per-partition row_end stats
* no full table scan in open_table_from_share to calculate these
stats, no manual MDL/thr_locks in open_table_from_share
* no shared stats in TABLE_SHARE = no mutexes or condition waits when
calculating current history partition
* always compare timestamps, don't convert them to MYSQL_TIME
(avoid DST ambiguity, and it's faster too)
* correct interval handling, 1 month = 1 month, not 30 * 24 * 3600 seconds
* save/restore first partition start time, and count intervals from there
* only allow to drop first partitions if INTERVAL
* when adding new history partitions, split the data in the last history
parition, if it was overflowed
* show partition boundaries in INFORMATION_SCHEMA.PARTITIONS
|
|
|
|
|
|
| |
also, don't rotate versioning partitions for DELETE HISTORY
originally by: Aleksey Midenkov
|
| |
|
|
|
|
| |
Also fixes broken truncate after 617e108fb6e2bc24e5c9badb94e7d8eaa65d8851
|
|
|
|
| |
ER_VERS_NOT_VERSIONED vs ER_VERSIONING_REQUIRED
|
| |
|
|
|
| |
SQL: disable TRUNCATE table_name TO statement for VIEWs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Removed integer_fields check
* Reworked Vers_parse_info::check_sys_fields()
* Misc renames
* versioned as vers_sys_type_t
* Removed versioned_by_sql(), versioned_by_engine()
versioned() works as before;
versioned(VERS_TIMESTAMP) is versioned_by_sql();
versioned(VERS_TRX_ID) is versioned_by_engine().
* create_tmp_table() fix
* Foreign constraints for timestamp-based
* Range auto-specifier fix
* SQL: 1-row partition rotation fix [fixes #260]
* Fix 'drop system versioning, algorithm=inplace'
|
|\
| |
| |
| | |
Merge remote-tracking branch 'mariadb/bb-10.3-temporal-serg' into trunk
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
Eliminated `QUERY FOR`.
|