From b26f5056f13108be6f4a03ae03cd40820f35e274 Mon Sep 17 00:00:00 2001 From: liuheng Date: Sat, 13 May 2023 20:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86fastcheck=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../postgres_fdw/expected/postgres_fdw.out | 1 - .../expected/postgres_fdw_partition.out | 1 - .../expected/function_get_table_def.out | 1 + src/test/regress/expected/rename_table.out | 1 + src/test/regress/parallel_schedule0A | 554 +++++++----------- src/test/regress/parallel_schedule0B | 414 +++++++++---- src/test/regress/parallel_schedule0C | 195 +++++- .../regress/sql/function_get_table_def.sql | 2 + 8 files changed, 721 insertions(+), 448 deletions(-) diff --git a/contrib/postgres_fdw/expected/postgres_fdw.out b/contrib/postgres_fdw/expected/postgres_fdw.out index 33c7888c3..0eda9de2e 100755 --- a/contrib/postgres_fdw/expected/postgres_fdw.out +++ b/contrib/postgres_fdw/expected/postgres_fdw.out @@ -4633,7 +4633,6 @@ HINT: No function matches the given name and argument types. You might need to CONTEXT: referenced column: least_agg -- Add function and aggregate into extension alter extension postgres_fdw add function least_accum(anyelement, variadic anyarray); -ERROR: function least_accum(anyelement,anyarray) is already a member of extension "postgres_fdw" alter extension postgres_fdw add aggregate least_agg(variadic items anyarray); ERROR: syntax error at or near "variadic" LINE 1: ...er extension postgres_fdw add aggregate least_agg(variadic i... diff --git a/contrib/postgres_fdw/expected/postgres_fdw_partition.out b/contrib/postgres_fdw/expected/postgres_fdw_partition.out index 485e39fdd..feac8e8dd 100644 --- a/contrib/postgres_fdw/expected/postgres_fdw_partition.out +++ b/contrib/postgres_fdw/expected/postgres_fdw_partition.out @@ -5482,7 +5482,6 @@ HINT: No function matches the given name and argument types. You might need to CONTEXT: referenced column: least_agg -- Add function and aggregate into extension alter extension postgres_fdw add function least_accum(anyelement, variadic anyarray); -ERROR: function least_accum(anyelement,anyarray) is already a member of extension "postgres_fdw" alter extension postgres_fdw add aggregate least_agg(variadic items anyarray); ERROR: syntax error at or near "variadic" LINE 1: ...er extension postgres_fdw add aggregate least_agg(variadic i... diff --git a/src/test/regress/expected/function_get_table_def.out b/src/test/regress/expected/function_get_table_def.out index f2731284d..680a91d91 100644 --- a/src/test/regress/expected/function_get_table_def.out +++ b/src/test/regress/expected/function_get_table_def.out @@ -807,3 +807,4 @@ select * from pg_get_tabledef('test'); (1 row) \c regression +DROP database mysql; diff --git a/src/test/regress/expected/rename_table.out b/src/test/regress/expected/rename_table.out index 92b8966bf..df2357423 100644 --- a/src/test/regress/expected/rename_table.out +++ b/src/test/regress/expected/rename_table.out @@ -1,4 +1,5 @@ drop database if exists mysql; +NOTICE: database "mysql" does not exist, skipping create database mysql dbcompatibility 'B'; \c mysql create schema test; diff --git a/src/test/regress/parallel_schedule0A b/src/test/regress/parallel_schedule0A index 09ebeebcb..55d92ded2 100644 --- a/src/test/regress/parallel_schedule0A +++ b/src/test/regress/parallel_schedule0A @@ -1,34 +1,131 @@ + # ---------- -# src/test/regress/parallel_schedule0A +# src/test/regress/parallel_schedule # # By convention, we put no more than twenty tests in any one parallel group; # this limits the number of connections needed to run the tests. # ---------- -test: hw_subpartition_createtable hw_subpartition_scan hw_subpartition_select hw_subpartition_split hw_subpartition_truncate hw_subpartition_update hw_subpartition_gpi hw_subpartition_alter_table hw_subpartition_index hw_subpartition_add_drop_partition hw_subpartition_tablespace hw_subpartition_ddl_index -test: hw_subpartition_vacuum_partition +# This test case is used to monitor GUC parameter information. +# If the GUC parameter is changed, please modify the Code/src/bin/gs_guc/cluster_guc.conf and Code/src/test/regress/output/recovery_2pc_tools.source files. +#test: recovery_2pc_tools recovery_2pc_tools02 +test: recovery_2pc_tools -test: smp single_node_user_mapping +test: sqlbypass_partition +test: sqlpatch_base +test: sqlpatch_func -test: replace_func_with_two_args trunc_func_for_date updatable_views outerjoin_bugfix +test: extract_pushdown_or_clause +#wlm +test: workload_manager + +test: spm_adaptive_gplan +test: smp +test: alter_hw_package +test: hw_grant_package gsc_func gsc_db +test: uppercase_attribute_name decode_compatible_with_o outerjoin_bugfix +test: replace_func_with_two_args trunc_func_for_date nlssort_pinyin updatable_views + +# test multiple statistics +test: functional_dependency +test: pg_proc_test + +# test fdw +# NOTICE: In the "fdw_prepare", we copy the fdw test to be used from contrib into regress sql set. +test: fdw_prepare +test: postgres_fdw postgres_fdw_cstore postgres_fdw_partition + +# parse xlog and page +#test: parse_page +#test: parse_xlog + +#test user_defined_variable +test: set_user_defined_variables_test +test: set_system_variables_test + +# test for set [session | global] transaction +test: set_transaction_test + +# test select into statement +test: select_into_user_defined_variables +test: select_into_file + +test: gs_dump_package trigger_dump +test: out_param_func +#test: sqlcode_cursor +test: gs_dump_tableconstraint + +# test AI4DB +test: plpgsql_override_out +test: plpgsql_sql_with_proc_keyword +test: plsql_show_all_error b_pg_plsql_show_all_error +test: pldeveloper_gs_source +test: index_advisor +#test: pl_debugger_server pl_debugger_client +test: update_for_wait_s1 update_for_wait_s2 +test: plan_hint plan_hint_set plan_hint_no_expand plan_hint_iud null_test_opt deserialize_func +test: large_sequence int16 gs_dump_sequence +test: gs_dump_tableof view_definer_test view_definer_permission_test test: analyze_commands #test: single_node_job test: single_node_ddl test: single_node_sqlbypass -test: median +test: median deferrable +test: array_funcs first_last_agg + +test: hw_pwd_encryption_sm3 + +test: sync_standy_names + +#test event +test: event +test: event_dump_audit + +#test sha func +test: single_node_sha + +#test b format collation +test: test_b_format_collate charset_b_format + +# test subpartition +test: hw_subpartition_createtable hw_subpartition_scan hw_subpartition_select hw_subpartition_split hw_subpartition_truncate hw_subpartition_update hw_subpartition_gpi hw_subpartition_analyze_vacuum hw_subpartition_alter_table hw_subpartition_index hw_subpartition_add_drop_partition hw_subpartition_tablespace hw_subpartition_ddl_index hw_subpartition_size +test: hw_subpartition_vacuum_partition hw_subpartition_tablespace_global +test: gs_dump_subpartition +test: partition_dml_operations partition_minmax partition_pruning hw_partitionno hw_partition_parallel +test: partition_param_path hw_subpartition_add_drop_partition_1 +#test: partition_cost_model +test: row_partition_iterator_elimination col_partition_iterator_elimination + +# test subpartition with segment=on +test: segment_subpartition_createtable segment_subpartition_scan segment_subpartition_select segment_subpartition_split segment_subpartition_truncate segment_subpartition_update segment_subpartition_gpi segment_subpartition_analyze_vacuum segment_subpartition_alter_table segment_subpartition_add_drop_partition segment_subpartition_tablespace segment_subpartition_ddl_index +test: segment_subpartition_vacuum_partition segment_subpartition_select_1 + +test: get_instr_unique_sql # run tablespace by itself, and first, because it forces a checkpoint; # we'd prefer not to have checkpoints later in the tests because that # interferes with crash-recovery testing. test: single_node_tablespace -test: large_sequence int16 gs_dump_sequence +#test startwith...connect by +test: sw_prepare +test: sw_basic sw_icbc sw_siblings sw_bugfix-1 sw_bugfix-2 sw_by_rownum_level +test: sw_clearup +# test customer base environment hint +test: hw_cbt_hint_prep +test: hw_cbt_hint +test: hw_cbt_hint_drop + +#-------------- +# any privilege +# ------------- +test: pri_alter_any_table pri_create_any_function pri_create_any_index pri_create_any_sequence pri_create_any_type pri_dml_any_table pri_execute_any_function pri_indepent_any pri_any_package pri_samenew_schema # ---------- # The first group of parallel tests # ---------- -test: single_node_boolean single_node_char single_node_name single_node_varchar single_node_text single_node_int2 single_node_int4 single_node_int8 single_node_oid single_node_float4 single_node_float8 single_node_bit single_node_numeric single_node_txid single_node_uuid single_node_enum single_node_money +test: single_node_boolean single_node_char single_node_name single_node_varchar single_node_text single_node_int2 single_node_int4 single_node_int8 single_node_oid single_node_float4 single_node_float8 single_node_bit single_node_numeric single_node_txid single_node_uuid single_node_enum single_node_money single_node_nvarchar # Depends on things setup during char, varchar and text #test: single_node_strings @@ -80,7 +177,7 @@ test: single_node_create_function_1 # These depend on the above two #test: single_node_create_index #test: single_node_create_view - +test: single_node_test_null_operator # ---------- # Another group of parallel tests # ---------- @@ -114,10 +211,14 @@ test: single_node_select_implicit single_node_select_having test: single_node_union #test: single_node_case single_node_join single_node_aggregates #test: single_node_transactions -test: single_node_random +test: single_node_random transactions_test autocommit_test #test: single_node_portals #test: single_node_arrays #test: single_node_btree_index single_node_hash_index single_node_update + +test: prefixkey_index invisible_index +test: hash_index_001 +test: hash_index_002 test: single_node_update #test single_node_namespace #test: single_node_prepared_xacts @@ -148,6 +249,7 @@ test: single_node_bitmapops single_node_combocid #single_node_window #test: single_node_xmlmap #test: single_node_functional_deps single_node_advisory_lock single_node_json single_node_equivclass +test: xml # ---------- # Another group of parallel tests @@ -164,7 +266,9 @@ test: single_node_sequence # run and check forbidden functions are still forbidden to use in single node test: single_node_forbidden -test: single_node_mergeinto merge_subquery merge_subquery3 + +test: single_node_mergeinto merge_subquery merge_subquery3 merge_1 +test: merge_where_col # Trigger tests test: single_node_triggers @@ -172,6 +276,7 @@ test: single_node_triggers # Synonym tests #test: single_node_synonym +test: synonym_conflict_test # unsupported view tests test: single_node_unsupported_view @@ -180,10 +285,108 @@ test: single_node_unsupported_view # ---------- # single_node_commit/rollback tests # ---------- +test: single_node_produce_commit_rollback +test: single_node_function_commit_rollback + +test: instr_unique_sql +test: auto_explain plan_table_for_anonymous_block +test: shutdown + +# List/Hash table exchange +test: hw_partition_list_exchange +test: hw_partition_hash_exchange + +# List/Hash table truncate +test: hw_partition_list_truncate hw_partition_hash_truncate + +# add/drop partition +test: hw_partition_add_drop_partition + +# create view on partition/subpartition +test: hw_partition_create_view + +#test: hw_partition_start_end +# To check min_max fuc support IP +test: min_max_support_IP + +# encrypt decrypt +test: encrypt_decrypt + # interval partition +test: hw_partition_interval +test: hw_partition_interval_exchange test: hw_partition_interval_index +test: hw_partition_interval_unusable_index +test: hw_partition_interval_reindex +test: hw_partition_interval_movement +# To check create interval partition parallel +test: hw_partition_interval_parallel_prepare +test: hw_partition_interval_parallel_insert hw_partition_interval_parallel_insert_01 hw_partition_interval_parallel_insert_02 +test: hw_partition_interval_parallel_end test: hw_partition_interval_select +test: hw_partition_interval_check_syntax +test: hw_partition_interval_split +test: hw_partition_interval_merge test: hw_partition_interval_compatibility +test: hw_partition_interval_dump_restore + +# Global Partition Index feature testcase +# gpi create +test: gpi_build_index + +# gpi check +test: gpi_create_constraint +test: gpi_unique_check + +# gpi index scan +test: gpi_index + +# gpi index only scan +test: gpi_index_only + +# gpi bitmap +test: gpi_bitmapscan + +# gpi pwj +test: gpi_pwj + +# gpi set unusable +test: gpi_set_index_unusable + +# gpi rebuild +#test: gpi_rebuild_index + +# gpi cluster +test: gpi_cluster_01 gpi_cluster_02 gpi_cluster_03 + +# gpi interval +test: gpi_interval + +# gpi range +test: gpi_range + +# gpi invliad part +test: gpi_invalid_part +test: gpi_clean_wait + +# gpi vacuum +test: gpi_vacuum_lazy +test: gpi_hw_partition_vacuum_full +test: gpi_hw_partition_vacuum_full_01 + +# gpi alter +test: gpi_alter_partition +test: gpi_alter_partition_with_update +# test: gpi_merge_partitions + +# global temporary table tests +test: gtt_stats +test: gtt_function +test: gtt_prepare +test: gtt_parallel_1 gtt_parallel_2 +test: gtt_clean +test: gtt_merge + #openGauss synchronization test cases test: partiton_pathkey_col_plan partiton_pathkey_col_randomexec partiton_pathkey_row_plan partiton_pathkey_row_randomexec #test the locales setting expect not affacted each other @@ -194,10 +397,12 @@ test: partiton_pathkey_col_plan partiton_pathkey_col_randomexec partiton_pathkey # ---------- #test: type_sanity #test: create_function_1 -test: create_table +test: create_table create_table_2 create_table_3 test: temp__4 #test: copy# + + # ---------- # More groups of parallel tests # duplicated create_misc @@ -213,138 +418,16 @@ test: create_view1 create_view2 create_view3 create_view4 create_view5 #test: stats #test: alter_system_set -# test for hll -test: hll_hash hll_func hll_para hll_mpp hll_cstore hll_misc - -# test for function pg_get_tabledef -test: function_get_table_def - #dispatch from 13 test: function test: aggregates_part1 aggregates_part2 aggregates_part3 count_distinct_part1 count_distinct_part2 count_distinct_part4 +test: aggregate_B_database +test: group_concat_max_len_gs_guc #test: count_distinct_part3# test: hw_dfx_thread_status test: stable_function_shippable -# ---------- -# data partition -# ---------- -test: physical_slot - -test: hw_smp - -# test MERGE INTO - -# test INSERT UPDATE UPSERT -#test: insert_update_002 insert_update_003 insert_update_008 insert_update_009 insert_update_010 -#test: insert_update_001# -test: delete update namespace case select_having select_implicit -test: hw_test_operate_user -test: hw_createtbl_llt -#test: gsqlerr# -test: sqlLLT -#test: hw_sql_llt# - -test: upsert_where - -#test: upsert_prepare -#test: upsert_001 upsert_002 upsert_003 upsert_008 upsert_009 upsert_010 -#test: upsert_grammer_test_01 upsert_unlog_test upsert_tmp_test -#test: upsert_grammer_test_02 upsert_restriction upsert_composite -#test: upsert_trigger_test upsert_explain upsert_where upsert_where_sublink -#test: upsert_clean - -# all pass -# run tablespace by itself, and first, because it forces a checkpoint; -# we'd prefer not to have checkpoints later in the tests because that -# interferes with crash-recovery testing. -test: hw_alter_session -test: tablespace -test: hw_account_lock - -# ---------- -# Another group of parallel tests -# ---------- -#test: hw_independent_user hw_user_basic hw_user_revoke hw_user_privilege hw_user_pguser hw_user_namespace -test: hw_interval_format hw_function_p_3 hw_function_p_4 hw_current_schema hw_functions -#test: hw_function_p_1 hw_function_p_2# -test: hw_dba_enable_partition hw_tablespace -test: hw_procedure_define -#test: hw_anonymous_block -#test: hw_procedure# -test: hw_grant_all hw_func_return_out -#hw_dynamic_sql -test: hw_package_function - -#show plan -#test: plan_hint - -###split from parallel_schedule4### - -# ---------- -# Another group of parallel tests -# ---------- -# plsql_packages tests - -test: hw_empty_str_to_null -test: hw_schema - -test: tpchrush -test: tpch01 tpch03 tpch04 libcomm_check_status tpch03_querymem -test: tpch05 tpch06 tpch07 tpch08 -test: tpch09 tpch10 tpch11 tpch12 -test: tpch13 tpch14 tpch15 tpch16 -test: tpch_vector_optimal -test: tpch18 tpch19 tpch20 tpch18_querymem -test: tpch21 tpch22 tpch11_pretty_performance -#test: tpch02 tpch17 - -#test export -test: temp__2 - -test: vec_prepare_001 vec_prepare_002 -test: vec_prepare_003 - -#test sort optimize -test: sort_optimize_row sort_optimize_column sort_optimize_001 -#test early free -test: early_free -#test for col tpch with vector engine disabled -test: tpch_disablevec01 tpch_disablevec03 tpch_disablevec04 -test: tpch_disablevec05 tpch_disablevec06 tpch_disablevec07 -test: tpch_disablevec08 tpch_disablevec09 tpch_disablevec12 -test: tpch_disablevec13 tpch_disablevec14 tpch_disablevec16 -test: tpch_disablevec18 tpch_disablevec19 tpch_disablevec21 - -# ---------- -# Postgres-XC additional tests -# ---------- - -# This was used by triggers -test: xc_create_function -# Now xc_misc is used by xc_returning_step1 and xc_returning_step2 -test: xc_misc -# Those ones can be run in parallel -test: xc_groupby xc_distkey xc_having -#test: hw_rewrite_lazyagg hw_light -test: xc_temp xc_FQS -#test: xc_remote hw_pbe -test: xc_FQS_join xc_copy -#test: xc_alter_table -test: xc_constraints xc_limit xc_sort -#test: xc_params xc_returning_step1 -test: xc_params -test: xc_returning_step2 - -#test row compress -#test: compress compress01 compress02 cmpr_toast_000 cmpr_toast_update cmpr_index_00 cmpr_6bytes cmpr_int cmpr_datetime cmpr_numstr cmpr_numstr01 cmpr_float cmpr_nulls_delta cmpr_nulls_prefix cmpr_copyto cmpr_mode_none00 cmpr_mode_none01 cmpr_references_00 cmpr_references_01 -#test: cmpr_rollback cmpr_drop_column cmpr_drop_column_01 cmpr_drop_column_02 cmpr_drop_column_03 cmpr_dead_loop_00 cmpr_timewithzone cmpr_cluster_00 - -# Cluster setting related test is independant - - -test: xc_dml # Postgres-XC : Removed this test from the parallel group of tests since it used to give inconsistent plan outputs. #test: inherit @@ -352,7 +435,8 @@ test: xc_dml # Another group of parallel tests # ---------- test: create_function_3 vacuum -#test: constraints drop_if_exists +test: drop_if_exists drop_database test_if_not_exists test_create_index_if_not_exists +#test: constraints #test: errors subplan_base test: subplan_new @@ -367,195 +451,9 @@ test: select_into subselect_part2 gs_aggregate test: holdable_cursor #test: portals_p2 window tsearch temp__6 col_subplan_base_2 -test: alter_table_000 alter_table_002 alter_table_003 -#test: alter_table_001 +test: alter_table_000 alter_table_002 alter_table_003 alter_table_modify +#test: alter_table_001 alter_table_modify_ustore +test: alter_table_modify_ltt alter_table_modify_gtt +test: alter_table_modify alter_table_modify_ustore alter_table_modify_ltt alter_table_modify_gtt -#test: with - -# ---------- -# Database security -# ---------- -test: hw_pwd_reuse -#test: hw_auditadmin - -test: performance_enhance -test: explain_fqs -#test: explain_pbe -# temp__3 create_table copy vec_prepare_001 vec_prepare_002 vec_prepare_003 int4 int8 are duplicated -test: temp__3 -# ---------- -# Another group of parallel tests -# NB: temp.sql does a reconnect which transiently uses 2 connections, -# so keep this parallel group to at most 19 tests -# ---------- -#test: plpgsql -test: plpgsql_multiset -test: plpgsql_array_opengauss -test: plpgsql_table_opengauss -test: arrayinterface_single -#arrayinterface_ted -#test: plancache limit rangefuncs prepare -# arrayinterface_ted -test: plpgsql_assign_value_to_array_attribute -test: plpgsql_cursor_rowtype -test: plpgsql_array_of_record -test: plpgsql_assign_list -test: plpgsql_package_type -test: plpgsql_record_attrname -test: hw_package_variable -test: returning largeobject -test: hw_explain_pretty1 hw_explain_pretty2 hw_explain_pretty3 -test: goto -test: equivalence_class -test: tsdb_delta2_compress -test: tsdb_xor_compress -#test: tsdb_aggregate - -test: readline -test: hw_to_timestamp hw_view_privilege - -test: hw_identifier -#test: hw_hashint1 hw_smalldatetime_hash hw_rawtype_hash -#test: hw_nvarchar2_hash cmpr_smallint cmpr_prefix_150left cmpr_uint32_oid -test: oidjoins opr_sanity_2 regex -#test: opr_sanity_1 - -test: pmk -# Cluster setting related test is independant -# ---------- -# Test of changed data type compatible with Oracle - -test: hw_datatype_2 hw_datatype_3 -#test: hw_datatype hw_datatype_set -test: test_regex llt_atc - -# ---------- -# test for set operations -# ---------- -test: select_nest_views -#test: enum -#show plan -test: col_joinplan col_joinnew -test: col_limit col_distinct col_prepare -test: col_function_1 col_function_2 col_count_distinct_1 col_count_distinct_2 col_count_distinct_3 col_count_distinct_4 -test: directory_test -test: analyse_verify -test: create_compositetype -test: hw_pct_type_and_rowtype -#test: create_basetype -#test: tabletype -#test with recursive -test: recursive_ref_recursive -#test: recursive_prepare -#test: recursive_cte -#test: recursive_cte_col -#test: nohashjoin_recursive_cte -#test: nohashjoin_recursive_cte_col -#test: others -#test: icbc_customer -#test: recursive_unshippable -#test: recursive_finalize -#test: recursive_cte_1 -test: test_relpages - -test: temp__3 -test: vec_window_pre -test: gin_test_2 -#test: window1 -test: vec_window_001 -#test: vec_window_002 -test: vec_numeric_sop_1 vec_numeric_sop_2 vec_numeric_sop_3 vec_numeric_sop_4 vec_numeric_sop_5 -#test: vec_window_end - -test: vec_unique_pre vec_bitmap_prepare -test: vec_unique vec_setop_001 vec_setop_002 vec_setop_003 vec_setop_004 hw_vec_int4 hw_vec_int8 hw_vec_float4 hw_vec_float8 -#test: vec_setop_005 -test: hw_vec_constrainst vec_numeric vec_numeric_1 vec_numeric_2 vec_bitmap_1 vec_bitmap_2 -test: disable_vector_engine -test: hybrid_row_column -test: retry -test: hw_replication_slots -test: insert -test: copy2 temp -test: truncate -#test: temp_table - -#test: b_compatibility -test: hw_compatibility -test: hw_groupingsets hw_row_grouping_set -test: char_truncation_common char_truncation_cast - -#this case is dispatched from schedule10(gin_test) -test: gin_test1 gin_test2 gin_test3 - -#the fallowing part is dispatched from schedule15 - -# FIXME: move me back to the parallel test when the refcnt issue is fixed -# Below two teste are unstable, temporarily ignoring. This is same to distribute_dattistic, relallvisible, Dongwang will solve the problem. - -#test: hw_expression_alias - - -#========================================================================================================================================== - - -# ---------- -# src/test/regress/parallel_schedule.33 -# -# By convention, we put no more than twenty tests in any one parallel group; -# this limits the number of connections needed to run the tests. -# ---------- - - -test: udf_crem - -test: create_c_function - -#---1. Drop-Column test -test: cstore_drop_column_replicated -#test: cstore_drop_column - -#split from parallel_schedule2 - -# ---------- -# Advisory lock need to be tested in series in Postgres-XC -# --------- -test: advisory_lock - -# ---------- -# Another group of parallel tests -# ---------- -test: cluster dependency bitmapops tsdicts functional_deps -test: json_and_jsonb json jsonb jsonb2 -#test: guc - -# test for vec sonic hash -test: vec_sonic_hashjoin_number_prepare -test: vec_sonic_hashjoin_number_nospill - -test: dml -test: hashfilter hashfilter_1 -test: reduce_orderby -#test: backtrace_log -#test: bulkload_start -test: bulkload_parallel_test_2 bulkload_parallel_test_3 -#test: bulkload_parallel_test_1 bulkload_parallel_test_4 - -test: tpchcol05 tpchcol07 tpchcol08 tpchcol09 - -test: tpchcol01 -test: tpchcol06 -test: tpchcol03 tpchcol04 -test: tpchcol12 tpchcol13 tpchcol14 tpchcol16 tpchcol18 tpchcol19 tpchcol21 - -test: vec_partition vec_partition_1 vec_material_001 - -test: llvm_vecsort llvm_vecsort2 - -test: udf_crem create_c_function - -# test: hw_package -# publication and subscription, we need to record audit log for them, so seperate them into two test group -test: publication -test: subscription -test: fdw_audit +#test: with \ No newline at end of file diff --git a/src/test/regress/parallel_schedule0B b/src/test/regress/parallel_schedule0B index a68ed6c69..f62c252ce 100644 --- a/src/test/regress/parallel_schedule0B +++ b/src/test/regress/parallel_schedule0B @@ -1,97 +1,121 @@ # ---------- -# src/test/regress/parallel_schedule0B -# -# By convention, we put no more than twenty tests in any one parallel group; -# this limits the number of connections needed to run the tests. +# data partition # ---------- +test: physical_slot -###split from parallel_schedule0### +test: hw_smp + +# test MERGE INTO + +# test INSERT UPDATE UPSERT +#test: insert_update_002 insert_update_003 insert_update_008 insert_update_009 insert_update_010 +#test: insert_update_001# +test: delete update namespace case select_having select_implicit +test: hw_test_operate_user multi_update +test: hw_createtbl_llt multi_delete +#test: gsqlerr# +test: sqlLLT +#test: hw_sql_llt# + +test: upsert_prepare +test: upsert_001 upsert_002 upsert_003 upsert_008 upsert_009 upsert_010 +test: upsert_grammer_test_01 upsert_unlog_test upsert_tmp_test +test: upsert_grammer_test_02 upsert_restriction upsert_composite +test: upsert_trigger_test upsert_explain upsert_where upsert_where_sublink +test: upsert_subquery +test: upsert_clean + +# all pass +# run tablespace by itself, and first, because it forces a checkpoint; +# we'd prefer not to have checkpoints later in the tests because that +# interferes with crash-recovery testing. +test: hw_alter_session +test: tablespace +test: hw_account_lock # ---------- -# single_node_commit/rollback tests +# Another group of parallel tests # ---------- -#test: pldeveloper_gs_source -test: plan_hint plan_hint_set plan_hint_no_expand plan_hint_iud -test: single_node_produce_commit_rollback +#test: hw_independent_user hw_user_basic hw_user_revoke hw_user_privilege hw_user_pguser hw_user_namespace +test: hw_interval_format hw_function_p_3 hw_function_p_4 hw_current_schema hw_functions +#test: hw_function_p_1 hw_function_p_2# +test: hw_dba_enable_partition hw_tablespace +test: hw_procedure_define +#test: hw_anonymous_block +#test: hw_procedure# +test: hw_grant_all hw_dynamic_sql hw_func_return_out +test: hw_package_function -test: instr_unique_sql -test: shutdown +#show plan +#test: plan_hint -# List/Hash table exchange -test: hw_partition_list_exchange -# test: hw_partition_hash_exchange +###split from parallel_schedule4### -# interval partition -test: hw_partition_interval -test: hw_partition_interval_exchange -test: hw_partition_interval_unusable_index psql_desc_unusable_index -test: hw_partition_interval_reindex -test: hw_partition_interval_movement -# To check create interval partition parallel -test: hw_partition_interval_parallel_prepare -test: hw_partition_interval_parallel_insert hw_partition_interval_parallel_insert_01 hw_partition_interval_parallel_insert_02 -test: hw_partition_interval_parallel_end -test: hw_partition_interval_check_syntax -test: hw_partition_interval_split -test: hw_partition_interval_merge -test: hw_partition_interval_dump_restore +# ---------- +# Another group of parallel tests +# ---------- +# plsql_packages tests -# Global Partition Index feature testcase -# gpi create -test: gpi_build_index +test: hw_empty_str_to_null +test: hw_schema -# gpi check -test: gpi_create_constraint -test: gpi_unique_check +test: tpchrush +test: tpch01 tpch03 tpch04 libcomm_check_status tpch03_querymem +test: tpch05 tpch06 tpch07 tpch08 +test: tpch09 tpch10 tpch11 tpch12 +test: tpch13 tpch14 tpch15 tpch16 +test: tpch_vector_optimal +test: tpch18 tpch19 tpch20 tpch18_querymem +test: tpch21 tpch22 tpch11_pretty_performance vector_procedure +#test: tpch02 tpch17 -# gpi index scan -#test: gpi_index +#test export +test: temp__2 -# gpi index only scan -test: gpi_index_only +test: vec_prepare_001 vec_prepare_002 +test: vec_prepare_003 -# gpi bitmap -test: gpi_bitmapscan +#test sort optimize +test: sort_optimize_row sort_optimize_column sort_optimize_001 +#test early free +test: early_free +#test sublink enhanced, including pullup-non-correlated-sublink and winmagic +test: sublink_pullup_enhance +#test for col tpch with vector engine disabled +test: tpch_disablevec01 tpch_disablevec03 tpch_disablevec04 +test: tpch_disablevec05 tpch_disablevec06 tpch_disablevec07 +test: tpch_disablevec08 tpch_disablevec09 tpch_disablevec12 +test: tpch_disablevec13 tpch_disablevec14 tpch_disablevec16 +test: tpch_disablevec18 tpch_disablevec19 tpch_disablevec21 -# gpi pwj -test: gpi_pwj +# ---------- +# Postgres-XC additional tests +# ---------- -# gpi set unusable -test: gpi_set_index_unusable +# This was used by triggers +test: xc_create_function +# Now xc_misc is used by xc_returning_step1 and xc_returning_step2 +test: xc_misc +# Those ones can be run in parallel +test: xc_groupby xc_distkey xc_having +#test: hw_rewrite_lazyagg hw_light +test: xc_temp xc_FQS +test: xc_remote hw_pbe +test: xc_FQS_join xc_copy +#test: xc_alter_table +test: xc_constraints xc_limit xc_sort +#test: xc_params xc_returning_step1 +test: xc_params +test: xc_returning_step2 -# gpi rebuild -#test: gpi_rebuild_index +#test row compress +#test: compress compress01 compress02 cmpr_toast_000 cmpr_toast_update cmpr_index_00 cmpr_6bytes cmpr_int cmpr_datetime cmpr_numstr cmpr_numstr01 cmpr_float cmpr_nulls_delta cmpr_nulls_prefix cmpr_copyto cmpr_mode_none00 cmpr_mode_none01 cmpr_references_00 cmpr_references_01 +#test: cmpr_rollback cmpr_drop_column cmpr_drop_column_01 cmpr_drop_column_02 cmpr_drop_column_03 cmpr_dead_loop_00 cmpr_timewithzone cmpr_cluster_00 -# gpi cluster -test: gpi_cluster_01 gpi_cluster_02 gpi_cluster_03 +# Cluster setting related test is independant -# gpi interval -test: gpi_interval - -# gpi range -test: gpi_range - -# gpi invliad part -test: gpi_invalid_part -test: gpi_clean_wait - -# gpi vacuum -test: gpi_vacuum_lazy -test: gpi_hw_partition_vacuum_full -#test: gpi_hw_partition_vacuum_full_01 - -# gpi alter -test: gpi_alter_partition -test: gpi_alter_partition_with_update -# test: gpi_merge_partitions - -# global temporary table tests -test: gtt_stats -test: gtt_function -test: gtt_prepare -test: gtt_parallel_1 gtt_parallel_2 -test: gtt_clean +test: xc_dml # --------------------------- # test cases for CStore # --------------------------- @@ -100,7 +124,7 @@ test: gtt_clean test: hw_cstore_tablespace hw_cstore_truncate hw_cstore_update #test: hw_cstore_roughcheck -test: hw_cstore_partition_update hw_cstore_partition_update1 hw_cstore_partition_update2 +test: hw_cstore_partition_update hw_cstore_partition_update1 hw_cstore_partition_update2 hw_cstore_partition #------------------------------ # CStore compression test cases @@ -134,7 +158,7 @@ test: vec_mergejoin_aggregation llvm_vecagg llvm_vecagg2 llvm_vecagg3 llvm_vecha # ----------$ # The first group of parallel tests$ # ----------$ -test: boolean name oid bit txid uuid +test: boolean name oid bit txid uuid numeric_hide_tailing_zero rawlike #test: float8 numeric char varchar text int2 int4 float4 numeric_2 money # Depends on things setup during char, varchar and text @@ -161,7 +185,8 @@ test: interval tinterval macaddr tstypes comments # execute two copy tests parallel, to check that copy itself # is concurrent safe.(duplicate) # ---------- -test: copyselect copy_error_log copy_support_transform +test: copyselect copy_error_log copy_support_transform copy_from_support_parallel +test: copy_new_gram #test: copy_eol # ---------- @@ -174,6 +199,7 @@ test: copyselect copy_error_log copy_support_transform test: resolve_unknown test: query_rewrite test: create_schema +test: create_schema2 #test: view_dump test: hw_function_p_3 hw_function_p_4 #test: hw_function_p_2 @@ -181,11 +207,12 @@ test: hw_function_p_3 hw_function_p_4 test: create_c_function test: cstore_replication_table_delete -#test: hw_cursor_part1 hw_cursor_part2 hw_cursor_part3 hw_cursor_part4 hw_cursor_part5 hw_cursor_part6 hw_cursor_part7 hw_cursor_part8 +test: hw_cursor_part1 hw_cursor_part2 hw_cursor_part3 hw_cursor_part4 hw_cursor_part5 hw_cursor_part6 hw_cursor_part7 hw_cursor_part8 test: vec_append_part1 vec_append_part2 vec_append_part3 test: vec_cursor_part1 vec_cursor_part2 test: vec_delete_part1 vec_delete_part2 -test: vec_name +test: vec_set_func +test: hw_cursor_rollback hw_cursor_rollback_ustore test: alter_schema_db_rename_seq @@ -195,15 +222,19 @@ test: a_outerjoin_conversion #test: plan_table04 test: setrefs -test: agg +test: agg window_agg_stream_test # test sql by pass test: bypass_simplequery_support test: bypass_preparedexecute_support test: sqlbypass_partition -#test: sqlbypass_partition_prepare +test: sqlbypass_partition_prepare -test: string_digit_to_numeric +# test srf_fusion +# Please fell free to execute each case independently +test: srf_fusion srf_fusion_basic srf_fusion_agg + +test: string_digit_to_numeric tablesample_3 # Another group of parallel tests # ---------- #test: collate tablesample tablesample_1 tablesample_2 matview @@ -212,38 +243,203 @@ test: matview_single # ---------- # Another group of parallel tests # ---------- -test: hw_order +test: hll_hash hll_func hll_para hll_mpp hll_cstore hll_misc + +test: function_get_table_def # ---------- # Another group of parallel tests # ---------- +test: hw_order + + +# temp__3 create_table copy vec_prepare_001 vec_prepare_002 vec_prepare_003 int4 int8 are duplicated +test: temp__3 + +#security_plugin +test: sp_set_policy_plugin_enable +test: sp_masking_udf +test: sp_set_policy_plugin_disable + +# ---------- +# Another group of parallel tests +# NB: temp.sql does a reconnect which transiently uses 2 connections, +# so keep this parallel group to at most 19 tests +# ---------- +#test: plpgsql +test: select_where_func +test: arrayinterface_single +test: plpgsql_table_opengauss +test: plpgsql_assign_value_to_array_attribute +test: plpgsql_array_of_record +#test: plpgsql_nest_compile +test: arrayinterface_ted +test: plpgsql_inout_param +test: plpgsql_cursor_rowtype +test: plpgsql_assign_list +test: plpgsql_package_type plpgsql_package_param +test: plpgsql_record_attrname +test: plpgsql_insert_record plpgsql_condition_name +test: hw_package_variable package_typmod_test +test: autonomous_cursor +test: plpgsql_reset_session +#test: plancache limit rangefuncs prepare +test: returning largeobject +test: hw_explain_pretty1 hw_explain_pretty2 hw_explain_pretty3 +test: goto +test: equivalence_class +test: tsdb_delta2_compress +test: tsdb_xor_compress +#test: tsdb_aggregate + +test: readline +test: hw_to_timestamp hw_view_privilege + +test: hw_identifier +#test: hw_hashint1 hw_smalldatetime_hash hw_rawtype_hash +#test: hw_nvarchar2_hash cmpr_smallint cmpr_prefix_150left cmpr_uint32_oid +test: oidjoins opr_sanity_2 regex regex2 +#test: opr_sanity_1 + +test: pmk +# Cluster setting related test is independant +# ---------- +# Test of changed data type compatible with Oracle + +test: hw_datatype_2 hw_datatype_3 +test: hw_datatype hw_datatype_set +test: test_regex llt_atc + +# ---------- +# test for set operations +# ---------- +test: select_nest_views +#test: enum +#show plan +test: col_joinplan col_joinnew +test: col_limit col_distinct col_prepare +test: col_function_1 col_function_2 col_count_distinct_1 col_count_distinct_2 col_count_distinct_3 col_count_distinct_4 +test: directory_test +test: analyse_verify +test: create_compositetype +test: hw_pct_type_and_rowtype +#test: create_basetype +#test: tabletype +#test with recursive +test: recursive_ref_recursive +#test: recursive_prepare +#test: recursive_cte +#test: recursive_cte_col +#test: nohashjoin_recursive_cte +#test: nohashjoin_recursive_cte_col +#test: others +#test: icbc_customer +#test: recursive_unshippable +#test: recursive_finalize +#test: recursive_cte_1 +test: test_relpages + +test: temp__3 +test: vec_window_pre +test: gin_test_2 +#test: window1 +test: vec_window_001 +#test: vec_window_002 +test: vec_numeric_sop_1 vec_numeric_sop_2 vec_numeric_sop_3 vec_numeric_sop_4 vec_numeric_sop_5 +#test: vec_window_end + +test: vec_unique_pre vec_bitmap_prepare +test: vec_unique vec_setop_001 vec_setop_002 vec_setop_003 vec_setop_004 hw_vec_int4 hw_vec_int8 hw_vec_float4 hw_vec_float8 +#test: vec_setop_005 +test: hw_vec_constrainst vec_numeric vec_numeric_1 vec_numeric_2 vec_bitmap_1 vec_bitmap_2 +test: disable_vector_engine +test: hybrid_row_column +test: retry +test: hw_replication_slots +test: insert insert_right_ref rules +test: copy2 temp +test: truncate +#test: temp_table + +test: b_compatibility +test: hw_compatibility +test: hw_groupingsets hw_row_grouping_set +test: char_truncation_common char_truncation_cast + +#this case is dispatched from schedule10(gin_test) +test: gin_test1 gin_test2 gin_test3 + +#the fallowing part is dispatched from schedule15 + +# FIXME: move me back to the parallel test when the refcnt issue is fixed +# Below two teste are unstable, temporarily ignoring. This is same to distribute_dattistic, relallvisible, Dongwang will solve the problem. + +#test: hw_expression_alias + + +#========================================================================================================================================== +# privilege test +test: predefined_roles +test: gs_db_privilege +test: any_privs + +# ---------- +# src/test/regress/parallel_schedule.33 +# +# By convention, we put no more than twenty tests in any one parallel group; +# this limits the number of connections needed to run the tests. +# ---------- + + +test: udf_crem + +test: create_c_function + +#---1. Drop-Column test +test: cstore_drop_column_replicated +#test: cstore_drop_column + +#split from parallel_schedule2 + +# ---------- +# Advisory lock need to be tested in series in Postgres-XC +# --------- +test: advisory_lock + +# ---------- +# Another group of parallel tests +# ---------- +test: cluster dependency bitmapops tsdicts functional_deps +test: json_and_jsonb json jsonb jsonb2 +#test: guc + +# test for vec sonic hash +test: vec_sonic_hashjoin_number_prepare +test: vec_sonic_hashjoin_number_nospill + test: timeout +test: dml +test: hashfilter hashfilter_1 +test: reduce_orderby +#test: backtrace_log +#test: bulkload_start +test: bulkload_parallel_test_2 bulkload_parallel_test_3 +#test: bulkload_parallel_test_1 bulkload_parallel_test_4 + +test: tpchcol05 tpchcol07 tpchcol08 tpchcol09 + +test: tpchcol01 +test: tpchcol06 +test: tpchcol03 tpchcol04 +test: tpchcol12 tpchcol13 tpchcol14 tpchcol16 tpchcol18 tpchcol19 tpchcol21 + +test: vec_partition vec_partition_1 vec_material_001 +test: vec_m_file +test: llvm_vecsort llvm_vecsort2 + +test: udf_crem create_c_function # procedure, Function Test -#test: create_procedure postgres_fdw +#test: create_procedure test: create_function -test: pg_compatibility -# gs_basebackup -# test: gs_basebackup - -# autonomous transaction Test -#test: autonomous_transaction - -#test jdbc pbe for bypass -test: bypass_pbe -#test: partition for hash list -test: pbe_hash_list_partition -test: hw_partition_list_insert -test: hw_partition_list_ddl -test: hw_partition_hash_insert -test: hw_partition_hash_ddl -test: hw_partition_hash_dml -test: hw_partition_hash_dql -test: hw_partition_list_dml -test: hw_partition_list_dql -test: hw_cipher_sm4 -test: hw_cipher_aes128 -test: hw_pwd_encryption_sm3 -test: cstore_unique_index -test: rule_test -test: plpgsql_savepoint +test: pg_compatibility \ No newline at end of file diff --git a/src/test/regress/parallel_schedule0C b/src/test/regress/parallel_schedule0C index 3f8411f72..3bcbb5177 100644 --- a/src/test/regress/parallel_schedule0C +++ b/src/test/regress/parallel_schedule0C @@ -1,9 +1,186 @@ -test: sqlldr/load_to_copy_basic -test: sqlldr/load_to_table_basic -test: sqlldr/load_to_table_column -test: sqlldr/gs_loader_basic -test: sqlldr/gs_loader_parameter -test: sqlldr/gs_loader_column -test: sqlldr/gs_loader_multi_data -test: sqlldr/gs_loader_issues -test: sqlldr/gs_loader_column_filler \ No newline at end of file +# ---------- +# Database security +# ---------- +test: hw_pwd_reuse +#test: hw_auditadmin + +test: hw_audit_toughness +test: hw_audit_detailinfo + +test: hw_audit_client +test: hw_audit_full +test: hw_audit_system_func + +test: performance_enhance +test: explain_fqs +test: explain_pbe + +# gs_basebackup +# test: gs_basebackup + +# autonomous transaction Test + +#test jdbc pbe for bypass +test: bypass_pbe +#test: partition for hash list +test: pbe_hash_list_partition +test: hw_partition_list_insert +test: hw_partition_list_ddl +test: hw_partition_hash_insert +test: hw_partition_hash_ddl +test: hw_partition_hash_dml +test: hw_partition_hash_dql +test: hw_partition_list_dml +test: hw_partition_list_dql +test: hw_partition_b_db +test: dump_partition_b_db +test: hw_cipher_sm4 +test: hw_cipher_aes128 +test: hw_pwd_encryption_sm3 +test: rule_test +test: test_auto_increment +test: dump_auto_increment + +#delete limit +test: delete_limit + +# -------------------------- +# DB4AI +# -------------------------- +test: db4ai_snapshots +test: db4ai_gd_train_predict +test: db4ai_gd_houses +test: db4ai_gd_snapshots +test: db4ai_gd_pca_train_predict +#test: db4ai_kmeans_train_predict +test: db4ai_xgboost_train_predict + +#test: db4ai_explain_model + +test: leaky_function_operator + +# ---------- +# gs_guc test +# ---------- +#test: gs_guc + +test: cstore_unique_index + +test: cast_privileges_test + +#generated column test +test: generated_col +test: gen_col_pall_start +test: gen_col_thread1 gen_col_thread2 +test: gen_col_pall_end + +# gs_ledger +test: ledger_table_case + +# select ... for update skip locked +test: skiplocked_prep +test: skiplocked_test1_1 skiplocked_test1_2 +test: skiplocked_test1_1 skiplocked_test1_3 +test: skiplocked_post + +# store and restore comment on ora function and procedure +test: comment_proc +test: hw_package +test: hw_cipher_sm4 +test: hw_cipher_aes128 +test: sequence_cache_test +test: pg_buffercache_pages +test: procedure_privilege_test + +# global temporary table: parallel truncate +test: gtt_trunc_pre +test: gtt_trunc_parallel_dml1 gtt_trunc_parallel_dml2 gtt_trunc_parallel_ddl1 gtt_trunc_parallel_ddl2 +#test: gtt_trunc_clean + +test: toomanyparams + +test: test_astore_multixact + +test: row_compression/pg_table_size row_compression/unsupported_feature row_compression/normal_test +# test: row_compression/pg_tablespace_size +test: row_compression/twophase +test: row_compression/row_compress_feature pldebugger_shutdown +test: row_compression/row_compression_basebackup +test: component_view_enhancements single_node_user_mapping +# reindex concurrently +#test: reindex_concurrently +test: reindex_concurrently_parallel +#test: reindex_concurrently_partition +test: reindex_concurrently_partition_parallel +# publication and subscription, we need to record audit log for them, so seperate them into two test group +test: publication +test: subscription +test: fdw_audit +test: gs_global_config_audit +test: detail declare_multiple_variable +# mysql_function_prepare must precede mysql_function/mysql_function_2, and mysql_function_clearup must follow mysql_function/mysql_function_2 +test: gs_dump_encrypt substr mysql_function_prepare +test: composite_datum_record mysql_function mysql_function_2 b_comments mysql_syntax mysql_condition mysql_delimiter mysql_delimiter_fix mysql_indexhint mysql_trigger + +test: join_test_alias alter_ctable_compress +test: ignore/ignore_type_transform ignore/ignore_not_null_constraints ignore/ignore_unique_constraints ignore/ignore_no_matched_partition ignore/ignore_invalid_input + +test: pg_ls_dir +test: mysql_function_clearup cost_model +test: base_update +test: seqscan_fusion + +test: union_null_01 fulljoin_rewrite + +# var selectivity +test: var_eq_const_selectivity + +test: pg_controldata + +test: describe_index_with_tablespace + +# syntax compatibility +test: sytcomp_del_upt4orderby +test: aioptimizer +test: aioptimizer_small +test: pgfincore +test: rename_table + +# debug instrument +test: test_debug5 + +# fix notice infos +test: gstrace_options gaussdb_options gsql_options gsbasebackup_options gsdump_options gsloader_options + +# debug ceil(-0.5) -0 +test: ceil_negtive_zero + +# dolphin_guc_config +test: dolphin_guc_config + +# optimizing_index_scan +test: optimizing_index_scan_cstore +test: optimizing_index_scan_ustore + +# row_count() +test: row_count_function + +# show_warnings +test: show_warnings prevent_table_in_sys_schema create_tbl_init_td_check + +# test event trigger and object address +test: test_object_alter +test: event_trigger object_address +test: event_trigger_dump_restore + +# partition expression key +test: partition_expr_key +test: alter_foreign_schema + +# test for slow_sql +test: slow_sql +# test user@host +test: user_host_test + +# test for new_expr_by_flatten +test: enable_expr_fusion_flatten \ No newline at end of file diff --git a/src/test/regress/sql/function_get_table_def.sql b/src/test/regress/sql/function_get_table_def.sql index 8bcff014a..3875c14a0 100644 --- a/src/test/regress/sql/function_get_table_def.sql +++ b/src/test/regress/sql/function_get_table_def.sql @@ -319,3 +319,5 @@ create table if not exists test( c timestamptz on update current_timestamp(5)); select * from pg_get_tabledef('test'); \c regression + +DROP database mysql; \ No newline at end of file