mirror of https://github.com/citusdata/citus.git
Add notice log message for skipping child tables for optimization
parent
2fed133cf8
commit
bc818e76e2
|
@ -1020,6 +1020,9 @@ ColocatedNonPartitionShardIntervalList(ShardInterval *shardInterval)
|
|||
return colocatedShardList;
|
||||
}
|
||||
|
||||
ereport(DEBUG1, (errmsg("skipping child tables for relation named: %s",
|
||||
get_rel_name(distributedTableId))));
|
||||
|
||||
int shardIntervalIndex = ShardIndex(shardInterval);
|
||||
List *colocatedTableList = ColocatedTableList(distributedTableId);
|
||||
|
||||
|
|
|
@ -2156,12 +2156,15 @@ SELECT create_distributed_table('"events.Energy Added"', 'user_id', colocate_wit
|
|||
|
||||
CREATE TABLE "Energy Added_17634" PARTITION OF "events.Energy Added" FOR VALUES FROM ('2018-04-13 00:00:00+00') TO ('2018-04-14 00:00:00+00');
|
||||
-- test shard cost by disk size function
|
||||
SET client_min_messages TO DEBUG1;
|
||||
SELECT citus_shard_cost_by_disk_size(shardid) FROM pg_dist_shard WHERE logicalrelid = '"events.Energy Added"'::regclass ORDER BY shardid LIMIT 1;
|
||||
DEBUG: skipping child tables for relation named: events.Energy Added
|
||||
citus_shard_cost_by_disk_size
|
||||
---------------------------------------------------------------------
|
||||
16384
|
||||
(1 row)
|
||||
|
||||
RESET client_min_messages;
|
||||
CREATE INDEX idx_btree_hobbies ON "events.Energy Added" USING BTREE ((data->>'location'));
|
||||
\c - - - :worker_1_port
|
||||
-- should not be zero because of TOAST, vm, fms
|
||||
|
|
|
@ -1285,7 +1285,9 @@ SELECT create_distributed_table('"events.Energy Added"', 'user_id', colocate_wit
|
|||
CREATE TABLE "Energy Added_17634" PARTITION OF "events.Energy Added" FOR VALUES FROM ('2018-04-13 00:00:00+00') TO ('2018-04-14 00:00:00+00');
|
||||
|
||||
-- test shard cost by disk size function
|
||||
SET client_min_messages TO DEBUG1;
|
||||
SELECT citus_shard_cost_by_disk_size(shardid) FROM pg_dist_shard WHERE logicalrelid = '"events.Energy Added"'::regclass ORDER BY shardid LIMIT 1;
|
||||
RESET client_min_messages;
|
||||
CREATE INDEX idx_btree_hobbies ON "events.Energy Added" USING BTREE ((data->>'location'));
|
||||
\c - - - :worker_1_port
|
||||
-- should not be zero because of TOAST, vm, fms
|
||||
|
|
Loading…
Reference in New Issue