diff --git a/contrib/try_convert/data/tt_bpchar.data b/contrib/try_convert/data/tt_bpchar.data new file mode 100644 index 0000000000..ea621c8662 --- /dev/null +++ b/contrib/try_convert/data/tt_bpchar.data @@ -0,0 +1,70 @@ +All the world's a stage, +And all the men and women merely players; +They have their exits and their entrances, +And one man in his time plays many parts, +His acts being seven ages. At first, the infant, +Mewling and puking in the nurse's arms. +Then the whining schoolboy, with his satchel +And shining morning face, creeping like snail +Unwillingly to school. And then the lover, +Sighing like furnace, with a woeful ballad +Made to his mistress' eyebrow. Then a soldier, +Full of strange oaths and bearded like the pard, +Jealous in honor, sudden and quick in quarrel, +Seeking the bubble reputation +Even in the cannon's mouth. And then the justice, +In fair round belly with good capon lined, +With eyes severe and beard of formal cut, +Full of wise saws and modern instances; +And so he plays his part. The sixth age shifts +Into the lean and slippered pantaloon, +With spectacles on nose and pouch on side; +His youthful hose, well saved, a world too wide +For his shrunk shank, and his big manly voice, +Turning again toward childish treble, pipes +And whistles in his sound. Last scene of all, +That ends this strange eventful history, +Is second childishness and mere oblivion, +Sans teeth, sans eyes, sans taste, sans everything. + +std::to_string + C++ Strings library std::basic_string +Defined in header +std::string to_string( int value ); +std::string to_string( long value ); +std::string to_string( long long value ); +std::string to_string( unsigned value ); +std::string to_string( unsigned long value ); +std::string to_string( unsigned long long value ); +std::string to_string( float value ); +std::string to_string( double value ); +std::string to_string( long double value ); +Converts a numeric value to std::string. + +Let buf be an internal to the conversion functions buffer, sufficiently large to contain the result of conversion. + +1) Converts a signed integer to a string as if by std::sprintf(buf, "%d", value). +2) Converts a signed integer to a string as if by std::sprintf(buf, "%ld", value). +3) Converts a signed integer to a string as if by std::sprintf(buf, "%lld", value). +4) Converts an unsigned integer to a string as if by std::sprintf(buf, "%u", value). +5) Converts an unsigned integer to a string as if by std::sprintf(buf, "%lu", value). +6) Converts an unsigned integer to a string as if by std::sprintf(buf, "%llu", value). +7,8) Converts a floating point value to a string as if by std::sprintf(buf, "%f", value). +9) Converts a floating point value to a string as if by std::sprintf(buf, "%Lf", value). +(until C++26) +1-9) Converts a numeric value to a string as if by std::format("{}", value). +(since C++26) +Parameters +Return value +A string holding the converted value. + +Exceptions +May throw std::bad_alloc from the std::string constructor. + +Notes +With floating point types std::to_string may yield unexpected results as the number of significant digits in the returned string can be zero, see the example. +The return value may differ significantly from what std::cout prints by default, see the example. +std::to_string relies on the current C locale for formatting purposes, and therefore concurrent calls to std::to_string from multiple threads may result in partial serialization of calls. +The results of overloads for integer types do not rely on the current C locale, and thus implementations generally avoid access to the current C locale in these overloads for both correctness and performance. However, such avoidance is not guaranteed by the standard. +(until C++26) +C++17 provides std::to_chars as a higher-performance locale-independent alternative. diff --git a/contrib/try_convert/generate_test.py b/contrib/try_convert/generate_test.py index 06d0340225..ec2f0d89b6 100644 --- a/contrib/try_convert/generate_test.py +++ b/contrib/try_convert/generate_test.py @@ -29,8 +29,9 @@ 'json', # JSON 'jsonb', 'xml', - # 'bytea', # STRINGS - 'char', + # 'bytea', + 'char', # STRINGS + # 'bpchar', 'varchar', 'text', 'money', @@ -43,15 +44,24 @@ 'citext', ] +string_types = [ + 'text', + 'citext', + 'char', + # 'bpchar', + 'varchar', +] + typmod_types = [ 'bit', 'varbit', 'char', 'varchar', + # 'bpchar', ] typmod_lens = [ - None, 1, 5, 10 + None, 1, 5, 10, 20 ] def get_typemod_type(t, l): @@ -60,6 +70,12 @@ def get_typemod_type(t, l): else: return f'{t}({l})' +def get_typemod_table(t, l): + if l is None: + return f'tt_{t}' + else: + return f'tt_{t}_{l}' + uncomparable_types = [ 'json', 'xml', @@ -181,10 +197,52 @@ def remove_empty_lines(t): test_funcs = '' +func_text = \ + f'CREATE FUNCTION try_convert_by_sql_text(_in text, INOUT _out ANYELEMENT, source_type text)\n' \ + f' LANGUAGE plpgsql AS\n' \ + f'$func$\n' \ + f' BEGIN\n' \ + f' EXECUTE format(\'SELECT %L::%s::%s\', $1, source_type, pg_typeof(_out))\n' \ + f' INTO _out;\n' \ + f' EXCEPTION WHEN others THEN\n' \ + f' -- do nothing: _out already carries default\n' \ + f' END\n' \ + f'$func$;\n' + +test_funcs += func_text + +func_text = \ + f'CREATE FUNCTION try_convert_by_sql_text_with_len_out(_in text, INOUT _out ANYELEMENT, source_type text, len_out int)\n' \ + f' LANGUAGE plpgsql AS\n' \ + f'$func$\n' \ + f' BEGIN\n' \ + f' EXECUTE format(\'SELECT %L::%s::%s(%d)\', $1, source_type, pg_typeof(_out), len_out)\n' \ + f' INTO _out;\n' \ + f' EXCEPTION WHEN others THEN\n' \ + f' -- do nothing: _out already carries default\n' \ + f' END\n' \ + f'$func$;\n' + +test_funcs += func_text + for type_name in supported_types: func_text = \ - f'CREATE OR REPLACE FUNCTION try_convert_by_sql(_in {type_name}, INOUT _out ANYELEMENT)\n' \ + f'CREATE FUNCTION try_convert_by_sql_with_len_out(_in {type_name}, INOUT _out ANYELEMENT, len_out int)\n' \ + f' LANGUAGE plpgsql AS\n' \ + f'$func$\n' \ + f' BEGIN\n' \ + f' EXECUTE format(\'SELECT %L::{type_name}::%s(%s)\', $1, pg_typeof(_out), len_out::text)\n' \ + f' INTO _out;\n' \ + f' EXCEPTION WHEN others THEN\n' \ + f' -- do nothing: _out already carries default\n' \ + f' END\n' \ + f'$func$;\n' + + test_funcs += func_text + + func_text = \ + f'CREATE FUNCTION try_convert_by_sql(_in {type_name}, INOUT _out ANYELEMENT)\n' \ f' LANGUAGE plpgsql AS\n' \ f'$func$\n' \ f' BEGIN\n' \ @@ -215,22 +273,17 @@ def remove_empty_lines(t): test_load_data = '-- LOAD DATA\n' test_load_data += f'CREATE TABLE tt_temp (v text) DISTRIBUTED BY (v);\n' -test_load_data += f'CREATE TABLE tt_temp_citext (v citext) DISTRIBUTED BY (v);\n' def copy_data(table_name, filename, type_name): - return f'DELETE FROM tt_temp;' \ + return f'DELETE FROM tt_temp;\n' \ f'COPY tt_temp from \'@abs_srcdir@/{filename}\';\n' \ f'INSERT INTO {table_name}(id, v) SELECT row_number() OVER(), v::{type_name} from tt_temp;' type_tables = {} def create_table(type_name, varlen=None): - table_name = f'tt_{type_name}' - field_type = type_name - - if varlen is not None: - table_name = f'tt_{type_name}_{varlen}' - field_type = f'{type_name}({varlen})' + table_name = get_typemod_table(type_name, varlen) + field_type = get_typemod_type(type_name, varlen) type_tables[type_name] = table_name @@ -238,20 +291,49 @@ def create_table(type_name, varlen=None): filename = f'data/tt_{type_name}.data' - load_data += copy_data(table_name, filename, type_name) + '\n' + load_data += copy_data(table_name, filename, field_type) + '\n' # load_data += f'SELECT * FROM {table_name};' return load_data +def get_string_table(type_name, string_type, type_varlen=None, string_varlen=None): + + if type_varlen is not None and string_varlen is not None: + return f'tt_{string_type}_{string_varlen}_of_{type_name}_{type_varlen}' + elif type_varlen is not None: + return f'tt_{string_type}_of_{type_name}_{type_varlen}' + elif string_varlen is not None: + return f'tt_{string_type}_{string_varlen}_of_{type_name}' + + return f'tt_{string_type}_of_{type_name}' + for type_name in supported_types: - if type_name in typmod_types: - for varlen in typmod_lens: - test_load_data += create_table(type_name, varlen) + for type_varlen in typmod_lens: + if type_varlen is not None and type_name not in typmod_types: + continue - else: - test_load_data += create_table(type_name) + test_load_data += create_table(type_name, type_varlen) + + for string_type in string_types: + for string_varlen in typmod_lens: + if string_varlen is not None and string_type not in typmod_types: + continue + + field_type = get_typemod_type(type_name, type_varlen) + string_field_type = get_typemod_type(string_type, string_varlen) + + table_name = get_string_table(type_name, string_type, type_varlen, string_varlen) + + load_data = f'CREATE TABLE {table_name} (id serial, v {string_field_type}) DISTRIBUTED BY (id);\n' + + cut = f'::{field_type}' if type_varlen is not None else '' + + load_data += f'INSERT INTO {table_name}(id, v) SELECT row_number() OVER(), v{cut}::{string_field_type} from tt_temp;\n' + + test_load_data += load_data + ## GET DATA @@ -272,15 +354,31 @@ def get_from_data(type_name, i = None): ## TEST -def create_test(source_name, target_name, test_data, default='NULL'): +def create_test(source_name, target_name, test_data, default='NULL', source_varlen=None, target_varlen=None): test_filter = 'v1 is distinct from v2' if target_name not in uncomparable_types else 'v1::text is distinct from v2::text' + try_convert_sql = f'try_convert_by_sql(v, {default}::{target_name})' + + if target_varlen is not None: + try_convert_sql = f'try_convert_by_sql_with_len_out(v, {default}::{target_name}, {target_varlen})' + + if source_varlen is not None or source_name in ['bpchar']: + + source_name_1 = get_typemod_type(source_name, source_varlen) + + try_convert_sql = f'try_convert_by_sql_text(v::text, {default}::{target_name}, \'{source_name_1}\'::text)' + + if target_varlen is not None: + try_convert_sql = f'try_convert_by_sql_text_with_len_out(v::text, {default}::{target_name}, \'{source_name_1}\'::text, {target_varlen})' + + target_name_1 = get_typemod_type(target_name, target_varlen) + query = \ f'select * from (' \ f'select ' \ - f'try_convert(v, {default}::{target_name}) as v1, ' \ - f'try_convert_by_sql(v, {default}::{target_name}) as v2' \ + f'try_convert(v, {default}::{target_name_1}) as v1, ' \ + f'{try_convert_sql} as v2' \ f' from {test_data}' \ f') as t(v1, v2) where {test_filter};' result = \ @@ -299,24 +397,30 @@ def create_test(source_name, target_name, test_data, default='NULL'): text_tests_in = [] text_tests_out = [] -# text_types = [('text', 'tt_temp'), ('citext', 'tt_temp_citext')] +default_value = 'NULL' -# for text_type, text_type_table in text_types: +for string_type in string_types: + for string_varlen in typmod_lens: + if string_varlen is not None and type_name not in typmod_types: + continue -# for type_name in supported_types: + for type_name in supported_types: + for type_varlen in typmod_lens: + if type_varlen is not None and type_name not in typmod_types: + continue -# test_type_data = get_data(type_name) + test_type_table = get_typemod_table(type_name, type_varlen) -# load_text_data_text = f'DELETE FROM {text_type_table}; COPY {text_type_table} from \'@abs_srcdir@/data/tt_{type_name}.data\';' + text_type_table = get_string_table(type_name, string_type, type_varlen, string_varlen) -# test_corrupted_text_data = f'(select (\'!@#%^&*\' || v || \'!@#%^&*\') from {text_type_table}) as t(v)' + test_corrupted_text_data = f'(select (\'!@#%^&*\' || v || \'!@#%^&*\') from {text_type_table}) as t(v)' -# to_text_in, to_text_out = create_test(type_name, text_type, test_type_data) -# from_text_in, from_text_out = create_test(text_type, type_name, text_type_table) -# from_corrupted_text_in, from_corrupted_text_out = create_test(text_type, type_name, test_corrupted_text_data) + to_text_in, to_text_out = create_test(type_name, string_type, test_type_table, default_value, type_varlen, string_varlen) + from_text_in, from_text_out = create_test(string_type, type_name, text_type_table, default_value, string_varlen, type_varlen) + from_corrupted_text_in, from_corrupted_text_out = create_test(string_type, type_name, test_corrupted_text_data, default_value, string_varlen, type_varlen) -# text_tests_in += [to_text_in, load_text_data_text, from_text_in, from_corrupted_text_in] -# text_tests_out += [to_text_out, load_text_data_text, from_text_out, from_corrupted_text_out] + text_tests_in += [to_text_in, from_text_in] + text_tests_out += [to_text_out, from_text_out] # print(text_tests_in[0]) # print(text_tests_in[1]) @@ -331,24 +435,23 @@ def create_test(source_name, target_name, test_data, default='NULL'): + extension_casts for source_name, target_name in type_casts: - if (source_name not in supported_types or target_name not in supported_types): continue d = f'\'{get_from_data(target_name, 0)}\'' - for default in ['NULL']: - test_data = get_data(source_name) + for source_varlen in typmod_lens: + if source_varlen is not None and source_name not in typmod_types: + continue - for varlen1 in typmod_lens: - for varlen2 in typmod_lens: - if varlen1 is not None and source_name not in typmod_types: - continue - if varlen2 is not None and target_name not in typmod_types: + test_table = get_typemod_table(source_name, source_varlen) + + for target_varlen in typmod_lens: + if target_varlen is not None and target_name not in typmod_types: continue - test_in, test_out = create_test(get_typemod_type(source_name, varlen1), get_typemod_type(target_name, varlen2), test_data, default) + test_in, test_out = create_test(source_name, target_name, test_table, default, source_varlen, target_varlen) function_tests_in += [test_in] function_tests_out += [test_out] diff --git a/contrib/try_convert/input/try_convert.source b/contrib/try_convert/input/try_convert.source index 46f6502f8e..7e6c214ca4 100644 --- a/contrib/try_convert/input/try_convert.source +++ b/contrib/try_convert/input/try_convert.source @@ -15,7 +15,37 @@ CREATE EXTENSION IF NOT EXISTS try_convert; CREATE EXTENSION IF NOT EXISTS citext; -- end_ignore -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in int8, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_text(_in text, INOUT _out ANYELEMENT, source_type text) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::%s::%s', $1, source_type, pg_typeof(_out)) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql_text_with_len_out(_in text, INOUT _out ANYELEMENT, source_type text, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::%s::%s(%d)', $1, source_type, pg_typeof(_out), len_out) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql_with_len_out(_in int8, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::int8::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in int8, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -25,7 +55,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in int4, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in int4, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::int4::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in int4, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -35,7 +75,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in int2, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in int2, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::int2::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in int2, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -45,7 +95,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in float8, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in float8, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::float8::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in float8, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -55,7 +115,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in float4, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in float4, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::float4::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in float4, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -65,7 +135,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in numeric, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in numeric, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::numeric::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in numeric, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -75,7 +155,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in bool, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in bool, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::bool::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in bool, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -85,7 +175,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in bit, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in bit, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::bit::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in bit, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -95,7 +195,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in varbit, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in varbit, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::varbit::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in varbit, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -105,7 +215,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in date, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in date, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::date::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in date, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -115,7 +235,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in time, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in time, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::time::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in time, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -125,7 +255,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in timetz, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in timetz, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::timetz::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in timetz, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -135,7 +275,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in timestamp, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in timestamp, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::timestamp::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in timestamp, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -145,7 +295,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in timestamptz, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in timestamptz, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::timestamptz::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in timestamptz, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -155,7 +315,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in interval, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in interval, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::interval::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in interval, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -165,7 +335,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in cidr, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in cidr, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::cidr::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in cidr, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -175,7 +355,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in inet, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in inet, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::inet::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in inet, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -185,7 +375,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in macaddr, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in macaddr, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::macaddr::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in macaddr, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -195,7 +395,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in json, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in json, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::json::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in json, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -205,7 +415,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in jsonb, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in jsonb, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::jsonb::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in jsonb, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -215,7 +435,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in xml, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in xml, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::xml::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in xml, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -225,7 +455,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in char, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in char, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::char::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in char, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -235,7 +475,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in varchar, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in varchar, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::varchar::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in varchar, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -245,7 +495,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in text, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in text, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::text::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in text, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -255,7 +515,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in money, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in money, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::money::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in money, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -265,7 +535,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in uuid, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in uuid, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::uuid::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in uuid, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -275,7 +555,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in citext, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in citext, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::citext::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in citext, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -288,127 +578,1728 @@ $func$; -- LOAD DATA CREATE TABLE tt_temp (v text) DISTRIBUTED BY (v); -CREATE TABLE tt_temp_citext (v citext) DISTRIBUTED BY (v); CREATE TABLE tt_int8 (id serial, v int8) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_int8.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_int8.data'; INSERT INTO tt_int8(id, v) SELECT row_number() OVER(), v::int8 from tt_temp; +CREATE TABLE tt_text_of_int8 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_int8(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_int8 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_int8(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_int8 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_int8(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_int8 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_int8(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_int8 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_int8(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_int8 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_int8(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_int8 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_int8(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_int8 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_int8(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_int8 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_int8(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_int8 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_int8(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_int8 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_int8(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_int8 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_int8(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_int8 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_int8(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_int4 (id serial, v int4) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_int4.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_int4.data'; INSERT INTO tt_int4(id, v) SELECT row_number() OVER(), v::int4 from tt_temp; +CREATE TABLE tt_text_of_int4 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_int4(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_int4 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_int4(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_int4 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_int4(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_int4 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_int4(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_int4 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_int4(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_int4 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_int4(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_int4 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_int4(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_int4 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_int4(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_int4 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_int4(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_int4 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_int4(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_int4 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_int4(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_int4 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_int4(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_int4 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_int4(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_int2 (id serial, v int2) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_int2.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_int2.data'; INSERT INTO tt_int2(id, v) SELECT row_number() OVER(), v::int2 from tt_temp; +CREATE TABLE tt_text_of_int2 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_int2(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_int2 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_int2(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_int2 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_int2(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_int2 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_int2(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_int2 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_int2(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_int2 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_int2(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_int2 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_int2(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_int2 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_int2(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_int2 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_int2(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_int2 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_int2(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_int2 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_int2(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_int2 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_int2(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_int2 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_int2(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_float8 (id serial, v float8) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_float8.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_float8.data'; INSERT INTO tt_float8(id, v) SELECT row_number() OVER(), v::float8 from tt_temp; +CREATE TABLE tt_text_of_float8 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_float8(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_float8 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_float8(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_float8 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_float8(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_float8 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_float8(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_float8 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_float8(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_float8 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_float8(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_float8 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_float8(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_float8 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_float8(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_float8 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_float8(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_float8 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_float8(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_float8 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_float8(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_float8 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_float8(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_float8 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_float8(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_float4 (id serial, v float4) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_float4.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_float4.data'; INSERT INTO tt_float4(id, v) SELECT row_number() OVER(), v::float4 from tt_temp; +CREATE TABLE tt_text_of_float4 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_float4(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_float4 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_float4(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_float4 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_float4(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_float4 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_float4(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_float4 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_float4(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_float4 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_float4(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_float4 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_float4(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_float4 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_float4(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_float4 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_float4(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_float4 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_float4(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_float4 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_float4(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_float4 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_float4(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_float4 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_float4(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_numeric (id serial, v numeric) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_numeric.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_numeric.data'; INSERT INTO tt_numeric(id, v) SELECT row_number() OVER(), v::numeric from tt_temp; +CREATE TABLE tt_text_of_numeric (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_numeric(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_numeric (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_numeric(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_numeric (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_numeric(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_numeric (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_numeric(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_numeric (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_numeric(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_numeric (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_numeric(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_numeric (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_numeric(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_numeric (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_numeric(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_numeric (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_numeric(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_numeric (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_numeric (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_numeric (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_numeric (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_bool (id serial, v bool) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bool.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bool.data'; INSERT INTO tt_bool(id, v) SELECT row_number() OVER(), v::bool from tt_temp; +CREATE TABLE tt_text_of_bool (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bool(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_bool (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bool(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_bool (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bool(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_bool (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bool(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bool (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bool(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bool (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bool(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bool (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bool(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bool (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bool(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bool (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bool(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bool (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bool(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bool (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bool(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bool (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bool(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bool (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bool(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_bit (id serial, v bit) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; INSERT INTO tt_bit(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +CREATE TABLE tt_text_of_bit (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_bit (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_bit (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_bit (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_bit_1 (id serial, v bit(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; -INSERT INTO tt_bit_1(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_1(id, v) SELECT row_number() OVER(), v::bit(1) from tt_temp; +CREATE TABLE tt_text_of_bit_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(20) from tt_temp; CREATE TABLE tt_bit_5 (id serial, v bit(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; -INSERT INTO tt_bit_5(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_5(id, v) SELECT row_number() OVER(), v::bit(5) from tt_temp; +CREATE TABLE tt_text_of_bit_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(20) from tt_temp; CREATE TABLE tt_bit_10 (id serial, v bit(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; -INSERT INTO tt_bit_10(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_10(id, v) SELECT row_number() OVER(), v::bit(10) from tt_temp; +CREATE TABLE tt_text_of_bit_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(20) from tt_temp; +CREATE TABLE tt_bit_20 (id serial, v bit(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_20(id, v) SELECT row_number() OVER(), v::bit(20) from tt_temp; +CREATE TABLE tt_text_of_bit_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(20) from tt_temp; CREATE TABLE tt_varbit (id serial, v varbit) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; INSERT INTO tt_varbit(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +CREATE TABLE tt_text_of_varbit (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_varbit (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_varbit (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_varbit_1 (id serial, v varbit(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; -INSERT INTO tt_varbit_1(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1) from tt_temp; +CREATE TABLE tt_text_of_varbit_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(20) from tt_temp; CREATE TABLE tt_varbit_5 (id serial, v varbit(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; -INSERT INTO tt_varbit_5(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5) from tt_temp; +CREATE TABLE tt_text_of_varbit_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(20) from tt_temp; CREATE TABLE tt_varbit_10 (id serial, v varbit(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; -INSERT INTO tt_varbit_10(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10) from tt_temp; +CREATE TABLE tt_text_of_varbit_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(20) from tt_temp; +CREATE TABLE tt_varbit_20 (id serial, v varbit(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20) from tt_temp; +CREATE TABLE tt_text_of_varbit_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(20) from tt_temp; CREATE TABLE tt_date (id serial, v date) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_date.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_date.data'; INSERT INTO tt_date(id, v) SELECT row_number() OVER(), v::date from tt_temp; +CREATE TABLE tt_text_of_date (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_date(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_date (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_date(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_date (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_date(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_date (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_date(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_date (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_date(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_date (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_date(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_date (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_date(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_date (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_date(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_date (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_date(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_date (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_date(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_date (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_date(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_date (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_date(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_date (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_date(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_time (id serial, v time) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_time.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_time.data'; INSERT INTO tt_time(id, v) SELECT row_number() OVER(), v::time from tt_temp; +CREATE TABLE tt_text_of_time (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_time(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_time (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_time(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_time (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_time(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_time (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_time(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_time (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_time(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_time (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_time(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_time (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_time(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_time (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_time(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_time (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_time(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_time (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_time(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_time (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_time(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_time (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_time(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_time (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_time(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_timetz (id serial, v timetz) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_timetz.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_timetz.data'; INSERT INTO tt_timetz(id, v) SELECT row_number() OVER(), v::timetz from tt_temp; +CREATE TABLE tt_text_of_timetz (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_timetz(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_timetz (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_timetz(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_timetz (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_timetz(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_timetz (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_timetz(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_timetz (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_timetz(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_timetz (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_timetz(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_timetz (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_timetz(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_timetz (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_timetz(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_timetz (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_timetz(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_timetz (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_timetz (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_timetz (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_timetz (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_timestamp (id serial, v timestamp) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_timestamp.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_timestamp.data'; INSERT INTO tt_timestamp(id, v) SELECT row_number() OVER(), v::timestamp from tt_temp; +CREATE TABLE tt_text_of_timestamp (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_timestamp(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_timestamp (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_timestamp(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_timestamp (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_timestamp(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_timestamp (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_timestamp(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_timestamp (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_timestamp(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_timestamp (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_timestamp(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_timestamp (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_timestamp(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_timestamp (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_timestamp(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_timestamp (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_timestamp (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_timestamp (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_timestamp (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_timestamp (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_timestamptz (id serial, v timestamptz) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_timestamptz.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_timestamptz.data'; INSERT INTO tt_timestamptz(id, v) SELECT row_number() OVER(), v::timestamptz from tt_temp; +CREATE TABLE tt_text_of_timestamptz (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_timestamptz(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_timestamptz (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_timestamptz(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_timestamptz (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_timestamptz(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_timestamptz (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_timestamptz (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_timestamptz (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_timestamptz (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_timestamptz (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_timestamptz(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_timestamptz (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_timestamptz (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_timestamptz (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_timestamptz (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_timestamptz (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_interval (id serial, v interval) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_interval.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_interval.data'; INSERT INTO tt_interval(id, v) SELECT row_number() OVER(), v::interval from tt_temp; +CREATE TABLE tt_text_of_interval (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_interval(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_interval (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_interval(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_interval (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_interval(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_interval (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_interval(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_interval (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_interval(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_interval (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_interval(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_interval (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_interval(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_interval (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_interval(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_interval (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_interval(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_interval (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_interval(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_interval (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_interval(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_interval (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_interval(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_interval (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_interval(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_cidr (id serial, v cidr) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_cidr.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_cidr.data'; INSERT INTO tt_cidr(id, v) SELECT row_number() OVER(), v::cidr from tt_temp; +CREATE TABLE tt_text_of_cidr (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_cidr(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_cidr (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_cidr(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_cidr (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_cidr(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_cidr (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_cidr(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_cidr (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_cidr(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_cidr (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_cidr(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_cidr (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_cidr(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_cidr (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_cidr(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_cidr (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_cidr(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_cidr (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_cidr (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_cidr (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_cidr (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_inet (id serial, v inet) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_inet.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_inet.data'; INSERT INTO tt_inet(id, v) SELECT row_number() OVER(), v::inet from tt_temp; +CREATE TABLE tt_text_of_inet (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_inet(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_inet (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_inet(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_inet (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_inet(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_inet (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_inet(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_inet (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_inet(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_inet (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_inet(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_inet (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_inet(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_inet (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_inet(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_inet (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_inet(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_inet (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_inet(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_inet (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_inet(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_inet (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_inet(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_inet (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_inet(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_macaddr (id serial, v macaddr) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_macaddr.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_macaddr.data'; INSERT INTO tt_macaddr(id, v) SELECT row_number() OVER(), v::macaddr from tt_temp; +CREATE TABLE tt_text_of_macaddr (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_macaddr(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_macaddr (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_macaddr(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_macaddr (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_macaddr(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_macaddr (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_macaddr(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_macaddr (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_macaddr(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_macaddr (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_macaddr(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_macaddr (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_macaddr(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_macaddr (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_macaddr(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_macaddr (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_macaddr (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_macaddr (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_macaddr (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_macaddr (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_json (id serial, v json) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_json.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_json.data'; INSERT INTO tt_json(id, v) SELECT row_number() OVER(), v::json from tt_temp; +CREATE TABLE tt_text_of_json (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_json(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_json (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_json(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_json (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_json(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_json (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_json(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_json (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_json(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_json (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_json(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_json (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_json(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_json (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_json(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_json (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_json(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_json (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_json(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_json (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_json(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_json (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_json(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_json (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_json(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_jsonb (id serial, v jsonb) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_jsonb.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_jsonb.data'; INSERT INTO tt_jsonb(id, v) SELECT row_number() OVER(), v::jsonb from tt_temp; +CREATE TABLE tt_text_of_jsonb (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_jsonb(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_jsonb (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_jsonb(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_jsonb (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_jsonb(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_jsonb (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_jsonb(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_jsonb (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_jsonb(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_jsonb (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_jsonb(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_jsonb (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_jsonb(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_jsonb (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_jsonb(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_jsonb (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_jsonb (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_jsonb (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_jsonb (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_jsonb (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_xml (id serial, v xml) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_xml.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_xml.data'; INSERT INTO tt_xml(id, v) SELECT row_number() OVER(), v::xml from tt_temp; +CREATE TABLE tt_text_of_xml (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_xml(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_xml (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_xml(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_xml (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_xml(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_xml (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_xml(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_xml (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_xml(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_xml (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_xml(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_xml (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_xml(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_xml (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_xml(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_xml (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_xml(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_xml (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_xml(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_xml (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_xml(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_xml (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_xml(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_xml (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_xml(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_char (id serial, v char) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; INSERT INTO tt_char(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_text_of_char (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_char (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_char (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_char (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_char_1 (id serial, v char(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; -INSERT INTO tt_char_1(id, v) SELECT row_number() OVER(), v::char from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_1(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_text_of_char_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::text from tt_temp; +CREATE TABLE tt_citext_of_char_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::citext from tt_temp; +CREATE TABLE tt_char_of_char_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(20) from tt_temp; CREATE TABLE tt_char_5 (id serial, v char(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; -INSERT INTO tt_char_5(id, v) SELECT row_number() OVER(), v::char from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_5(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_text_of_char_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::text from tt_temp; +CREATE TABLE tt_citext_of_char_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::citext from tt_temp; +CREATE TABLE tt_char_of_char_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(20) from tt_temp; CREATE TABLE tt_char_10 (id serial, v char(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; -INSERT INTO tt_char_10(id, v) SELECT row_number() OVER(), v::char from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_10(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_text_of_char_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::text from tt_temp; +CREATE TABLE tt_citext_of_char_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::citext from tt_temp; +CREATE TABLE tt_char_of_char_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(20) from tt_temp; +CREATE TABLE tt_char_20 (id serial, v char(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_20(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_text_of_char_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::text from tt_temp; +CREATE TABLE tt_citext_of_char_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::citext from tt_temp; +CREATE TABLE tt_char_of_char_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(20) from tt_temp; CREATE TABLE tt_varchar (id serial, v varchar) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; INSERT INTO tt_varchar(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_text_of_varchar (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_varchar (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_varchar (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_varchar_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; -INSERT INTO tt_varchar_1(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_text_of_varchar_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(20) from tt_temp; CREATE TABLE tt_varchar_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; -INSERT INTO tt_varchar_5(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_text_of_varchar_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(20) from tt_temp; CREATE TABLE tt_varchar_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; -INSERT INTO tt_varchar_10(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_text_of_varchar_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(20) from tt_temp; +CREATE TABLE tt_varchar_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; +CREATE TABLE tt_text_of_varchar_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(20) from tt_temp; CREATE TABLE tt_text (id serial, v text) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_text.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_text.data'; INSERT INTO tt_text(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_text_of_text (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_text(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_text (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_text(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_text (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_text(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_text (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_text(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_text (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_text(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_text (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_text(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_text (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_text(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_text (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_text(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_text (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_text(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_text (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_text(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_text (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_text(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_text (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_text(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_text (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_text(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_money (id serial, v money) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_money.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_money.data'; INSERT INTO tt_money(id, v) SELECT row_number() OVER(), v::money from tt_temp; +CREATE TABLE tt_text_of_money (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_money(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_money (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_money(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_money (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_money(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_money (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_money(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_money (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_money(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_money (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_money(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_money (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_money(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_money (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_money(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_money (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_money(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_money (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_money(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_money (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_money(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_money (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_money(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_money (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_money(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_uuid (id serial, v uuid) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_uuid.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_uuid.data'; INSERT INTO tt_uuid(id, v) SELECT row_number() OVER(), v::uuid from tt_temp; +CREATE TABLE tt_text_of_uuid (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_uuid(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_uuid (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_uuid(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_uuid (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_uuid(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_uuid (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_uuid(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_uuid (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_uuid(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_uuid (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_uuid(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_uuid (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_uuid(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_uuid (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_uuid(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_uuid (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_uuid(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_uuid (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_uuid (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_uuid (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_uuid (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_citext (id serial, v citext) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_citext.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_citext.data'; INSERT INTO tt_citext(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_text_of_citext (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_citext(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_citext (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_citext(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_citext (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_citext(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_citext (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_citext(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_citext (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_citext(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_citext (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_citext(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_citext (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_citext(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_citext (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_citext(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_citext (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_citext(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_citext (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_citext(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_citext (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_citext(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_citext (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_citext(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_citext (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_citext(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; -- TEXT TESTS - +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_text_of_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_text_of_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_text_of_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_text_of_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_text_of_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_text_of_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_text_of_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_text_of_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_text_of_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_text_of_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_text_of_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_text_of_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_text_of_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_text_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_text_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_text_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_text_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_text_of_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_text_of_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_text_of_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_text_of_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_text_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_text_of_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_text_of_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_text_of_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_text_of_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_text_of_json) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_text_of_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_text_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text_of_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_text_of_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_text_of_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_text_of_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_text_of_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text_of_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_text_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_text_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_text_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_text_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_text_of_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_text_of_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_text_of_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_text_of_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_citext_of_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_citext_of_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_citext_of_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_citext_of_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_citext_of_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_citext_of_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_citext_of_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_citext_of_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_citext_of_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_citext_of_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_citext_of_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_citext_of_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_citext_of_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_citext_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_citext_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_citext_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_citext_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_citext_of_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_citext_of_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_citext_of_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_citext_of_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_citext_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_citext_of_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_citext_of_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_citext_of_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_citext_of_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_citext_of_json) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_citext_of_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_citext_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_citext_of_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_citext_of_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_citext_of_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_citext_of_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_citext_of_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_citext_of_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_citext_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_citext_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_citext_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_citext_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_citext_of_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_citext_of_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_citext_of_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_citext_of_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_char_of_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_of_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_char_of_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_char_of_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_char_of_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_char_of_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_char_of_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_char_of_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_char_of_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_char_of_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_char_of_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_char_of_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_char_of_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_char_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_char_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_char_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_char_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_char_of_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_char_of_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_char_of_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_char_of_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_char_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_char_of_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_char_of_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_char_of_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_char_of_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_char_of_json) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_char_of_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_char_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_char_of_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_char_of_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_char_of_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_char_of_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_char_of_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_of_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_char_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_char_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_char_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_char_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_of_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_char_of_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_char_of_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_char_of_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bpchar'::text) as v2 from tt_bpchar_of_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bpchar'::text) as v2 from tt_bpchar_of_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql_text(v::text, NULL::int2, 'bpchar'::text) as v2 from tt_bpchar_of_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql_text(v::text, NULL::float8, 'bpchar'::text) as v2 from tt_bpchar_of_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql_text(v::text, NULL::float4, 'bpchar'::text) as v2 from tt_bpchar_of_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql_text(v::text, NULL::numeric, 'bpchar'::text) as v2 from tt_bpchar_of_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql_text(v::text, NULL::bool, 'bpchar'::text) as v2 from tt_bpchar_of_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bpchar'::text) as v2 from tt_bpchar_of_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 1) as v2 from tt_bpchar_of_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 5) as v2 from tt_bpchar_of_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 10) as v2 from tt_bpchar_of_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 20) as v2 from tt_bpchar_of_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bpchar'::text) as v2 from tt_bpchar_of_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 1) as v2 from tt_bpchar_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 5) as v2 from tt_bpchar_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 10) as v2 from tt_bpchar_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 20) as v2 from tt_bpchar_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql_text(v::text, NULL::date, 'bpchar'::text) as v2 from tt_bpchar_of_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql_text(v::text, NULL::time, 'bpchar'::text) as v2 from tt_bpchar_of_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql_text(v::text, NULL::timetz, 'bpchar'::text) as v2 from tt_bpchar_of_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql_text(v::text, NULL::timestamp, 'bpchar'::text) as v2 from tt_bpchar_of_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql_text(v::text, NULL::timestamptz, 'bpchar'::text) as v2 from tt_bpchar_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql_text(v::text, NULL::interval, 'bpchar'::text) as v2 from tt_bpchar_of_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql_text(v::text, NULL::cidr, 'bpchar'::text) as v2 from tt_bpchar_of_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql_text(v::text, NULL::inet, 'bpchar'::text) as v2 from tt_bpchar_of_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql_text(v::text, NULL::macaddr, 'bpchar'::text) as v2 from tt_bpchar_of_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql_text(v::text, NULL::json, 'bpchar'::text) as v2 from tt_bpchar_of_json) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql_text(v::text, NULL::jsonb, 'bpchar'::text) as v2 from tt_bpchar_of_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'bpchar'::text) as v2 from tt_bpchar_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bpchar'::text) as v2 from tt_bpchar_of_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 1) as v2 from tt_bpchar_of_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 5) as v2 from tt_bpchar_of_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 10) as v2 from tt_bpchar_of_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 20) as v2 from tt_bpchar_of_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bpchar'::text) as v2 from tt_bpchar_of_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 1) as v2 from tt_bpchar_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 5) as v2 from tt_bpchar_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 10) as v2 from tt_bpchar_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 20) as v2 from tt_bpchar_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bpchar'::text) as v2 from tt_bpchar_of_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql_text(v::text, NULL::money, 'bpchar'::text) as v2 from tt_bpchar_of_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql_text(v::text, NULL::uuid, 'bpchar'::text) as v2 from tt_bpchar_of_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bpchar'::text) as v2 from tt_bpchar_of_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_varchar_of_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_varchar_of_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_varchar_of_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_varchar_of_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_varchar_of_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_varchar_of_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_varchar_of_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varchar_of_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_varchar_of_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_varchar_of_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_varchar_of_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_varchar_of_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varchar_of_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_varchar_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_varchar_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_varchar_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_varchar_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_varchar_of_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_varchar_of_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_varchar_of_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_varchar_of_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_varchar_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_varchar_of_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_varchar_of_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_varchar_of_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_varchar_of_macaddr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_varchar_of_json) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_varchar_of_jsonb) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_of_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_varchar_of_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_varchar_of_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_varchar_of_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_varchar_of_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_of_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_varchar_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_varchar_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_varchar_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_varchar_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_of_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_varchar_of_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_varchar_of_uuid) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_of_citext) as t(v1, v2) where v1 is distinct from v2; -- FUNCTION TESTS select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; @@ -447,61 +2338,85 @@ select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, N select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 1) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 5) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 10) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 20) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 1) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 5) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 10) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 20) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 1) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 5) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 10) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 20) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 1) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 5) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 10) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 20) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 1) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 5) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 10) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 20) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 1) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 5) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 10) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 20) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 1) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 5) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 10) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 20) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 1) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 5) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 10) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 20) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; @@ -517,144 +2432,200 @@ select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NU select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 1) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 5) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 10) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 20) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 1) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 5) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 10) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 20) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 1) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 5) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 10) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 20) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 1) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 5) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 10) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 20) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 1) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 5) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 10) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 20) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 1) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 5) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 10) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 20) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 1) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 5) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 10) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 20) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 1) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 5) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 10) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 20) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_text) as t(v1, v2) where v1::text is distinct from v2::text; select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 1) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 5) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 10) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 20) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 1) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 5) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 10) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 20) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 1) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 5) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 10) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 20) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 1) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 5) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 10) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 20) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 1) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 5) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 10) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 20) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 1) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 5) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 10) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 20) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 1) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 5) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 10) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 20) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 1) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 5) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 10) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 20) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 1) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 5) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 10) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 20) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 1) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 5) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 10) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 20) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 1) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 5) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 10) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 20) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 1) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 5) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 10) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 20) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_jsonb) as t(v1, v2) where v1::text is distinct from v2::text; select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; reset search_path; diff --git a/contrib/try_convert/output/try_convert.source b/contrib/try_convert/output/try_convert.source index b3eb238c85..cec5602d0a 100644 --- a/contrib/try_convert/output/try_convert.source +++ b/contrib/try_convert/output/try_convert.source @@ -11,7 +11,37 @@ CREATE EXTENSION IF NOT EXISTS try_convert; -- start_ignore CREATE EXTENSION IF NOT EXISTS citext; -- end_ignore -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in int8, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_text(_in text, INOUT _out ANYELEMENT, source_type text) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::%s::%s', $1, source_type, pg_typeof(_out)) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql_text_with_len_out(_in text, INOUT _out ANYELEMENT, source_type text, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::%s::%s(%d)', $1, source_type, pg_typeof(_out), len_out) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql_with_len_out(_in int8, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::int8::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in int8, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -21,7 +51,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in int4, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in int4, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::int4::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in int4, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -31,7 +71,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in int2, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in int2, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::int2::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in int2, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -41,7 +91,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in float8, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in float8, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::float8::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in float8, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -51,7 +111,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in float4, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in float4, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::float4::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in float4, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -61,7 +131,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in numeric, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in numeric, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::numeric::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in numeric, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -71,7 +151,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in bool, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in bool, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::bool::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in bool, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -81,7 +171,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in bit, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in bit, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::bit::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in bit, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -91,7 +191,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in varbit, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in varbit, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::varbit::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in varbit, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -101,7 +211,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in date, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in date, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::date::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in date, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -111,7 +231,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in time, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in time, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::time::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in time, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -121,7 +251,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in timetz, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in timetz, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::timetz::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in timetz, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -131,7 +271,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in timestamp, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in timestamp, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::timestamp::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in timestamp, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -141,7 +291,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in timestamptz, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in timestamptz, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::timestamptz::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in timestamptz, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -151,7 +311,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in interval, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in interval, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::interval::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in interval, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -161,7 +331,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in cidr, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in cidr, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::cidr::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in cidr, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -171,7 +351,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in inet, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in inet, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::inet::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in inet, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -181,7 +371,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in macaddr, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in macaddr, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::macaddr::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in macaddr, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -191,7 +391,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in json, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in json, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::json::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in json, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -201,7 +411,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in jsonb, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in jsonb, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::jsonb::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in jsonb, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -211,7 +431,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in xml, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in xml, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::xml::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in xml, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -221,7 +451,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in char, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in char, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::char::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in char, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -231,7 +471,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in varchar, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in varchar, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::varchar::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in varchar, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -241,7 +491,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in text, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in text, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::text::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in text, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -251,7 +511,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in money, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in money, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::money::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in money, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -261,7 +531,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in uuid, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in uuid, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::uuid::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in uuid, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -271,7 +551,17 @@ $func$ -- do nothing: _out already carries default END $func$; -CREATE OR REPLACE FUNCTION try_convert_by_sql(_in citext, INOUT _out ANYELEMENT) +CREATE FUNCTION try_convert_by_sql_with_len_out(_in citext, INOUT _out ANYELEMENT, len_out int) + LANGUAGE plpgsql AS +$func$ + BEGIN + EXECUTE format('SELECT %L::citext::%s(%s)', $1, pg_typeof(_out), len_out::text) + INTO _out; + EXCEPTION WHEN others THEN + -- do nothing: _out already carries default + END +$func$; +CREATE FUNCTION try_convert_by_sql(_in citext, INOUT _out ANYELEMENT) LANGUAGE plpgsql AS $func$ BEGIN @@ -283,818 +573,4349 @@ $func$ $func$; -- LOAD DATA CREATE TABLE tt_temp (v text) DISTRIBUTED BY (v); -CREATE TABLE tt_temp_citext (v citext) DISTRIBUTED BY (v); CREATE TABLE tt_int8 (id serial, v int8) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_int8.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_int8.data'; INSERT INTO tt_int8(id, v) SELECT row_number() OVER(), v::int8 from tt_temp; +CREATE TABLE tt_text_of_int8 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_int8(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_int8 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_int8(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_int8 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_int8(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_int8 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_int8(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_int8 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_int8(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_int8 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_int8(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_int8 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_int8(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_int8 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_int8(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_int8 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_int8(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_int8 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_int8(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_int8 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_int8(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_int8 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_int8(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_int8 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_int8(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_int4 (id serial, v int4) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_int4.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_int4.data'; INSERT INTO tt_int4(id, v) SELECT row_number() OVER(), v::int4 from tt_temp; +CREATE TABLE tt_text_of_int4 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_int4(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_int4 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_int4(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_int4 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_int4(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_int4 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_int4(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_int4 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_int4(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_int4 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_int4(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_int4 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_int4(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_int4 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_int4(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_int4 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_int4(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_int4 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_int4(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_int4 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_int4(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_int4 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_int4(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_int4 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_int4(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_int2 (id serial, v int2) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_int2.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_int2.data'; INSERT INTO tt_int2(id, v) SELECT row_number() OVER(), v::int2 from tt_temp; +CREATE TABLE tt_text_of_int2 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_int2(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_int2 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_int2(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_int2 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_int2(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_int2 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_int2(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_int2 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_int2(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_int2 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_int2(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_int2 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_int2(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_int2 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_int2(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_int2 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_int2(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_int2 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_int2(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_int2 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_int2(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_int2 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_int2(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_int2 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_int2(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_float8 (id serial, v float8) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_float8.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_float8.data'; INSERT INTO tt_float8(id, v) SELECT row_number() OVER(), v::float8 from tt_temp; +CREATE TABLE tt_text_of_float8 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_float8(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_float8 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_float8(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_float8 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_float8(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_float8 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_float8(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_float8 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_float8(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_float8 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_float8(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_float8 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_float8(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_float8 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_float8(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_float8 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_float8(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_float8 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_float8(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_float8 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_float8(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_float8 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_float8(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_float8 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_float8(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_float4 (id serial, v float4) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_float4.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_float4.data'; INSERT INTO tt_float4(id, v) SELECT row_number() OVER(), v::float4 from tt_temp; +CREATE TABLE tt_text_of_float4 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_float4(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_float4 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_float4(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_float4 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_float4(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_float4 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_float4(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_float4 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_float4(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_float4 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_float4(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_float4 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_float4(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_float4 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_float4(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_float4 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_float4(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_float4 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_float4(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_float4 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_float4(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_float4 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_float4(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_float4 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_float4(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_numeric (id serial, v numeric) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_numeric.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_numeric.data'; INSERT INTO tt_numeric(id, v) SELECT row_number() OVER(), v::numeric from tt_temp; +CREATE TABLE tt_text_of_numeric (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_numeric(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_numeric (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_numeric(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_numeric (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_numeric(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_numeric (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_numeric(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_numeric (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_numeric(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_numeric (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_numeric(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_numeric (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_numeric(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_numeric (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_numeric(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_numeric (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_numeric(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_numeric (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_numeric (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_numeric (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_numeric (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_numeric(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_bool (id serial, v bool) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bool.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bool.data'; INSERT INTO tt_bool(id, v) SELECT row_number() OVER(), v::bool from tt_temp; +CREATE TABLE tt_text_of_bool (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bool(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_bool (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bool(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_bool (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bool(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_bool (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bool(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bool (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bool(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bool (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bool(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bool (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bool(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bool (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bool(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bool (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bool(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bool (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bool(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bool (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bool(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bool (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bool(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bool (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bool(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_bit (id serial, v bit) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; INSERT INTO tt_bit(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +CREATE TABLE tt_text_of_bit (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_bit (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_bit (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_bit (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_bit_1 (id serial, v bit(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; -INSERT INTO tt_bit_1(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_1(id, v) SELECT row_number() OVER(), v::bit(1) from tt_temp; +CREATE TABLE tt_text_of_bit_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_1(id, v) SELECT row_number() OVER(), v::bit(1)::varchar(20) from tt_temp; CREATE TABLE tt_bit_5 (id serial, v bit(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; -INSERT INTO tt_bit_5(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_5(id, v) SELECT row_number() OVER(), v::bit(5) from tt_temp; +CREATE TABLE tt_text_of_bit_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_5(id, v) SELECT row_number() OVER(), v::bit(5)::varchar(20) from tt_temp; CREATE TABLE tt_bit_10 (id serial, v bit(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; -INSERT INTO tt_bit_10(id, v) SELECT row_number() OVER(), v::bit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_10(id, v) SELECT row_number() OVER(), v::bit(10) from tt_temp; +CREATE TABLE tt_text_of_bit_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_10(id, v) SELECT row_number() OVER(), v::bit(10)::varchar(20) from tt_temp; +CREATE TABLE tt_bit_20 (id serial, v bit(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_bit.data'; +INSERT INTO tt_bit_20(id, v) SELECT row_number() OVER(), v::bit(20) from tt_temp; +CREATE TABLE tt_text_of_bit_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::text from tt_temp; +CREATE TABLE tt_citext_of_bit_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::citext from tt_temp; +CREATE TABLE tt_char_of_bit_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_bit_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_bit_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_bit_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_bit_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_bit_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_bit_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_bit_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_bit_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_bit_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_bit_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_bit_20(id, v) SELECT row_number() OVER(), v::bit(20)::varchar(20) from tt_temp; CREATE TABLE tt_varbit (id serial, v varbit) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; INSERT INTO tt_varbit(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +CREATE TABLE tt_text_of_varbit (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_varbit (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_varbit (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_varbit_1 (id serial, v varbit(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; -INSERT INTO tt_varbit_1(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1) from tt_temp; +CREATE TABLE tt_text_of_varbit_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_1(id, v) SELECT row_number() OVER(), v::varbit(1)::varchar(20) from tt_temp; CREATE TABLE tt_varbit_5 (id serial, v varbit(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; -INSERT INTO tt_varbit_5(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5) from tt_temp; +CREATE TABLE tt_text_of_varbit_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_5(id, v) SELECT row_number() OVER(), v::varbit(5)::varchar(20) from tt_temp; CREATE TABLE tt_varbit_10 (id serial, v varbit(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; -INSERT INTO tt_varbit_10(id, v) SELECT row_number() OVER(), v::varbit from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10) from tt_temp; +CREATE TABLE tt_text_of_varbit_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_10(id, v) SELECT row_number() OVER(), v::varbit(10)::varchar(20) from tt_temp; +CREATE TABLE tt_varbit_20 (id serial, v varbit(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varbit.data'; +INSERT INTO tt_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20) from tt_temp; +CREATE TABLE tt_text_of_varbit_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::text from tt_temp; +CREATE TABLE tt_citext_of_varbit_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::citext from tt_temp; +CREATE TABLE tt_char_of_varbit_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_varbit_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varbit_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varbit_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varbit_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varbit_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varbit_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varbit_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varbit_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varbit_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varbit_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varbit_20(id, v) SELECT row_number() OVER(), v::varbit(20)::varchar(20) from tt_temp; CREATE TABLE tt_date (id serial, v date) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_date.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_date.data'; INSERT INTO tt_date(id, v) SELECT row_number() OVER(), v::date from tt_temp; +CREATE TABLE tt_text_of_date (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_date(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_date (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_date(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_date (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_date(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_date (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_date(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_date (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_date(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_date (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_date(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_date (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_date(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_date (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_date(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_date (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_date(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_date (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_date(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_date (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_date(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_date (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_date(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_date (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_date(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_time (id serial, v time) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_time.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_time.data'; INSERT INTO tt_time(id, v) SELECT row_number() OVER(), v::time from tt_temp; +CREATE TABLE tt_text_of_time (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_time(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_time (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_time(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_time (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_time(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_time (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_time(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_time (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_time(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_time (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_time(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_time (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_time(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_time (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_time(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_time (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_time(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_time (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_time(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_time (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_time(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_time (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_time(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_time (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_time(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_timetz (id serial, v timetz) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_timetz.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_timetz.data'; INSERT INTO tt_timetz(id, v) SELECT row_number() OVER(), v::timetz from tt_temp; +CREATE TABLE tt_text_of_timetz (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_timetz(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_timetz (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_timetz(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_timetz (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_timetz(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_timetz (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_timetz(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_timetz (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_timetz(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_timetz (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_timetz(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_timetz (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_timetz(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_timetz (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_timetz(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_timetz (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_timetz(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_timetz (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_timetz (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_timetz (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_timetz (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_timetz(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_timestamp (id serial, v timestamp) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_timestamp.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_timestamp.data'; INSERT INTO tt_timestamp(id, v) SELECT row_number() OVER(), v::timestamp from tt_temp; +CREATE TABLE tt_text_of_timestamp (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_timestamp(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_timestamp (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_timestamp(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_timestamp (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_timestamp(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_timestamp (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_timestamp(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_timestamp (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_timestamp(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_timestamp (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_timestamp(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_timestamp (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_timestamp(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_timestamp (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_timestamp(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_timestamp (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_timestamp (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_timestamp (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_timestamp (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_timestamp (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_timestamp(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_timestamptz (id serial, v timestamptz) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_timestamptz.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_timestamptz.data'; INSERT INTO tt_timestamptz(id, v) SELECT row_number() OVER(), v::timestamptz from tt_temp; +CREATE TABLE tt_text_of_timestamptz (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_timestamptz(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_timestamptz (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_timestamptz(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_timestamptz (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_timestamptz(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_timestamptz (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_timestamptz (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_timestamptz (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_timestamptz (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_timestamptz(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_timestamptz (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_timestamptz(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_timestamptz (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_timestamptz (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_timestamptz (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_timestamptz (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_timestamptz (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_timestamptz(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_interval (id serial, v interval) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_interval.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_interval.data'; INSERT INTO tt_interval(id, v) SELECT row_number() OVER(), v::interval from tt_temp; +CREATE TABLE tt_text_of_interval (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_interval(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_interval (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_interval(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_interval (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_interval(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_interval (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_interval(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_interval (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_interval(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_interval (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_interval(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_interval (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_interval(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_interval (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_interval(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_interval (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_interval(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_interval (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_interval(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_interval (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_interval(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_interval (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_interval(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_interval (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_interval(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_cidr (id serial, v cidr) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_cidr.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_cidr.data'; INSERT INTO tt_cidr(id, v) SELECT row_number() OVER(), v::cidr from tt_temp; +CREATE TABLE tt_text_of_cidr (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_cidr(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_cidr (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_cidr(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_cidr (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_cidr(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_cidr (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_cidr(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_cidr (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_cidr(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_cidr (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_cidr(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_cidr (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_cidr(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_cidr (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_cidr(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_cidr (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_cidr(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_cidr (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_cidr (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_cidr (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_cidr (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_cidr(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_inet (id serial, v inet) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_inet.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_inet.data'; INSERT INTO tt_inet(id, v) SELECT row_number() OVER(), v::inet from tt_temp; +CREATE TABLE tt_text_of_inet (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_inet(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_inet (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_inet(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_inet (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_inet(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_inet (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_inet(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_inet (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_inet(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_inet (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_inet(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_inet (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_inet(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_inet (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_inet(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_inet (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_inet(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_inet (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_inet(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_inet (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_inet(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_inet (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_inet(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_inet (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_inet(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_macaddr (id serial, v macaddr) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_macaddr.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_macaddr.data'; INSERT INTO tt_macaddr(id, v) SELECT row_number() OVER(), v::macaddr from tt_temp; +CREATE TABLE tt_text_of_macaddr (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_macaddr(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_macaddr (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_macaddr(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_macaddr (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_macaddr(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_macaddr (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_macaddr(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_macaddr (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_macaddr(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_macaddr (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_macaddr(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_macaddr (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_macaddr(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_macaddr (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_macaddr(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_macaddr (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_macaddr (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_macaddr (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_macaddr (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_macaddr (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_macaddr(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_json (id serial, v json) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_json.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_json.data'; INSERT INTO tt_json(id, v) SELECT row_number() OVER(), v::json from tt_temp; +CREATE TABLE tt_text_of_json (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_json(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_json (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_json(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_json (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_json(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_json (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_json(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_json (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_json(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_json (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_json(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_json (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_json(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_json (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_json(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_json (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_json(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_json (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_json(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_json (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_json(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_json (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_json(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_json (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_json(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_jsonb (id serial, v jsonb) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_jsonb.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_jsonb.data'; INSERT INTO tt_jsonb(id, v) SELECT row_number() OVER(), v::jsonb from tt_temp; +CREATE TABLE tt_text_of_jsonb (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_jsonb(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_jsonb (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_jsonb(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_jsonb (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_jsonb(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_jsonb (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_jsonb(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_jsonb (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_jsonb(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_jsonb (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_jsonb(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_jsonb (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_jsonb(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_jsonb (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_jsonb(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_jsonb (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_jsonb (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_jsonb (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_jsonb (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_jsonb (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_jsonb(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_xml (id serial, v xml) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_xml.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_xml.data'; INSERT INTO tt_xml(id, v) SELECT row_number() OVER(), v::xml from tt_temp; +CREATE TABLE tt_text_of_xml (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_xml(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_xml (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_xml(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_xml (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_xml(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_xml (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_xml(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_xml (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_xml(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_xml (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_xml(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_xml (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_xml(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_xml (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_xml(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_xml (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_xml(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_xml (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_xml(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_xml (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_xml(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_xml (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_xml(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_xml (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_xml(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_char (id serial, v char) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; INSERT INTO tt_char(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_text_of_char (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_char (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_char (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_char (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_char_1 (id serial, v char(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; -INSERT INTO tt_char_1(id, v) SELECT row_number() OVER(), v::char from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_1(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_text_of_char_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::text from tt_temp; +CREATE TABLE tt_citext_of_char_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::citext from tt_temp; +CREATE TABLE tt_char_of_char_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_1(id, v) SELECT row_number() OVER(), v::char(1)::varchar(20) from tt_temp; CREATE TABLE tt_char_5 (id serial, v char(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; -INSERT INTO tt_char_5(id, v) SELECT row_number() OVER(), v::char from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_5(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_text_of_char_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::text from tt_temp; +CREATE TABLE tt_citext_of_char_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::citext from tt_temp; +CREATE TABLE tt_char_of_char_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_5(id, v) SELECT row_number() OVER(), v::char(5)::varchar(20) from tt_temp; CREATE TABLE tt_char_10 (id serial, v char(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; -INSERT INTO tt_char_10(id, v) SELECT row_number() OVER(), v::char from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_10(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_text_of_char_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::text from tt_temp; +CREATE TABLE tt_citext_of_char_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::citext from tt_temp; +CREATE TABLE tt_char_of_char_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_10(id, v) SELECT row_number() OVER(), v::char(10)::varchar(20) from tt_temp; +CREATE TABLE tt_char_20 (id serial, v char(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_char.data'; +INSERT INTO tt_char_20(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_text_of_char_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::text from tt_temp; +CREATE TABLE tt_citext_of_char_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::citext from tt_temp; +CREATE TABLE tt_char_of_char_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_char_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_char_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_char_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_char_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_char_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_char_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_char_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_char_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_char_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_char_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_char_20(id, v) SELECT row_number() OVER(), v::char(20)::varchar(20) from tt_temp; CREATE TABLE tt_varchar (id serial, v varchar) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; INSERT INTO tt_varchar(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_text_of_varchar (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_varchar (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_varchar (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_varchar_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; -INSERT INTO tt_varchar_1(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_text_of_varchar_1 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_1 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_1 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_1 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_1 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_1 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_1 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_1 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_1 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_1 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_1 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_1 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_1 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_1(id, v) SELECT row_number() OVER(), v::varchar(1)::varchar(20) from tt_temp; CREATE TABLE tt_varchar_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; -INSERT INTO tt_varchar_5(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_text_of_varchar_5 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_5 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_5 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_5 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_5 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_5 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_5 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_5 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_5 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_5 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_5 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_5 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_5 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_5(id, v) SELECT row_number() OVER(), v::varchar(5)::varchar(20) from tt_temp; CREATE TABLE tt_varchar_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; -INSERT INTO tt_varchar_10(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_text_of_varchar_10 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_10 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_10 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_10 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_10 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_10 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_10 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_10 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_10 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_10 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_10 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_10 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_10 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_10(id, v) SELECT row_number() OVER(), v::varchar(10)::varchar(20) from tt_temp; +CREATE TABLE tt_varchar_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_varchar.data'; +INSERT INTO tt_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; +CREATE TABLE tt_text_of_varchar_20 (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::text from tt_temp; +CREATE TABLE tt_citext_of_varchar_20 (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::citext from tt_temp; +CREATE TABLE tt_char_of_varchar_20 (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char from tt_temp; +CREATE TABLE tt_char_1_of_varchar_20 (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_varchar_20 (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_varchar_20 (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_varchar_20 (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_varchar_20 (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_varchar_20 (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_varchar_20 (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_varchar_20 (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_varchar_20 (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_varchar_20 (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_varchar_20(id, v) SELECT row_number() OVER(), v::varchar(20)::varchar(20) from tt_temp; CREATE TABLE tt_text (id serial, v text) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_text.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_text.data'; INSERT INTO tt_text(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_text_of_text (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_text(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_text (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_text(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_text (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_text(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_text (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_text(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_text (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_text(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_text (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_text(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_text (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_text(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_text (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_text(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_text (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_text(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_text (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_text(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_text (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_text(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_text (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_text(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_text (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_text(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_money (id serial, v money) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_money.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_money.data'; INSERT INTO tt_money(id, v) SELECT row_number() OVER(), v::money from tt_temp; +CREATE TABLE tt_text_of_money (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_money(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_money (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_money(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_money (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_money(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_money (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_money(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_money (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_money(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_money (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_money(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_money (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_money(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_money (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_money(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_money (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_money(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_money (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_money(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_money (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_money(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_money (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_money(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_money (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_money(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_uuid (id serial, v uuid) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_uuid.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_uuid.data'; INSERT INTO tt_uuid(id, v) SELECT row_number() OVER(), v::uuid from tt_temp; +CREATE TABLE tt_text_of_uuid (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_uuid(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_uuid (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_uuid(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_uuid (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_uuid(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_uuid (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_uuid(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_uuid (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_uuid(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_uuid (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_uuid(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_uuid (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_uuid(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_uuid (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_uuid(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_uuid (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_uuid(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_uuid (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_uuid (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_uuid (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_uuid (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_uuid(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; CREATE TABLE tt_citext (id serial, v citext) DISTRIBUTED BY (id); -DELETE FROM tt_temp;COPY tt_temp from '@abs_srcdir@/data/tt_citext.data'; +DELETE FROM tt_temp; +COPY tt_temp from '@abs_srcdir@/data/tt_citext.data'; INSERT INTO tt_citext(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_text_of_citext (id serial, v text) DISTRIBUTED BY (id); +INSERT INTO tt_text_of_citext(id, v) SELECT row_number() OVER(), v::text from tt_temp; +CREATE TABLE tt_citext_of_citext (id serial, v citext) DISTRIBUTED BY (id); +INSERT INTO tt_citext_of_citext(id, v) SELECT row_number() OVER(), v::citext from tt_temp; +CREATE TABLE tt_char_of_citext (id serial, v char) DISTRIBUTED BY (id); +INSERT INTO tt_char_of_citext(id, v) SELECT row_number() OVER(), v::char from tt_temp; +CREATE TABLE tt_char_1_of_citext (id serial, v char(1)) DISTRIBUTED BY (id); +INSERT INTO tt_char_1_of_citext(id, v) SELECT row_number() OVER(), v::char(1) from tt_temp; +CREATE TABLE tt_char_5_of_citext (id serial, v char(5)) DISTRIBUTED BY (id); +INSERT INTO tt_char_5_of_citext(id, v) SELECT row_number() OVER(), v::char(5) from tt_temp; +CREATE TABLE tt_char_10_of_citext (id serial, v char(10)) DISTRIBUTED BY (id); +INSERT INTO tt_char_10_of_citext(id, v) SELECT row_number() OVER(), v::char(10) from tt_temp; +CREATE TABLE tt_char_20_of_citext (id serial, v char(20)) DISTRIBUTED BY (id); +INSERT INTO tt_char_20_of_citext(id, v) SELECT row_number() OVER(), v::char(20) from tt_temp; +CREATE TABLE tt_bpchar_of_citext (id serial, v bpchar) DISTRIBUTED BY (id); +INSERT INTO tt_bpchar_of_citext(id, v) SELECT row_number() OVER(), v::bpchar from tt_temp; +CREATE TABLE tt_varchar_of_citext (id serial, v varchar) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_of_citext(id, v) SELECT row_number() OVER(), v::varchar from tt_temp; +CREATE TABLE tt_varchar_1_of_citext (id serial, v varchar(1)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_1_of_citext(id, v) SELECT row_number() OVER(), v::varchar(1) from tt_temp; +CREATE TABLE tt_varchar_5_of_citext (id serial, v varchar(5)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_5_of_citext(id, v) SELECT row_number() OVER(), v::varchar(5) from tt_temp; +CREATE TABLE tt_varchar_10_of_citext (id serial, v varchar(10)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_10_of_citext(id, v) SELECT row_number() OVER(), v::varchar(10) from tt_temp; +CREATE TABLE tt_varchar_20_of_citext (id serial, v varchar(20)) DISTRIBUTED BY (id); +INSERT INTO tt_varchar_20_of_citext(id, v) SELECT row_number() OVER(), v::varchar(20) from tt_temp; -- TEXT TESTS +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_text_of_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_text_of_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_text_of_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_text_of_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_text_of_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_text_of_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_text_of_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_text_of_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_text_of_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_text_of_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_text_of_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_text_of_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_text_of_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_text_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_text_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_text_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_text_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_text_of_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_text_of_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_text_of_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_text_of_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_text_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_text_of_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_text_of_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_text_of_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_text_of_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_text_of_json) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_text_of_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_text_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text_of_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_text_of_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_text_of_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_text_of_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_text_of_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text_of_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_text_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_text_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_text_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_text_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_text_of_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_text_of_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_text_of_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_text_of_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_citext_of_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_citext_of_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_citext_of_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_citext_of_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_citext_of_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_citext_of_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_citext_of_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_citext_of_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_citext_of_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_citext_of_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_citext_of_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_citext_of_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_citext_of_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_citext_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_citext_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_citext_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_citext_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_citext_of_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_citext_of_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_citext_of_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_citext_of_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_citext_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_citext_of_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_citext_of_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_citext_of_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_citext_of_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_citext_of_json) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_citext_of_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_citext_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_citext_of_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_citext_of_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_citext_of_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_citext_of_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_citext_of_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_citext_of_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_citext_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_citext_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_citext_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_citext_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_citext_of_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_citext_of_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_citext_of_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_citext_of_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_char_of_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_of_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_char_of_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_char_of_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_char_of_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_char_of_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_char_of_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_char_of_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_char_of_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_char_of_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_char_of_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_char_of_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_char_of_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_char_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_char_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_char_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_char_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_char_of_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_char_of_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_char_of_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_char_of_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_char_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_char_of_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_char_of_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_char_of_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_char_of_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_char_of_json) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_char_of_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_char_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_char_of_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_char_of_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_char_of_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_char_of_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_char_of_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_of_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_char_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_char_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_char_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_char_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_of_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_char_of_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_char_of_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_char_of_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bpchar'::text) as v2 from tt_bpchar_of_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bpchar'::text) as v2 from tt_bpchar_of_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql_text(v::text, NULL::int2, 'bpchar'::text) as v2 from tt_bpchar_of_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql_text(v::text, NULL::float8, 'bpchar'::text) as v2 from tt_bpchar_of_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql_text(v::text, NULL::float4, 'bpchar'::text) as v2 from tt_bpchar_of_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql_text(v::text, NULL::numeric, 'bpchar'::text) as v2 from tt_bpchar_of_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql_text(v::text, NULL::bool, 'bpchar'::text) as v2 from tt_bpchar_of_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bpchar'::text) as v2 from tt_bpchar_of_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 1) as v2 from tt_bpchar_of_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 5) as v2 from tt_bpchar_of_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 10) as v2 from tt_bpchar_of_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bpchar'::text, 20) as v2 from tt_bpchar_of_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bpchar'::text) as v2 from tt_bpchar_of_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 1) as v2 from tt_bpchar_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 5) as v2 from tt_bpchar_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 10) as v2 from tt_bpchar_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bpchar'::text, 20) as v2 from tt_bpchar_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql_text(v::text, NULL::date, 'bpchar'::text) as v2 from tt_bpchar_of_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql_text(v::text, NULL::time, 'bpchar'::text) as v2 from tt_bpchar_of_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql_text(v::text, NULL::timetz, 'bpchar'::text) as v2 from tt_bpchar_of_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql_text(v::text, NULL::timestamp, 'bpchar'::text) as v2 from tt_bpchar_of_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql_text(v::text, NULL::timestamptz, 'bpchar'::text) as v2 from tt_bpchar_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql_text(v::text, NULL::interval, 'bpchar'::text) as v2 from tt_bpchar_of_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql_text(v::text, NULL::cidr, 'bpchar'::text) as v2 from tt_bpchar_of_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql_text(v::text, NULL::inet, 'bpchar'::text) as v2 from tt_bpchar_of_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql_text(v::text, NULL::macaddr, 'bpchar'::text) as v2 from tt_bpchar_of_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql_text(v::text, NULL::json, 'bpchar'::text) as v2 from tt_bpchar_of_json) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql_text(v::text, NULL::jsonb, 'bpchar'::text) as v2 from tt_bpchar_of_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'bpchar'::text) as v2 from tt_bpchar_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'bpchar'::text) as v2 from tt_bpchar_of_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 1) as v2 from tt_bpchar_of_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 5) as v2 from tt_bpchar_of_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 10) as v2 from tt_bpchar_of_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'bpchar'::text, 20) as v2 from tt_bpchar_of_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bpchar'::text) as v2 from tt_bpchar_of_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 1) as v2 from tt_bpchar_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 5) as v2 from tt_bpchar_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 10) as v2 from tt_bpchar_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql_text(v::text, NULL::bpchar, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'bpchar'::text, 20) as v2 from tt_bpchar_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'bpchar'::text) as v2 from tt_bpchar_of_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql_text(v::text, NULL::money, 'bpchar'::text) as v2 from tt_bpchar_of_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql_text(v::text, NULL::uuid, 'bpchar'::text) as v2 from tt_bpchar_of_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bpchar) as v1, try_convert_by_sql(v, NULL::bpchar) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'bpchar'::text) as v2 from tt_bpchar_of_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_varchar_of_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_varchar_of_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_varchar_of_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_varchar_of_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_varchar_of_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_varchar_of_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_varchar_of_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varchar_of_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_varchar_of_bit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_varchar_of_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_varchar_of_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_varchar_of_bit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varchar_of_varbit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_varchar_of_varbit_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_varchar_of_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_varchar_of_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_varchar_of_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_varchar_of_date) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_varchar_of_time) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_varchar_of_timetz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_varchar_of_timestamp) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_varchar_of_timestamptz) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_varchar_of_interval) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_varchar_of_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_varchar_of_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::macaddr) as v1, try_convert_by_sql(v, NULL::macaddr) as v2 from tt_varchar_of_macaddr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_json) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::json) as v1, try_convert_by_sql(v, NULL::json) as v2 from tt_varchar_of_json) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::jsonb) as v1, try_convert_by_sql(v, NULL::jsonb) as v2 from tt_varchar_of_jsonb) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_of_xml) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_of_char) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_varchar_of_char_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_varchar_of_char_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_varchar_of_char_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_varchar_of_char_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_of_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_varchar_of_varchar_1) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_varchar_of_varchar_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_varchar_of_varchar_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_varchar_of_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_of_text) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_varchar_of_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::uuid) as v1, try_convert_by_sql(v, NULL::uuid) as v2 from tt_varchar_of_uuid) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_of_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +-- FUNCTION TESTS +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) --- FUNCTION TESTS -select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_int2) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql_text(v::text, NULL::text, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_float4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 1) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 5) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_float8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 10) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(1)'::text, 20) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int2) as v1, try_convert_by_sql(v, NULL::int2) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 1) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float4) as v1, try_convert_by_sql(v, NULL::float4) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 5) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::float8) as v1, try_convert_by_sql(v, NULL::float8) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 10) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::numeric) as v1, try_convert_by_sql(v, NULL::numeric) as v2 from tt_money) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(5)'::text, 20) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_numeric) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 1) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::money) as v1, try_convert_by_sql(v, NULL::money) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 5) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bool) as v1, try_convert_by_sql(v, NULL::bool) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 10) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(10)'::text, 20) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 1) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 5) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 10) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'char(20)'::text, 20) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::text) as v1, try_convert_by_sql(v, NULL::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 1) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 5) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 10) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(1)'::text, 20) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 1) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 5) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 10) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(5)'::text, 20) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 1) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 5) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 10) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(10)'::text, 20) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql_text(v::text, NULL::char, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_text) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 1) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 5) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 10) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::char, 'varchar(20)'::text, 20) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(1)'::text) as v2 from tt_char_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(5)'::text) as v2 from tt_char_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(10)'::text) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'char(20)'::text) as v2 from tt_char_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 1) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 5) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 10) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::char(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::char, 20) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_char_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char) as v1, try_convert_by_sql(v, NULL::char) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(1)) as v1, try_convert_by_sql(v, NULL::char(1)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(5)) as v1, try_convert_by_sql(v, NULL::char(5)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::char(10)) as v1, try_convert_by_sql(v, NULL::char(10)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_date) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::interval) as v1, try_convert_by_sql(v, NULL::interval) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_time) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::timestamptz) as v1, try_convert_by_sql(v, NULL::timestamptz) as v2 from tt_timestamp) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::date) as v1, try_convert_by_sql(v, NULL::date) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::timestamp) as v1, try_convert_by_sql(v, NULL::timestamp) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, NULL::timetz) as v2 from tt_timestamptz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 1) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_interval) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 5) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::time) as v1, try_convert_by_sql(v, NULL::time) as v2 from tt_timetz) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 10) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::inet) as v1, try_convert_by_sql(v, NULL::inet) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(1)'::text, 20) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::cidr) as v1, try_convert_by_sql(v, NULL::cidr) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 1) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 5) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 10) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(5)'::text, 20) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 1) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 5) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 10) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(10)'::text, 20) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 1) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 5) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 10) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'bit(20)'::text, 20) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 1) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 5) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 10) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(1)'::text, 20) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 1) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 5) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 10) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(5)'::text, 20) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 1) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 5) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 10) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(10)'::text, 20) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 1) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 5) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 10) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'varbit(20)'::text, 20) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1104,17 +4925,22 @@ select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NUL ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_int8) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1124,57 +4950,72 @@ select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NUL ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_int4) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql(v, NULL::int8) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int8) as v1, try_convert_by_sql_text(v::text, NULL::int8, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql(v, NULL::int4) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::int4) as v1, try_convert_by_sql_text(v::text, NULL::int4, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1209,17 +5050,22 @@ select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_cidr) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1229,17 +5075,22 @@ select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_inet) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1249,17 +5100,22 @@ select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_bool) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1269,117 +5125,172 @@ select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1::text is distinct from v2::text; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql_text(v::text, NULL::xml, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1::text is distinct from v2::text; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_xml) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::xml) as v1, try_convert_by_sql(v, NULL::xml) as v2 from tt_varchar_10) as t(v1, v2) where v1::text is distinct from v2::text; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 1) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 5) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 10) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(1)'::text, 20) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 1) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 5) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 10) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(5)'::text, 20) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 1) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, NULL::varchar) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 5) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 10) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(10)'::text, 20) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql_text(v::text, NULL::varchar, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 1) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 5) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 10) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varchar, 'varchar(20)'::text, 20) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1409,162 +5320,252 @@ select * from (select try_convert(v, NULL::timetz) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 1) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 5) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 10) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::bit, 20) as v2 from tt_bit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(1)'::text) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 1) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 5) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 10) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(1)'::text, 20) as v2 from tt_bit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(5)'::text) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 1) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 5) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 10) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(5)'::text, 20) as v2 from tt_bit_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(10)'::text) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql(v, NULL::bit) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 1) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql(v, NULL::bit(1)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 5) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql(v, NULL::bit(5)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 10) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql(v, NULL::bit(10)) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(10)'::text, 20) as v2 from tt_bit_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit) as v1, try_convert_by_sql_text(v::text, NULL::bit, 'bit(20)'::text) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 1) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 5) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 10) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::bit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::bit, 'bit(20)'::text, 20) as v2 from tt_bit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 1) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 5) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 10) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varbit, 20) as v2 from tt_varbit) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(1)'::text) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 1) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql(v, NULL::varbit) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 5) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql(v, NULL::varbit(1)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 10) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql(v, NULL::varbit(5)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(1)'::text, 20) as v2 from tt_varbit_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql(v, NULL::varbit(10)) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(5)'::text) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 1) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 5) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 10) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(5)'::text, 20) as v2 from tt_varbit_5) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(10)'::text) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 1) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 5) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 10) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(10)'::text, 20) as v2 from tt_varbit_10) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit) as v1, try_convert_by_sql_text(v::text, NULL::varbit, 'varbit(20)'::text) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(1)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 1) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(5)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 5) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(10)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 10) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varbit(20)) as v1, try_convert_by_sql_text_with_len_out(v::text, NULL::varbit, 'varbit(20)'::text, 20) as v2 from tt_varbit_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1594,17 +5595,22 @@ select * from (select try_convert(v, NULL::varchar) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql(v, NULL::varchar(1)) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(1)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 1) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql(v, NULL::varchar(5)) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(5)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 5) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql(v, NULL::varchar(10)) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::varchar(10)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 10) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::varchar(20)) as v1, try_convert_by_sql_with_len_out(v, NULL::varchar, 20) as v2 from tt_citext) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) @@ -1614,22 +5620,27 @@ select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, ----+---- (0 rows) -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar) as t(v1, v2) where v1 is distinct from v2; + v1 | v2 +----+---- +(0 rows) + +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(1)'::text) as v2 from tt_varchar_1) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(5)'::text) as v2 from tt_varchar_5) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(10)'::text) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) -select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql(v, NULL::citext) as v2 from tt_varchar_10) as t(v1, v2) where v1 is distinct from v2; +select * from (select try_convert(v, NULL::citext) as v1, try_convert_by_sql_text(v::text, NULL::citext, 'varchar(20)'::text) as v2 from tt_varchar_20) as t(v1, v2) where v1 is distinct from v2; v1 | v2 ----+---- (0 rows) diff --git a/contrib/try_convert/try_convert--1.0.sql b/contrib/try_convert/try_convert--1.0.sql index 8ee32257f1..3e01aadcb2 100644 --- a/contrib/try_convert/try_convert--1.0.sql +++ b/contrib/try_convert/try_convert--1.0.sql @@ -61,6 +61,7 @@ select add_type_for_try_convert('interval'::regtype); -- CHARACTER select add_type_for_try_convert('char'::regtype); +select add_type_for_try_convert('bpchar'::regtype); select add_type_for_try_convert('varchar'::regtype); select add_type_for_try_convert('text'::regtype);