Skip to content

Commit 2251c0e

Browse files
committed
1 parent 5ae1d40 commit 2251c0e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

tsl/test/expected/hypercore_stats.out

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,18 @@ select * from relstats where relid = :'chunk2'::regclass;
341341
_timescaledb_internal._hyper_1_2_chunk | 2016
342342
(1 row)
343343

344+
vacuum analyze :chunk2;
344345
select * from attrstats where relid = :'chunk2'::regclass;
345-
relid | attname | n_distinct | most_common_vals
346-
-------+---------+------------+------------------
347-
(0 rows)
346+
relid | attname | n_distinct | most_common_vals
347+
----------------------------------------+-------------+------------+--------------------------------------------------------------------------------
348+
_timescaledb_internal._hyper_1_2_chunk | created_at | -1 |
349+
_timescaledb_internal._hyper_1_2_chunk | device_id | 29 | 2,27,4,21,24,28,5,30,29,7,10,11,23,26,9,6,3,8,13,19,20,15,17,18,22,25,12,14,16
350+
_timescaledb_internal._hyper_1_2_chunk | humidity | -1 |
351+
_timescaledb_internal._hyper_1_2_chunk | location_id | 10 | 9,2,6,10,7,4,1,3,5,8
352+
_timescaledb_internal._hyper_1_2_chunk | metric_id | -1 |
353+
_timescaledb_internal._hyper_1_2_chunk | owner_id | 5 | 5,4,1,2,3
354+
_timescaledb_internal._hyper_1_2_chunk | temp | -1 |
355+
(7 rows)
348356

349357
select count(*) from :chunk2;
350358
count

tsl/test/sql/hypercore_stats.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ select * from attrstats_same;
132132
alter table :chunk2 set access method hypercore;
133133
update :hypertable set device_id = 2 where device_id = 1;
134134
select * from relstats where relid = :'chunk2'::regclass;
135+
vacuum analyze :chunk2;
135136
select * from attrstats where relid = :'chunk2'::regclass;
136137
select count(*) from :chunk2;
137138

0 commit comments

Comments
 (0)