Accept int2vector not being hash distributable
authorTomas Vondra <tomas@2ndquadrant.com>
Fri, 14 Jul 2017 19:57:48 +0000 (21:57 +0200)
committerTomas Vondra <tomas@2ndquadrant.com>
Fri, 14 Jul 2017 19:57:48 +0000 (21:57 +0200)
Upstream commit 5c80642aa8de8393b08cd3cbf612b325cedd98dc removed support
for hashing int2vector data type, as it was dead code (upstream). That
means we can no longer distribute table by hash on this datatype.

We could reintroduce the hash function in Postgres-XL, but int2vector
seems rarely used as distribution key, so let's just fix the tests. If
needed, we can add the functions in the future.

src/test/regress/expected/xl_distribution_column_types.out
src/test/regress/sql/xl_distribution_column_types.sql

index e372c4a27bdf32ed66e180a51efbae198444b53a..8d9ac799d8568abeeeb170f110d24b7dd5feb3c4 100644 (file)
@@ -34,14 +34,6 @@ CREATE TABLE xl_dc4 (
     name text,
     price numeric
 ) DISTRIBUTE BY HASH (is_available);
---INT2VECTOR, 
-CREATE TABLE xl_dc5 (
-    product_no integer,
-    product_id integer,
-    sub_product_ids INT2VECTOR PRIMARY KEY, 
-    name text,
-    price numeric
-) DISTRIBUTE BY HASH (sub_product_ids);
 --OIDVECTOR, 
 CREATE TABLE xl_dc6 (
     product_no integer,
@@ -199,7 +191,6 @@ DROP TABLE xl_dc1;
 DROP TABLE xl_dc2;
 DROP TABLE xl_dc3;
 DROP TABLE xl_dc4;
-DROP TABLE xl_dc5;
 DROP TABLE xl_dc6;
 DROP TABLE xl_dc7;
 DROP TABLE xl_dc8;
index 486b730cf16233271abfd4b659fc166d64cc6e0f..d8580d98a7f147b8e190125cd0b46965f38037a7 100644 (file)
@@ -44,15 +44,6 @@ CREATE TABLE xl_dc4 (
     price numeric
 ) DISTRIBUTE BY HASH (is_available);
 
---INT2VECTOR, 
-CREATE TABLE xl_dc5 (
-    product_no integer,
-    product_id integer,
-    sub_product_ids INT2VECTOR PRIMARY KEY, 
-    name text,
-    price numeric
-) DISTRIBUTE BY HASH (sub_product_ids);
-
 --OIDVECTOR, 
 CREATE TABLE xl_dc6 (
     product_no integer,
@@ -231,7 +222,6 @@ DROP TABLE xl_dc1;
 DROP TABLE xl_dc2;
 DROP TABLE xl_dc3;
 DROP TABLE xl_dc4;
-DROP TABLE xl_dc5;
 DROP TABLE xl_dc6;
 DROP TABLE xl_dc7;
 DROP TABLE xl_dc8;