citus/src/test/regress/expected/multi_create_table_new_feat...

29 lines
1.2 KiB
Plaintext

--
-- MULTI_CREATE_TABLE_NEW_FEATURES
--
-- print major version to make version-specific tests clear
SHOW server_version \gset
SELECT substring(:'server_version', '\d+') AS major_version;
major_version
---------------
10
(1 row)
-- Verify that the GENERATED ... AS IDENTITY feature in PostgreSQL 10
-- is forbidden in distributed tables.
CREATE TABLE table_identity_col (
id integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
payload text );
SELECT master_create_distributed_table('table_identity_col', 'id', 'append');
ERROR: cannot distribute relation: table_identity_col
DETAIL: Distributed relations must not use GENERATED ... AS IDENTITY.
SELECT create_distributed_table('table_identity_col', 'id');
ERROR: cannot distribute relation: table_identity_col
DETAIL: Distributed relations must not use GENERATED ... AS IDENTITY.
SELECT create_distributed_table('table_identity_col', 'text');
ERROR: cannot distribute relation: table_identity_col
DETAIL: Distributed relations must not use GENERATED ... AS IDENTITY.
SELECT create_reference_table('table_identity_col');
ERROR: cannot distribute relation: table_identity_col
DETAIL: Distributed relations must not use GENERATED ... AS IDENTITY.