citus/src/backend
Philip Dubé 78767c9a7d
Fix create_distributed_table on a table using GENERATED ALWAYS AS
If the generated column does not come at the end of the column list,
columnNameList doesn't line up with the column indexes. Seek past

CREATE TABLE test_table (
    test_id int PRIMARY KEY,
    gen_n int GENERATED ALWAYS AS (1) STORED,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
SELECT create_distributed_table('test_table', 'test_id');

Would raise ERROR: cannot cast 23 to 1184

(cherry picked from commit 34f241af16)
2020-05-12 16:02:23 +03:00
..
distributed Fix create_distributed_table on a table using GENERATED ALWAYS AS 2020-05-12 16:02:23 +03:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00