--
-- MULTI_CREATE_TABLE_NEW_FEATURES
--
-- 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.
