diff options
author | Pavan Deolasee | 2017-06-28 09:18:59 +0000 |
---|---|---|
committer | Pavan Deolasee | 2017-06-28 09:18:59 +0000 |
commit | 27c21f3590bec37730ab2468c44c7e85e0b2f985 (patch) | |
tree | 780bf8f242c71fc686adcd2905ef2b2a8e1ee5a8 | |
parent | 83ce29b63697945addbfda89ce970629d7bde25d (diff) |
Accept changes related to distribution info shown by \d+ command.
This partially fixes the test case 'create_table'
-rw-r--r-- | src/test/regress/expected/create_table.out | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/regress/expected/create_table.out b/src/test/regress/expected/create_table.out index 3e677b0d55..5dc03a07d9 100644 --- a/src/test/regress/expected/create_table.out +++ b/src/test/regress/expected/create_table.out @@ -557,6 +557,8 @@ CREATE TABLE part_forced_oids PARTITION OF oids_parted FOR VALUES FROM (1) TO (1 Partition of: oids_parted FOR VALUES FROM (1) TO (10) Partition constraint: ((a IS NOT NULL) AND (a >= 1) AND (a < 10)) Has OIDs: yes +Distribute By: HASH(a) +Location Nodes: ALL DATANODES DROP TABLE oids_parted, part_forced_oids; -- check for partition bound overlap and other invalid specifications @@ -664,6 +666,8 @@ Partition constraint: ((a IS NOT NULL) AND (a = ANY (ARRAY['b'::text]))) Check constraints: "check_a" CHECK (length(a) > 0) "part_b_b_check" CHECK (b >= 0) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES -- Both partition bound and partition key in describe output \d+ part_c @@ -678,6 +682,8 @@ Partition key: RANGE (b) Check constraints: "check_a" CHECK (length(a) > 0) Partitions: part_c_1_10 FOR VALUES FROM (1) TO (10) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES -- a level-2 partition's constraint will include the parent's expressions \d+ part_c_1_10 @@ -690,6 +696,8 @@ Partition of: part_c FOR VALUES FROM (1) TO (10) Partition constraint: ((a IS NOT NULL) AND (a = ANY (ARRAY['c'::text])) AND (b IS NOT NULL) AND (b >= 1) AND (b < 10)) Check constraints: "check_a" CHECK (length(a) > 0) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES -- Show partition count in the parent's describe output -- Tempted to include \d+ output listing partitions with bound info but @@ -718,6 +726,8 @@ CREATE TABLE unbounded_range_part PARTITION OF range_parted4 FOR VALUES FROM (UN c | integer | | | | plain | | Partition of: range_parted4 FOR VALUES FROM (UNBOUNDED, UNBOUNDED, UNBOUNDED) TO (UNBOUNDED, UNBOUNDED, UNBOUNDED) Partition constraint: ((abs(a) IS NOT NULL) AND (abs(b) IS NOT NULL) AND (c IS NOT NULL)) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES DROP TABLE unbounded_range_part; CREATE TABLE range_parted4_1 PARTITION OF range_parted4 FOR VALUES FROM (UNBOUNDED, UNBOUNDED, UNBOUNDED) TO (1, UNBOUNDED, UNBOUNDED); @@ -730,6 +740,8 @@ CREATE TABLE range_parted4_1 PARTITION OF range_parted4 FOR VALUES FROM (UNBOUND c | integer | | | | plain | | Partition of: range_parted4 FOR VALUES FROM (UNBOUNDED, UNBOUNDED, UNBOUNDED) TO (1, UNBOUNDED, UNBOUNDED) Partition constraint: ((abs(a) IS NOT NULL) AND (abs(b) IS NOT NULL) AND (c IS NOT NULL) AND (abs(a) <= 1)) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES CREATE TABLE range_parted4_2 PARTITION OF range_parted4 FOR VALUES FROM (3, 4, 5) TO (6, 7, UNBOUNDED); \d+ range_parted4_2 @@ -741,6 +753,8 @@ CREATE TABLE range_parted4_2 PARTITION OF range_parted4 FOR VALUES FROM (3, 4, 5 c | integer | | | | plain | | Partition of: range_parted4 FOR VALUES FROM (3, 4, 5) TO (6, 7, UNBOUNDED) Partition constraint: ((abs(a) IS NOT NULL) AND (abs(b) IS NOT NULL) AND (c IS NOT NULL) AND ((abs(a) > 3) OR ((abs(a) = 3) AND (abs(b) > 4)) OR ((abs(a) = 3) AND (abs(b) = 4) AND (c >= 5))) AND ((abs(a) < 6) OR ((abs(a) = 6) AND (abs(b) <= 7)))) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES CREATE TABLE range_parted4_3 PARTITION OF range_parted4 FOR VALUES FROM (6, 8, UNBOUNDED) TO (9, UNBOUNDED, UNBOUNDED); \d+ range_parted4_3 @@ -752,6 +766,8 @@ CREATE TABLE range_parted4_3 PARTITION OF range_parted4 FOR VALUES FROM (6, 8, U c | integer | | | | plain | | Partition of: range_parted4 FOR VALUES FROM (6, 8, UNBOUNDED) TO (9, UNBOUNDED, UNBOUNDED) Partition constraint: ((abs(a) IS NOT NULL) AND (abs(b) IS NOT NULL) AND (c IS NOT NULL) AND ((abs(a) > 6) OR ((abs(a) = 6) AND (abs(b) >= 8))) AND (abs(a) <= 9)) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES DROP TABLE range_parted4; -- cleanup @@ -773,5 +789,7 @@ SELECT obj_description('parted_col_comment'::regclass); a | integer | | | | plain | | Partition key b | text | | | | extended | | Partition key: LIST (a) +Distribute By: HASH(a) +Location Nodes: ALL DATANODES DROP TABLE parted_col_comment; |