summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb_gis
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-28478: INSERT into SPATIAL INDEX in TEMPORARY table writes logMarko Mäkelä2022-05-064-15/+32
| | | | | | | | | | | | | | | | | | | | | This is based on commit 20ae4816bba712a3faa0110c973e197d92f43b42 with some adjustments for MDEV-12353. row_ins_sec_index_entry_low(): If a separate mini-transaction is needed to adjust the minimum bounding rectangle (MBR) in the parent page, we must disable redo logging if the table is a temporary table. For temporary tables, no log is supposed to be written, because the temporary tablespace will be reinitialized on server restart. rtr_update_mbr_field(), rtr_merge_and_update_mbr(): Changed the return type to void and removed unreachable code. In older versions, these used to return a different value for temporary tables. page_id_t: Add constexpr to most member functions. mtr_t::log_write(): Catch log writes to invalid tablespaces so that the test case would crash without the fix to row_ins_sec_index_entry_low().
* Merge 10.4 into 10.5Marko Mäkelä2022-02-141-0/+1
|\
| * Merge 10.3 into 10.4Marko Mäkelä2022-02-141-0/+1
| |\
| | * Merge 10.2 into 10.3Marko Mäkelä2022-02-141-0/+1
| | |\
| | | * Disable innodb_gis.rtree_compress2Marko Mäkelä2022-02-111-0/+1
| | | |
* | | | Merge branch '10.4' into 10.5Oleksandr Byelkin2022-02-012-0/+15
|\ \ \ \ | |/ / /
| * | | Merge branch '10.3' into 10.4Oleksandr Byelkin2022-01-302-0/+15
| |\ \ \ | | |/ /
| | * | Merge branch '10.2' into 10.3mariadb-10.3.33Oleksandr Byelkin2022-01-292-0/+15
| | |\ \ | | | |/
| | | * MDEV-27417 InnoDB spatial index updates change buffer bitmap pageThirunarayanan Balathandayuthapani2022-01-202-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | - InnoDB change buffer doesn't support spatial index. Spatial index should avoid change the buffer bitmap page when the page split happens.
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-08-251-0/+2
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-08-251-0/+2
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2021-08-231-0/+2
| | |\ \ | | | |/
| | | * Disable 2 commonly failing innodb_gis testsMarko Mäkelä2021-08-231-0/+2
| | | |
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-08-182-29/+20
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-08-182-29/+20
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2021-08-182-29/+20
| | |\ \ | | | |/ | | | | | | | | MDEV-18734 FIXME: vcol.partition triggers ASAN heap-use-after-free
| | | * MDEV-26131 SEGV in ha_innobase::discard_or_import_tablespaceThirunarayanan Balathandayuthapani2021-08-162-29/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import operation without .cfg file fails when there is mismatch of index between metadata table and .ibd file. Moreover, MDEV-19022 shows that InnoDB can end up with index tree where non-leaf page has only one child page. So it is unsafe to find the secondary index root page. This patch does the following when importing the table without .cfg file: 1) If the metadata contains more than one index then InnoDB stops the import operation and report the user to drop all secondary indexes before doing import operation. 2) When the metadata contain only clustered index then InnoDB finds the index id by reading page 0 & page 3 instead of traversing the whole tablespace.
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-06-012-3/+25
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-06-012-3/+25
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2021-06-012-3/+25
| | |\ \ | | | |/
| | | * MDEV-25758 InnoDB spatial indexes miss large geometry fields after MDEV-25459Thirunarayanan Balathandayuthapani2021-05-272-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InnoDB should calculate the MBR for the first field of spatial index and do the comparison with the clustered index field MBR. Due to MDEV-25459 refactoring, InnoDB calculate the length of the first field and fails with too long column error.
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-03-316-35/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-03-316-35/+1
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2021-03-316-35/+1
| | |\ \ | | | |/
| | | * MDEV-13467: Feature request: Support for ST_Distance_Sphere()Anel Husakovic2021-03-276-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Cherry-pick 51e48b9f8981 - vscode gitignore - Thanks Robin Dupret for the review. Reviewed by:daniel@mariadb.org holyfoot@mariadb.com
* | | | Merge branch '10.4' into 10.5Sergei Golubchik2021-02-231-4/+2
|\ \ \ \ | |/ / /
| * | | Merge branch '10.3' into 10.4Sergei Golubchik2021-02-231-4/+2
| |\ \ \ | | |/ /
| | * | Merge branch '10.2' into 10.3Sergei Golubchik2021-02-221-4/+2
| | |\ \ | | | |/
| | | * Make innodb_gis.rtree_purge run fasterMarko Mäkelä2021-02-071-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A locking SELECT from an InnoDB table is very slow especially in debug builds. Replacing some INSERT...SELECT should not reduce the test coverage, because the test will still do DELETE (which will acquire explicit record locks).
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-04-292-90/+30
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-04-292-90/+30
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-04-282-90/+30
| | |\ \ | | | |/
| | | * Speed up innodb_gis.rtree_splitMarko Mäkelä2020-04-282-90/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INSERT...SELECT reading from an InnoDB table is slow due to creating explicit record locks. Use the sequence engine instead. Also, remove the space before rtr_page_need_second_split to actually make the debug injection work.
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-04-251-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | The functional changes of commit 5836191c8f0658d5d75484766fdcc3d838b0a5c1 (MDEV-21168) are omitted due to MDEV-742 having addressed the issue.
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-04-161-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | In main.index_merge_myisam we remove the test that was added in commit a2d24def8cc42d27c72d833abfb39ef24a2b96ba because it duplicates the test case that was added in commit 5af12e463549e4bbc2ce6ab720d78937d5e5db4e.
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-04-151-1/+1
| | |\ \ | | | |/
| | | * MDEV-20604: Duplicate key value is silently truncated to 64 characters in ↵Oleksandr Byelkin2020-04-014-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | print_keydup_error Added indication of truncated string for "s" and "M" formats
* | | | Updated optimizer costs in multi_range_read_info_const() and sql_select.ccMonty2020-03-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - multi_range_read_info_const now uses the new records_in_range interface - Added handler::avg_io_cost() - Don't calculate avg_io_cost() in get_sweep_read_cost if avg_io_cost is not 1.0. In this case we trust the avg_io_cost() from the handler. - Changed test_quick_select to use TIME_FOR_COMPARE instead of TIME_FOR_COMPARE_IDX to align this with the rest of the code. - Fixed bug when using test_if_cheaper_ordering where we didn't use keyread if index was changed - Fixed a bug where we didn't use index only read when using order-by-index - Added keyread_time() to HEAP. The default keyread_time() was optimized for blocks and not suitable for HEAP. The effect was the HEAP prefered table scans over ranges for btree indexes. - Fixed get_sweep_read_cost() for HEAP tables - Ensure that range and ref have same cost for simple ranges Added a small cost (MULTI_RANGE_READ_SETUP_COST) to ranges to ensure we favior ref for range for simple queries. - Fixed that matching_candidates_in_table() uses same number of records as the rest of the optimizer - Added avg_io_cost() to JT_EQ_REF cost. This helps calculate the cost for HEAP and temporary tables better. A few tests changed because of this. - heap::read_time() and heap::keyread_time() adjusted to not add +1. This was to ensure that handler::keyread_time() doesn't give higher cost for heap tables than for normal tables. One effect of this is that heap and derived tables stored in heap will prefer key access as this is now regarded as cheap. - Changed cost for index read in sql_select.cc to match multi_range_read_info_const(). All index cost calculation is now done trough one function. - 'ref' will now use quick_cost for keys if it exists. This is done so that for '=' ranges, 'ref' is prefered over 'range'. - scan_time() now takes avg_io_costs() into account - get_delayed_table_estimates() uses block_size and avg_io_cost() - Removed default argument to test_if_order_by_key(); simplifies code
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-03-2121-273/+221
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-03-2021-273/+221
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-03-2021-272/+219
| | |\ \ | | | |/ | | | | | | | | Also, clean up the test innodb_gis.geometry a little further.
| | | * MDEV-14057: Fix some testsMarko Mäkelä2020-03-193-7/+17
| | | |
| | | * MDEV-14057 InnoDB GIS tests fail.Alexey Botchkov2020-03-1815-247/+185
| | | | | | | | | | | | | | | | | | | | Tests fixed. MBR::Within() function fixed.
| | | * MDEV-21959 GIS error message doesn't show the wrong value, just the type.Alexey Botchkov2020-03-172-4/+4
| | | | | | | | | | | | | | | | Error message now shows the whole value.
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-01-204-8/+2
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-01-204-8/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | The MDEV-17062 fix in commit c4195305b2a8431f39a4c75cc1c66ba43685f7a0 was omitted.
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-01-202-6/+0
| | |\ \ | | | |/
| | | * Enable tests for --embeddedMarko Mäkelä2020-01-202-6/+0
| | | |
| | * | Merge branch '10.2' into 10.3Sergei Petrunia2020-01-172-2/+2
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # mysql-test/suite/galera/r/MW-388.result # mysql-test/suite/galera/t/MW-388.test # mysql-test/suite/innodb/r/truncate_inject.result # mysql-test/suite/innodb/t/truncate_inject.test # mysql-test/suite/rpl/r/rpl_stop_slave.result # mysql-test/suite/rpl/t/rpl_stop_slave.test # sql/sp_head.cc # sql/sp_head.h # sql/sql_lex.cc # sql/sql_yacc.yy # storage/xtradb/buf/buf0dblwr.cc
| | | * MDEV-21360 global debug_dbug pre-test value restoration issuesAlice Sherepa2020-01-151-1/+1
| | | |