Fix expected output for pg13

issue/6694
Gokhan Gulbiz 2023-03-29 10:21:34 +03:00
parent 7648e31757
commit c89912d2a2
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 9 additions and 5 deletions

View File

@ -21,9 +21,11 @@ CREATE TABLE smallint_identity_column (
a smallint GENERATED BY DEFAULT AS IDENTITY a smallint GENERATED BY DEFAULT AS IDENTITY
); );
SELECT create_distributed_table('smallint_identity_column', 'a'); SELECT create_distributed_table('smallint_identity_column', 'a');
ERROR: cannot complete operation on a table with smallint/int identity column ERROR: cannot complete operation on generated_identities.smallint_identity_column with smallint/int identity column
HINT: Use bigint identity column instead.
SELECT create_distributed_table_concurrently('smallint_identity_column', 'a'); SELECT create_distributed_table_concurrently('smallint_identity_column', 'a');
ERROR: cannot complete operation on a table with smallint/int identity column ERROR: cannot complete operation on generated_identities.smallint_identity_column with smallint/int identity column
HINT: Use bigint identity column instead.
SELECT create_reference_table('smallint_identity_column'); SELECT create_reference_table('smallint_identity_column');
ERROR: cannot complete operation on a table with identity column ERROR: cannot complete operation on a table with identity column
SELECT citus_add_local_table_to_metadata('smallint_identity_column'); SELECT citus_add_local_table_to_metadata('smallint_identity_column');
@ -38,9 +40,11 @@ CREATE TABLE int_identity_column (
a int GENERATED BY DEFAULT AS IDENTITY a int GENERATED BY DEFAULT AS IDENTITY
); );
SELECT create_distributed_table('int_identity_column', 'a'); SELECT create_distributed_table('int_identity_column', 'a');
ERROR: cannot complete operation on a table with smallint/int identity column ERROR: cannot complete operation on generated_identities.int_identity_column with smallint/int identity column
HINT: Use bigint identity column instead.
SELECT create_distributed_table_concurrently('int_identity_column', 'a'); SELECT create_distributed_table_concurrently('int_identity_column', 'a');
ERROR: cannot complete operation on a table with smallint/int identity column ERROR: cannot complete operation on generated_identities.int_identity_column with smallint/int identity column
HINT: Use bigint identity column instead.
SELECT create_reference_table('int_identity_column'); SELECT create_reference_table('int_identity_column');
ERROR: cannot complete operation on a table with identity column ERROR: cannot complete operation on a table with identity column
SELECT citus_add_local_table_to_metadata('int_identity_column'); SELECT citus_add_local_table_to_metadata('int_identity_column');