mirror of https://github.com/citusdata/citus.git
18 lines
521 B
SQL
18 lines
521 B
SQL
--
|
|
-- 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 create_distributed_table('table_identity_col', 'id', 'append');
|
|
|
|
SELECT create_distributed_table('table_identity_col', 'id');
|
|
SELECT create_distributed_table('table_identity_col', 'payload');
|
|
|
|
SELECT create_reference_table('table_identity_col');
|