mirror of https://github.com/citusdata/citus.git
Normalize tests: shard table names for multi_name_lengths
parent
1c4ea6836b
commit
704e1d2bc8
|
@ -37,9 +37,9 @@ s/"(on_update_fkey_table_|fkey_)[0-9]+"/"\1xxxxxxx"/g
|
|||
# In multi_insert_select_conflict, normalize shard name and constraints
|
||||
s/"(target_table_|target_table_|test_ref_table_)[0-9]+"/"\1xxxxxxx"/g
|
||||
s/\(col_1\)=\([0-9]+\)/(col_1)=(X)/g
|
||||
#
|
||||
## In multi_name_lengths, normalize shard names
|
||||
#s/name_len_12345678901234567890123456789012345678_fcd8ab6f_[0-9]+/name_len_12345678901234567890123456789012345678_fcd8ab6f_xxxxx/g
|
||||
|
||||
# In multi_name_lengths, normalize shard names
|
||||
s/name_len_12345678901234567890123456789012345678_fcd8ab6f_[0-9]+/name_len_12345678901234567890123456789012345678_fcd8ab6f_xxxxx/g
|
||||
#
|
||||
## normalize pkey constraints in multi_insert_select.sql
|
||||
#s/"(raw_events_second_user_id_value_1_key_|agg_events_user_id_value_1_agg_key_)[0-9]+"/"\1xxxxxxx"/g
|
||||
|
|
|
@ -111,7 +111,7 @@ SELECT "Constraint", "Definition" FROM table_checks WHERE relid='public.name_len
|
|||
-- Placeholders for RENAME operations
|
||||
\set VERBOSITY TERSE
|
||||
ALTER TABLE name_lengths RENAME TO name_len_12345678901234567890123456789012345678901234567890;
|
||||
ERROR: shard name name_len_12345678901234567890123456789012345678_fcd8ab6f_225002 exceeds 63 characters
|
||||
ERROR: shard name name_len_12345678901234567890123456789012345678_fcd8ab6f_xxxxx exceeds 63 characters
|
||||
ALTER TABLE name_lengths RENAME CONSTRAINT unique_12345678901234567890123456789012345678901234567890 TO unique2_12345678901234567890123456789012345678901234567890;
|
||||
ERROR: renaming constraints belonging to distributed tables is currently unsupported
|
||||
\set VERBOSITY DEFAULT
|
||||
|
|
Loading…
Reference in New Issue