From: Tomas Vondra Date: Sat, 4 Mar 2017 03:48:01 +0000 (+0100) Subject: fix regression failures in insert_conflict by replicating the table X-Git-Tag: XL_10_R1BETA1~379 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=73123c023aee1c7ba537f88f697a43e6964edb37;p=postgres-xl.git fix regression failures in insert_conflict by replicating the table The table 'insertconflict' has to be replicated, because the tests need a unique index on (coalesce(a,0)). That is not possible on distributed tables, because the index expression has to match the distribution key and we only support columns there. --- diff --git a/src/test/regress/expected/insert_conflict.out b/src/test/regress/expected/insert_conflict.out index e9eec042e5..58f0f6cba1 100644 --- a/src/test/regress/expected/insert_conflict.out +++ b/src/test/regress/expected/insert_conflict.out @@ -486,7 +486,7 @@ drop table syscolconflicttest; -- Previous tests all managed to not test any expressions requiring -- planner preprocessing ... -- -create table insertconflict (a bigint, b bigint); +create table insertconflict (a bigint, b bigint) distribute by replication; create unique index insertconflicti1 on insertconflict(coalesce(a, 0)); create unique index insertconflicti2 on insertconflict(b) where coalesce(a, 1) > 0; diff --git a/src/test/regress/sql/insert_conflict.sql b/src/test/regress/sql/insert_conflict.sql index 2fabfb86e5..2aba222966 100644 --- a/src/test/regress/sql/insert_conflict.sql +++ b/src/test/regress/sql/insert_conflict.sql @@ -267,7 +267,7 @@ drop table syscolconflicttest; -- Previous tests all managed to not test any expressions requiring -- planner preprocessing ... -- -create table insertconflict (a bigint, b bigint); +create table insertconflict (a bigint, b bigint) distribute by replication; create unique index insertconflicti1 on insertconflict(coalesce(a, 0));