mirror of https://github.com/citusdata/citus.git
This pull request proposes a change to the logic used for propagating identity columns to worker nodes in citus. Instead of creating a dependent sequence for each identity column and changing its default value to `nextval(seq)/worker_nextval(seq)`, this update will pass the identity columns as-is to the worker nodes. Please note that there are a few limitations to this change. 1. Only bigint identity columns will be allowed in distributed tables to ensure compatibility with the DDL from any node functionality. Our current distributed sequence implementation only allows insert statements from all nodes for bigint sequences. 2. `alter_distributed_table` and `undistribute_table` operations will not be allowed for tables with identity columns. This is because we do not have a proper way of keeping sequence states consistent across the cluster. DESCRIPTION: Prevents using identity columns on data types other than `bigint` on distributed tables DESCRIPTION: Prevents using `alter_distributed_table` and `undistribute_table` UDFs when a table has identity columns DESCRIPTION: Fixes a bug that prevents enforcing identity column restrictions on worker nodes Depends on #6740 Fixes #6694 |
||
---|---|---|
.. | ||
citus_ruleutils.c | ||
deparse.c | ||
deparse_attribute_stmts.c | ||
deparse_collation_stmts.c | ||
deparse_database_stmts.c | ||
deparse_domain_stmts.c | ||
deparse_extension_stmts.c | ||
deparse_foreign_data_wrapper_stmts.c | ||
deparse_foreign_server_stmts.c | ||
deparse_function_stmts.c | ||
deparse_owned_stmts.c | ||
deparse_publication_stmts.c | ||
deparse_role_stmts.c | ||
deparse_schema_stmts.c | ||
deparse_sequence_stmts.c | ||
deparse_statistics_stmts.c | ||
deparse_table_stmts.c | ||
deparse_text_search.c | ||
deparse_type_stmts.c | ||
deparse_view_stmts.c | ||
format_collate.c | ||
objectaddress.c | ||
qualify.c | ||
qualify_aggregate_stmts.c | ||
qualify_collation_stmt.c | ||
qualify_domain.c | ||
qualify_function_stmt.c | ||
qualify_publication_stmt.c | ||
qualify_role_stmt.c | ||
qualify_sequence_stmt.c | ||
qualify_statistics_stmt.c | ||
qualify_table_stmt.c | ||
qualify_text_search_stmts.c | ||
qualify_type_stmt.c | ||
qualify_view_stmt.c | ||
ruleutils_13.c | ||
ruleutils_14.c | ||
ruleutils_15.c |