MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Aleksey Midenkov 69724805bc MDEV-22165 CONVERT TABLE: move in partition from existing table
Syntax for CONVERT TABLE

ALTER TABLE tbl_name CONVERT TABLE tbl_name TO PARTITION partition_name partition_spec

Examples:

    ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 VALUES LESS THAN MAX_VALUE();

New ALTER_PARTITION_CONVERT_IN command for
fast_alter_partition_table() is done in alter_partition_convert_in()
function which basically does ha_rename_table().

Table structure and data check is basically the same as in EXCHANGE
PARTITION command. And these are done by
compare_table_with_partition() and check_table_data().

Atomic DDL is done by the scheme from MDEV-22166 (see the
corresponding commit message). The only differnce is that it also has
to drop source table frm and that is done by WFRM_DROP_CONVERTED_FROM.

Initial patch was done by Dmitry Shulga <dmitry.shulga@mariadb.com>
2021-10-26 17:07:46 +02:00
.github Add Pull Request template file to the MariaDB/server repository 2021-05-27 16:28:28 +03:00
BUILD Fixed BUILD scripts to remove all .gcov and .gcno files from submodules 2021-06-14 20:36:36 +03:00
client MDEV-26221: DYNAMIC_ARRAY use size_t for sizes 2021-10-19 16:00:26 +03:00
cmake libfmt fix for cmake <3.0 2021-10-25 21:37:16 +02:00
dbug Vanilla cleanups and refactorings 2021-10-26 17:07:46 +02:00
debian MDEV-9245: Deb packaging include password_reuse_check.so 2021-10-19 17:35:06 +02:00
Docs Clean up logcheck.ignore.* configs and unify MariaDB.org links with https 2020-04-23 10:07:07 +03:00
extra MDEV-26221: DYNAMIC_ARRAY use size_t for sizes 2021-10-19 16:00:26 +03:00
include Vanilla cleanups and refactorings 2021-10-26 17:07:46 +02:00
libmariadb@0bf84c065e Merge 10.5 into 10.6 2021-10-21 16:06:34 +03:00
libmysqld MDEV-19275 Provide SQL service to plugins. 2021-10-19 17:35:06 +02:00
libservices MDEV-19275 Provide SQL service to plugins. 2021-10-19 17:35:06 +02:00
man Merge 10.5 into 10.6 2021-10-13 13:28:12 +03:00
mysql-test MDEV-22165 CONVERT TABLE: move in partition from existing table 2021-10-26 17:07:46 +02:00
mysys Vanilla cleanups and refactorings 2021-10-26 17:07:46 +02:00
mysys_ssl Merge 10.3 into 10.4 2020-10-22 13:27:18 +03:00
plugin Vanilla cleanups and refactorings 2021-10-26 17:07:46 +02:00
randgen/conf
scripts Remove trailing space 2021-10-21 17:20:24 +02:00
sql MDEV-22165 CONVERT TABLE: move in partition from existing table 2021-10-26 17:07:46 +02:00
sql-bench MDEV-24854: Change innodb_flush_method=O_DIRECT by default 2021-02-20 11:58:58 +02:00
sql-common MDEV-19275 Provide SQL service to plugins. 2021-10-19 17:35:06 +02:00
storage Vanilla cleanups and refactorings 2021-10-26 17:07:46 +02:00
strings MDEV-26221: DYNAMIC_ARRAY use size_t for sizes 2021-10-19 16:00:26 +03:00
support-files Merge 10.6 into 10.7 2021-09-30 11:01:07 +03:00
tests Merge 10.6 into 10.7 2021-10-05 19:28:18 +03:00
tpool MDEV-24512 fixup: Remove after_task_callback 2021-09-14 16:23:23 +03:00
unittest Merge 10.6 into 10.7 2021-09-30 11:01:07 +03:00
vio MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
win Merge 10.5 into 10.6 2021-09-11 17:55:27 +03:00
wsrep-lib@22921e7082 MDEV-26707 SR transaction rolls back locally, but not in cluster 2021-10-12 07:25:13 +03:00
zlib Merge branch '10.3' into 10.4 2020-12-25 09:13:28 +01:00
.clang-format Merge 10.4 into 10.5 2019-12-27 21:17:16 +02:00
.gitattributes .gitattributes - correct language detection 2021-01-15 18:29:35 +11:00
.gitignore Merge 10.6 into 10.7 2021-10-22 14:41:47 +03:00
.gitlab-ci.yml Misc improvements to the Gitlab-CI pipeline for MariaDB 2021-09-29 20:39:50 -07:00
.gitmodules Add stub for building ColumnStore 2020-06-19 21:04:17 +02:00
.travis.compiler.sh MDEV-19780 Remove the TokuDB storage engine 2020-05-14 10:11:47 +03:00
.travis.yml MDEV-25288 follow-up: Remove traces of unstable-tests 2021-06-11 15:59:02 +03:00
appveyor.yml MDEV-26527 : appveyor - do not clone Columnstore 2021-09-11 00:54:08 +02:00
BUILD-CMAKE
CMakeLists.txt Merge 10.6 into 10.7 2021-10-22 14:41:47 +03:00
config.h.cmake Added support to MEM_ROOT for write protected memory 2021-07-18 19:59:35 +03:00
configure.cmake Merge 10.6 into 10.7 2021-10-22 14:41:47 +03:00
CONTRIBUTING.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
COPYING
CREDITS Update sponsors 2021-03-12 07:02:29 +11:00
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md Remove mention of Freenode 2021-09-22 07:15:08 +02:00
THIRDPARTY
VERSION bump the VERSION 2021-09-24 19:32:24 +02:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: The open source relational database

MariaDB was designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation and the MariaDB Corporation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Corporation, the MariaDB Foundation and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.org

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

https://mariadb.com/kb/en/new-and-old-releases/

Help

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss, MariaDB's Zulip instance, https://mariadb.zulipchat.com/

Live QA for beginner contributors

MariaDB has a dedicated time each week when we answer new contributor questions live on Zulip. From 8:00 to 10:00 UTC on Mondays, and 10:00 to 12:00 UTC on Thursdays, anyone can ask any questions theyd like, and a live developer will be available to assist.

New contributors can ask questions any time, but we will provide immediate feedback during that interval.

Licensing


NOTE:

MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server