From: Tomas Vondra Date: Sun, 22 Jan 2017 16:22:43 +0000 (+0100) Subject: fix cluster regression test by properly distributing the clstr_tst X-Git-Tag: XL_10_R1BETA1~424 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7f6a8fa3e469cd747ecf815dc272d92ddfc0b99e;p=postgres-xl.git fix cluster regression test by properly distributing the clstr_tst Without the DISTRIBUTE BY clause, the table was distributed by the first column, resulting in a failure due to the foreign key. --- diff --git a/src/test/regress/sql/cluster.sql b/src/test/regress/sql/cluster.sql index 3532c360c1..68435a8427 100644 --- a/src/test/regress/sql/cluster.sql +++ b/src/test/regress/sql/cluster.sql @@ -5,11 +5,12 @@ CREATE TABLE clstr_tst_s (rf_a SERIAL PRIMARY KEY, b INT); -CREATE TABLE clstr_tst (a SERIAL PRIMARY KEY, +CREATE TABLE clstr_tst (a SERIAL, b INT, c TEXT, d TEXT, - CONSTRAINT clstr_tst_con FOREIGN KEY (b) REFERENCES clstr_tst_s); + CONSTRAINT clstr_tst_con FOREIGN KEY (b) REFERENCES clstr_tst_s) + DISTRIBUTE BY (clstr_tst_con); CREATE INDEX clstr_tst_b ON clstr_tst (b); CREATE INDEX clstr_tst_c ON clstr_tst (c);