mirror of https://github.com/citusdata/citus.git
fix
parent
b3082fa468
commit
387011c9fe
|
@ -37,19 +37,19 @@ SELECT replicate_table_shards('lineitem_hash_part', shard_replication_factor:=2,
|
||||||
|
|
||||||
-- Tests on distributed table with replication factor > 1
|
-- Tests on distributed table with replication factor > 1
|
||||||
VACUUM (FULL) lineitem_hash_part;
|
VACUUM (FULL) lineitem_hash_part;
|
||||||
SELECT citus_table_size('lineitem_hash_part') <= citus_relation_size('lineitem_hash_part');
|
SELECT citus_relation_size('lineitem_hash_part') <= citus_table_size('lineitem_hash_part');
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_relation_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
SELECT citus_table_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part') > 0;
|
SELECT citus_relation_size('lineitem_hash_part') > 0;
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
|
@ -57,37 +57,37 @@ SELECT citus_table_size('lineitem_hash_part') > 0;
|
||||||
|
|
||||||
CREATE INDEX lineitem_hash_part_idx ON lineitem_hash_part(l_orderkey);
|
CREATE INDEX lineitem_hash_part_idx ON lineitem_hash_part(l_orderkey);
|
||||||
VACUUM (FULL) lineitem_hash_part;
|
VACUUM (FULL) lineitem_hash_part;
|
||||||
SELECT citus_table_size('lineitem_hash_part') <= citus_relation_size('lineitem_hash_part');
|
SELECT citus_relation_size('lineitem_hash_part') <= citus_table_size('lineitem_hash_part');
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_relation_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
SELECT citus_table_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part') > 0;
|
SELECT citus_relation_size('lineitem_hash_part') > 0;
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part_idx') <= citus_relation_size('lineitem_hash_part_idx');
|
SELECT citus_relation_size('lineitem_hash_part_idx') <= citus_table_size('lineitem_hash_part_idx');
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_relation_size('lineitem_hash_part_idx') <= citus_total_relation_size('lineitem_hash_part_idx');
|
SELECT citus_table_size('lineitem_hash_part_idx') <= citus_total_relation_size('lineitem_hash_part_idx');
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part_idx') > 0;
|
SELECT citus_relation_size('lineitem_hash_part_idx') > 0;
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
t
|
||||||
|
|
|
@ -31,20 +31,20 @@ SELECT replicate_table_shards('lineitem_hash_part', shard_replication_factor:=2,
|
||||||
-- Tests on distributed table with replication factor > 1
|
-- Tests on distributed table with replication factor > 1
|
||||||
VACUUM (FULL) lineitem_hash_part;
|
VACUUM (FULL) lineitem_hash_part;
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part') <= citus_relation_size('lineitem_hash_part');
|
SELECT citus_relation_size('lineitem_hash_part') <= citus_table_size('lineitem_hash_part');
|
||||||
SELECT citus_relation_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
SELECT citus_table_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
||||||
SELECT citus_table_size('lineitem_hash_part') > 0;
|
SELECT citus_relation_size('lineitem_hash_part') > 0;
|
||||||
|
|
||||||
CREATE INDEX lineitem_hash_part_idx ON lineitem_hash_part(l_orderkey);
|
CREATE INDEX lineitem_hash_part_idx ON lineitem_hash_part(l_orderkey);
|
||||||
VACUUM (FULL) lineitem_hash_part;
|
VACUUM (FULL) lineitem_hash_part;
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part') <= citus_relation_size('lineitem_hash_part');
|
SELECT citus_relation_size('lineitem_hash_part') <= citus_table_size('lineitem_hash_part');
|
||||||
SELECT citus_relation_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
SELECT citus_table_size('lineitem_hash_part') <= citus_total_relation_size('lineitem_hash_part');
|
||||||
SELECT citus_table_size('lineitem_hash_part') > 0;
|
SELECT citus_relation_size('lineitem_hash_part') > 0;
|
||||||
|
|
||||||
SELECT citus_table_size('lineitem_hash_part_idx') <= citus_relation_size('lineitem_hash_part_idx');
|
SELECT citus_relation_size('lineitem_hash_part_idx') <= citus_table_size('lineitem_hash_part_idx');
|
||||||
SELECT citus_relation_size('lineitem_hash_part_idx') <= citus_total_relation_size('lineitem_hash_part_idx');
|
SELECT citus_table_size('lineitem_hash_part_idx') <= citus_total_relation_size('lineitem_hash_part_idx');
|
||||||
SELECT citus_table_size('lineitem_hash_part_idx') > 0;
|
SELECT citus_relation_size('lineitem_hash_part_idx') > 0;
|
||||||
|
|
||||||
SELECT citus_total_relation_size('lineitem_hash_part') >=
|
SELECT citus_total_relation_size('lineitem_hash_part') >=
|
||||||
citus_table_size('lineitem_hash_part') + citus_table_size('lineitem_hash_part_idx');
|
citus_table_size('lineitem_hash_part') + citus_table_size('lineitem_hash_part_idx');
|
||||||
|
|
Loading…
Reference in New Issue