mariadb/mysql-test/include
Aleksey Midenkov b7bba721ee MDEV-22166 CONVERT PARTITION: move out partition into a table
Syntax for CONVERT keyword

ALTER TABLE tbl_name
    [alter_option [, alter_option] ...] |
    [partition_options]

partition_option: {
    ...
    | CONVERT PARTITION partition_name TO TABLE tbl_name
}

Examples:

    ALTER TABLE t1 CONVERT PARTITION p2 TO TABLE tp2;

New ALTER_PARTITION_CONVERT_OUT command for
fast_alter_partition_table() is done in alter_partition_convert_out()
function which basically does ha_rename_table().

Partition to extract is marked with the same flag as dropped
partition: PART_TO_BE_DROPPED. Note that we cannot have multiple
partitioning commands in one ALTER.

For DDL logging basically the principle is the same as for other
fast_alter_partition_table() commands. The only difference is that it
integrates late Atomic DDL functions and introduces additional phase
of WFRM_BACKUP_ORIGINAL. That is required for binlog consistency
because otherwise we could not revert back after WFRM_INSTALL_SHADOW
is done. And before DDL log is complete if we crash or fail the
altered table will be already new but binlog will miss that ALTER
command. Note that this is different from all other atomic DDL in that
it rolls back until the ddl_log_complete() is done even if everything
was done fully before the crash.

Test cases added to:

  parts.alter_table \
  parts.partition_debug \
  versioning.partition \
  atomic.alter_partition
2021-10-26 17:07:46 +02:00
..
add_anonymous_users.inc
alter_table_mdev539.inc
analyze-format.inc
analyze-sync_with_master.test
analyze-timeout.test
assert.inc
assert_grep.inc MDEV-19371: Implement binlog_expire_logs_seconds for purging of binary logs 2021-05-10 09:36:40 +05:30
autoinc_mdev15353.inc
begin_include_file.inc
big_test.inc
big_test.require
binlog_combinations.combinations MDEV-22166 CONVERT PARTITION: move out partition into a table 2021-10-26 17:07:46 +02:00
binlog_combinations.inc MDEV-22166 CONVERT PARTITION: move out partition into a table 2021-10-26 17:07:46 +02:00
binlog_inject_error.inc
binlog_parallel_replication_marks.test MDEV-23108: Point in time recovery of binary log fails when sql_mode=ORACLE 2020-07-22 11:34:50 +05:30
binlog_start_pos.inc
bug38347.inc
bytes.inc
bytes2.inc
case_insensitive_file_system.require
case_insensitive_fs.require
case_sensitive_file_system.require
check-testcase.test MDEV-25506 (3 of 3): Do not delete .ibd files before commit 2021-06-09 17:06:07 +03:00
check-warnings.test
check_concurrent_insert.inc
check_events_off.inc
check_ftwrl_compatible.inc
check_ftwrl_incompatible.inc
check_ipv6.inc
check_key_reads.inc
check_key_req.inc
check_no_concurrent_insert.inc
check_no_row_lock.inc
check_shared_row_lock.inc
check_slave_is_running.inc
check_slave_no_error.inc
check_slave_param.inc
check_var_limit.inc
check_var_limit.require
cleanup_fake_relay_log.inc
column_compression_rpl.inc
column_compression_syntax_varbinary.inc MDEV-16708: fix in test failures(added --enable_prepared_warnings/--disable_prepared_warnings) 2021-06-17 19:30:24 +02:00
column_compression_syntax_varchar.inc MDEV-16708: fix in test failures(added --enable_prepared_warnings/--disable_prepared_warnings) 2021-06-17 19:30:24 +02:00
commit.inc Merge 10.4 into 10.5 2021-05-18 09:21:59 +03:00
common-tests.inc
concurrent.inc
connect2.inc
count_sessions.inc
crash_mysqld.inc
ctype_8bit.inc
ctype_ascii_order.inc MDEV-26572 Improve simple multibyte collation performance on the ASCII range 2021-09-13 08:03:25 +04:00
ctype_common.inc
ctype_czech.inc
ctype_datetime.inc
ctype_E05C.inc
ctype_filesort.inc
ctype_filesort2.inc
ctype_german.inc
ctype_heap.inc
ctype_ident_sys.inc
ctype_innodb_like.inc
ctype_like.inc
ctype_like_cond_propagation.inc
ctype_like_cond_propagation_utf8_german.inc
ctype_like_escape.inc
ctype_like_ignorable.inc
ctype_like_range_f1f2.inc
ctype_like_range_mdev14350.inc
ctype_mdev13118.inc
ctype_myanmar.inc
ctype_numconv.inc MDEV-16708: fixed issue with handling of the directive --enable-prepared-warnings in mysqltest 2021-06-17 19:30:24 +02:00
ctype_pad.inc
ctype_pad_all_engines.inc
ctype_pad_space.inc
ctype_regex.inc
ctype_regex_utf8.inc
ctype_str_to_date.inc
ctype_strtoll10.inc
ctype_thai.inc
ctype_uca_w2.inc
ctype_unescape.inc
ctype_unicode520.inc
ctype_unicode_latin.inc
ctype_utf8_ilseq.inc
ctype_utf8_table.inc
ctype_utf8mb4.inc Merge branch '10.2' into 10.3 2020-12-23 19:28:02 +01:00
daemon_example_bad_format.ini
daemon_example_bad_soname.ini
dbt3_s001.inc
ddl_i18n.check_events.inc
ddl_i18n.check_sp.inc
ddl_i18n.check_triggers.inc
ddl_i18n.check_views.inc
deadlock.inc
default_charset.inc
default_client.cnf
default_group_order.cnf
default_my.cnf
default_mysqld.cnf MDEV-4750 follow-up: Reduce disabling innodb_stats_persistent 2021-08-31 13:55:02 +03:00
default_optimizer_switch.inc
delete_anonymous_users.inc
diff_servers.inc
diff_tables.inc
empty_string_literal.inc
end_include_file.inc
endspace.inc
equal_fields_propagation_datetime.inc
expect_crash.inc
explain_non_select.inc
explain_utils.inc MDEV-16708: fixed issue with handling of the directive --enable-prepared-warnings in mysqltest 2021-06-17 19:30:24 +02:00
file_does_not_exist.inc
filter_file.inc MDEV-23844 Atomic DROP TABLE (single table) 2021-05-19 22:54:12 +02:00
force_restart.inc
func_hybrid_type.inc
func_str_ascii_checksum.inc
function_defaults.inc
function_defaults_notembedded.inc
galera_clear_sync_point.inc
galera_cluster.inc
galera_connect.inc MDEV-6536: galera IPv6 tests to connect using IPv6 2021-03-05 08:25:52 +11:00
galera_diff.inc
galera_end.inc
galera_have_debug_sync.inc Fix test failure on wsrep/variables test case. 2020-10-24 14:57:57 +03:00
galera_init.inc
galera_no_debug_sync.inc Fix MTR test wsrep.variables_debug 2021-04-26 09:56:46 +03:00
galera_set_sync_point.inc
galera_signal_sync_point.inc
galera_suspend.inc
galera_variables_ok.inc MDEV-25591 : Test case cleanups 2021-05-05 09:32:06 +03:00
galera_variables_ok_debug.inc MDEV-25591 : Test case cleanups 2021-05-05 09:32:06 +03:00
galera_wait_ready.inc
galera_wait_sync_point.inc
gap_lock_error_all.inc
gap_lock_error_cleanup.inc
gap_lock_error_init.inc
gap_lock_error_select.inc
gap_lock_error_update.inc
get_relay_log_pos.inc
gis_debug.inc
gis_generic.inc
gis_keys.inc
grant_cache.inc
have_32bit.inc
have_64bit.inc
have_archive.inc
have_archive.opt
have_aria.inc
have_aria_used_for_temp_tables.inc
have_auth_named_pipe.inc
have_big5.inc
have_binlog_checksum_off.inc
have_binlog_format_mixed.inc
have_binlog_format_mixed.opt
have_binlog_format_mixed_or_row.inc
have_binlog_format_mixed_or_statement.inc
have_binlog_format_row.inc
have_binlog_format_row.opt
have_binlog_format_row_or_statement.inc
have_binlog_format_statement.inc
have_binlog_format_statement.opt
have_blackhole.inc
have_blackhole.opt
have_case_insensitive_file_system.inc
have_case_insensitive_fs.inc
have_case_sensitive_file_system.inc
have_collation.inc
have_compress.inc
have_compress.require
have_cp866.inc
have_cp932.inc
have_cp1250_ch.inc
have_cp1251.inc
have_crypt.inc
have_csv.inc
have_dbi_dbd-mariadb.inc
have_debug.inc
have_debug_sync.inc
have_des.inc
have_eucjpms.inc
have_euckr.inc
have_example_plugin.inc
have_file_key_management.inc
have_gb2312.inc
have_gbk.inc
have_geometry.inc
have_geometry.require
have_hostname_cache.inc
have_innodb.combinations
have_innodb.inc
have_innodb_4k.inc
have_innodb_8k.inc
have_innodb_16k.inc
have_innodb_32k.inc
have_innodb_64k.inc
have_innodb_disallow_writes.inc
have_innodb_max_16k.inc
have_ipv4_mapped.inc
have_koi8r.inc
have_latin2_ch.inc
have_local_infile.inc
have_local_infile.require
have_log_bin-master.opt
have_log_bin-slave.opt
have_log_bin.inc
have_log_bin.require
have_lowercase0.inc
have_lowercase1.inc
have_lowercase2.inc
have_maria.inc
have_mariabackup.inc Merge 10.3 into 10.4 2020-09-03 15:53:38 +03:00
have_max_indexes_64.inc
have_max_indexes_128.inc
have_met_timezone.require
have_metadata_lock_info.inc
have_metadata_lock_info.opt
have_moscow_leap_timezone.require
have_mutex_deadlock_detector.inc
have_numa.inc
have_openssl.inc
have_outfile.inc
have_outfile.require
have_partition.inc
have_partition.opt
have_perfschema.inc
have_perror.require
have_plugin_auth.inc
have_plugin_auth.opt
have_plugin_interface.inc
have_plugin_server.inc
have_pool_of_threads.inc mtr: aix has no thread_pool 2021-07-06 15:50:58 +10:00
have_pool_of_threads.require
have_profiling.inc
have_profiling.require
have_query_cache.inc
have_query_cache.require
have_rocksdb.inc MDEV-25180 Atomic ALTER TABLE 2021-05-19 22:54:13 +02:00
have_rocksdb.opt MDEV-25180 Atomic ALTER TABLE 2021-05-19 22:54:13 +02:00
have_s3.inc
have_sequence.inc
have_sequence.opt
have_simple_parser.inc
have_sjis.inc
have_ssl_communication.inc
have_ssl_crypto_functs.inc
have_stat_tables.inc
have_stat_tables.opt
have_static_innodb.inc cleanup: have_static_innodb.inc 2020-10-27 09:24:15 +01:00
have_symlink.inc
have_symlink.require
have_tis620.inc
have_type_mysql_json.inc MDEV-24093: Detect during mysql_upgrade if type_mysql_json.so is needed and load it 2021-01-28 19:01:32 +01:00
have_type_mysql_json.opt MDEV-24093: Detect during mysql_upgrade if type_mysql_json.so is needed and load it 2021-01-28 19:01:32 +01:00
have_ucs2.inc
have_udf.inc
have_ujis.inc
have_unix_socket.inc
have_unix_socket.opt
have_utf8.inc MDEV-8334: Rename utf8 to utf8mb3 2021-05-19 06:48:36 +02:00
have_utf8mb4.inc
have_utf8mb4.require
have_utf16.inc
have_utf16.require
have_utf32.inc
have_utf32.require
have_working_dns.inc
have_working_dns.require
have_wsrep.inc
have_wsrep_enabled.inc
have_wsrep_provider.inc
have_xtrabackup.inc
icp_debug_kill.inc MDEV-23938: innodb row_search_idx_cond_check handle ICP_ABORTED_BY_USER 2020-10-16 09:44:03 +11:00
icp_tests.inc Merge 10.4 into 10.5 2021-04-14 11:35:39 +03:00
implicit_commit_helper.inc
index_merge1.inc Fix various spelling errors still found in code 2021-03-22 18:10:39 +11:00
index_merge2.inc
index_merge_2sweeps.inc
index_merge_ror.inc
index_merge_ror_cpk.inc
innodb-index.inc
innodb_checksum_algorithm.combinations MDEV-25105 Remove innodb_checksum_algorithm values none,innodb,... 2021-03-11 12:46:18 +02:00
innodb_checksum_algorithm.inc
innodb_encrypt_log.combinations
innodb_encrypt_log.inc
innodb_encrypt_tables.combinations
innodb_encrypt_tables.inc
innodb_page_size.combinations MDEV-23497 Make ROW_FORMAT=COMPRESSED read-only by default 2020-11-11 11:15:11 +02:00
innodb_page_size.inc
innodb_page_size_small.combinations MDEV-23497 Make ROW_FORMAT=COMPRESSED read-only by default 2020-11-11 11:15:11 +02:00
innodb_page_size_small.inc
innodb_prefix_index_cluster_optimization.combinations MDEV-23600 Division by 0 in row_search_with_covering_prefix 2020-09-01 15:52:36 +03:00
innodb_prefix_index_cluster_optimization.inc MDEV-23600 Division by 0 in row_search_with_covering_prefix 2020-09-01 15:52:36 +03:00
innodb_rollback_on_timeout.inc
innodb_row_format.combinations
innodb_row_format.inc
innodb_trx_weight.inc MDEV-24818 Concurrent use of InnoDB table is impossible until the first transaction is finished 2021-03-16 15:20:26 +02:00
innodb_undo_tablespaces.combinations
innodb_undo_tablespaces.inc
install_plugin_if_exists.inc
io_thd_fault_injection.inc
ipv6.inc
ipv6_clients.inc
is_embedded.inc
kill_and_restart_mysqld.inc
kill_binlog_dump_threads.inc
kill_galera.inc
kill_mysqld.inc
kill_query.inc
kill_query_and_diff_master_slave.inc
lcase_names.combinations MDEV-22166 CONVERT PARTITION: move out partition into a table 2021-10-26 17:07:46 +02:00
lcase_names.inc MDEV-22166 CONVERT PARTITION: move out partition into a table 2021-10-26 17:07:46 +02:00
libdaemon_example.ini
linux.inc
linux_sys_vars.inc
load_dump_and_upgrade.inc MDEV-22249 Upgrade testing between major versions in MTR 2020-06-01 00:45:24 +03:00
load_sysvars.inc
loaddata_autocom.inc
log_slow_debug_common.inc
long_test.inc
lowercase0.require
lowercase1.require
lowercase2.require
maria_empty_logs.inc Aria: Add transaction id to log of create table 2021-03-20 21:17:32 +02:00
maria_make_snapshot.inc
maria_make_snapshot_for_comparison.inc
maria_make_snapshot_for_feeding_recovery.inc
maria_verify_recovery.inc
master-slave.inc
max_indexes.inc
maybe_debug.combinations
maybe_debug.inc
maybe_pool_of_threads.combinations
maybe_pool_of_threads.inc mtr: aix - no pool of threads 2021-07-06 15:29:00 +10:00
min_null_cond.inc
mix1.inc MDEV-23379 Deprecate&ignore InnoDB concurrency throttling parameters 2020-08-04 06:59:29 +03:00
mix2.inc MDEV-23397 Remove deprecated InnoDB options in 10.6 2020-08-04 12:51:59 +03:00
mix2_ucs2.inc
mrr_tests.inc
mtr_check.sql MDEV-9077 Use sys schema in bootstrapping, incl. mtr 2021-03-18 08:02:48 +01:00
mtr_warnings.sql MDEV-22189: Change error messages inside code to have mariadb instead of 2021-05-24 11:38:13 +05:30
mysql_upgrade_preparation.inc MDEV-9077 Use sys schema in bootstrapping, incl. mtr 2021-03-18 08:02:48 +01:00
mysqladmin_shutdown.inc
mysqlbinlog_have_debug.inc
mysqldump.inc
mysqlhotcopy.inc
mysqltest-x.inc
no_protocol.inc
no_running_event_scheduler.inc
no_running_events.inc
no_valgrind_without_big.inc
not_aix.inc mtr: aix - no pool of threads 2021-07-02 17:17:19 +10:00
not_as_root.inc
not_asan.inc Fix all warnings given by UBSAN 2021-04-20 12:30:09 +03:00
not_binlog_format_row.inc
not_blackhole.inc
not_crashrep.inc
not_debug.inc
not_embedded.inc
not_encrypted.inc
not_parallel.inc
not_ssl.inc
not_staging.inc
not_staging.require
not_threadpool.inc
not_ubsan.inc Fix all warnings given by UBSAN 2021-04-20 12:30:09 +03:00
not_valgrind.inc
not_valgrind.require
not_var_link.inc
not_windows.inc
not_windows_embedded.inc
one_thread_per_connection.inc
one_thread_per_connection.require
parser_bug21114.inc
partition_date_range.inc
partition_mrr.inc
percona_nonflushing_analyze_debug.inc MDEV-15101: Stop ANALYZE TABLE from flushing table definition cache 2020-06-12 21:15:30 +03:00
platform.combinations MDEV-25894: support AIX as a platform in mtr 2021-07-02 17:17:19 +10:00
platform.inc
plugin.defs
print_ddl_log.inc MDEV-18465 Logging of DDL statements during backup 2021-05-19 22:54:13 +02:00
protocol.combinations MDEV-26142: Fix failures of the tests main.features and sys_vars.stored_program_cache_func when they are run in PS mode 2021-07-15 16:27:31 +07:00
protocol.inc MDEV-26142: Fix failures of the tests main.features and sys_vars.stored_program_cache_func when they are run in PS mode 2021-07-15 16:27:31 +07:00
ps_conv.inc Fix various spelling errors still found in code 2021-03-22 18:10:39 +11:00
ps_create.inc
ps_ddl_1.inc
ps_modify.inc
ps_modify1.inc
ps_query.inc
ps_renew.inc
query_cache.inc
query_cache_partitions.inc
query_cache_sql_prepare.inc
read_many_rows.inc
relocate_binlogs.inc
require_openssl_client.inc
reset_master_slave.inc
restart_mysqld.inc Fixed bug in mtr that caused restart to fail if mysqld died to fast 2021-05-26 22:17:51 +03:00
restart_slave_sql.inc
restore_charset.inc
rowid_filter_debug_kill.inc MDEV-22761: innodb row_search_idx_cond_check handle CHECK_ABORTED_BY_USER 2020-10-14 15:14:46 +03:00
rowid_order.inc
rpl_assert.inc
rpl_change_topology.inc
rpl_connect.inc
rpl_connection.inc
rpl_diff.inc
rpl_end.inc
rpl_for_each_slave.inc
rpl_generate_sync_chain.inc
rpl_init.combinations
rpl_init.inc
rpl_ip_mix.inc
rpl_ip_mix2.inc
rpl_ipv6.inc
rpl_loaddata_charset.inc
rpl_multi_engine.inc
rpl_multi_engine2.inc
rpl_multi_engine3.inc
rpl_reconnect.inc
rpl_reset.inc
rpl_restart_server.inc
rpl_row_img_general_loop.inc
rpl_row_img_set.inc
rpl_start_server.inc
rpl_start_slaves.inc
rpl_stmt_seq.inc
rpl_stop_server.inc MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown 2020-08-21 14:48:53 +03:00
rpl_stop_slaves.inc
rpl_sync.inc
rpl_udf.inc
running_event_scheduler.inc
save_master_gtid.inc
save_master_pos.inc
search_pattern_in_file.inc Merge 10.4 into 10.5 2020-08-21 20:32:04 +03:00
set_binlog_format_mixed.sql
set_binlog_format_row.sql
set_binlog_format_statement.sql
setup_fake_relay_log.inc
show_all_slaves_status.inc
show_binary_logs.inc
show_binlog_events.inc
show_binlog_events2.inc
show_binlog_using_logname.inc
show_delayed_slave_state.inc
show_events.inc Speed up atomic test suite by improving wait_until_connected_again.inc 2021-05-24 21:04:40 +03:00
show_gtid_list.inc
show_master_logs.inc
show_master_status.inc
show_msg.inc
show_msg80.inc
show_relaylog_events.inc
show_rpl_debug_info.inc MDEV-19371: Implement binlog_expire_logs_seconds for purging of binary logs 2021-05-10 09:36:40 +05:30
show_slave_hosts.inc
show_slave_status.inc MDEV-26307 multi-source-replication support mysql syntax(for channel) 2021-09-14 17:57:27 +03:00
shutdown_mysqld.inc Merge 10.4 into 10.5 2020-08-21 20:32:04 +03:00
sp-vars.inc
start_mysqld.inc
start_slave.inc
stop_dump_threads.inc
stop_slave.inc
stop_slave_io.inc
stop_slave_sql.inc
strict_autoinc.inc
subselect_mat_cost.inc
support_long_file_names.inc
switch_to_mysql_global_priv.inc
switch_to_mysql_user.inc
sync_io_with_master.inc
sync_slave_io_with_master.inc
sync_slave_sql_with_io.inc
sync_slave_sql_with_master.inc
sync_with_master.inc
sync_with_master_gtid.inc
system_db_struct.inc
test_fieldsize.inc
test_outfile.inc
testdb_only.inc
tpcb.inc
tpcb_disk_data.inc
true.require
truncate_file.inc
type_hrtime.inc
type_temporal_zero_default.inc
unsafe_binlog.inc
update_use_source.inc
uses_vardir.inc
varchar.inc
view_alias.inc
wait_condition.inc
wait_condition_sp.inc
wait_condition_with_debug.inc
wait_for_binlog_checkpoint.inc
wait_for_binlog_event.inc
wait_for_line_count_in_file.inc
wait_for_purge.inc
wait_for_query_to_fail.inc
wait_for_query_to_succeed.inc
wait_for_slave_io_error.inc
wait_for_slave_io_to_start.inc
wait_for_slave_io_to_stop.inc
wait_for_slave_param.inc
wait_for_slave_sql_error.inc
wait_for_slave_sql_error_and_skip.inc
wait_for_slave_sql_to_start.inc
wait_for_slave_sql_to_stop.inc
wait_for_slave_to_start.inc
wait_for_slave_to_stop.inc
wait_for_sql_thread_read_all.inc MDEV-26307 multi-source-replication support mysql syntax(for channel) 2021-09-14 17:57:27 +03:00
wait_for_status_var.inc
wait_show_condition.inc
wait_until_connected_again.inc Fixed bug in mtr that caused restart to fail if mysqld died to fast 2021-05-26 22:17:51 +03:00
wait_until_count_sessions.inc
wait_until_disconnected.inc dissapear -> disappear 2021-07-26 12:40:01 +02:00
wait_until_ready.inc
wait_until_rows_count.inc
wait_wsrep_ready.inc
weight_string.inc
weight_string_8EA1.inc
weight_string_8FA2C3.inc
weight_string_8140.inc
weight_string_A1A1.inc
weight_string_chde.inc
weight_string_euro.inc
weight_string_l1.inc
weight_string_l2.inc
weight_string_l3.inc
weight_string_l4.inc
weight_string_l12.inc
weight_string_l14.inc
windows.inc
windows_sys_vars.inc
word_size.combinations
word_size.inc
world.inc
world_schema.inc
world_schema1.inc
world_schema_utf8.inc
write_result_to_file.inc
write_var_to_file.inc
wsrep_wait_condition.inc
wsrep_wait_disconnect.inc
wsrep_wait_membership.inc