Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzm committed Apr 10, 2024
1 parent 4568d62 commit f37fa93
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions src/compat/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ object_ownercheck(Oid classid, Oid objectid, Oid roleid)

#if PG14_LT
#define F_SUM_INT4 2108
#define F_COUNT_ 2803
#endif

/*
Expand Down
12 changes: 6 additions & 6 deletions tsl/test/expected/transparent_decompression-13.out
Original file line number Diff line number Diff line change
Expand Up @@ -2015,9 +2015,9 @@ WHERE device_id = 1;
Finalize Aggregate (actual rows=1 loops=1)
Output: count(*)
-> Append (actual rows=3 loops=1)
-> Partial Aggregate (actual rows=1 loops=1)
Output: PARTIAL count(*)
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_1_chunk (actual rows=360 loops=1)
-> Custom Scan (VectorAgg) (actual rows=1 loops=1)
Output: (PARTIAL count(*))
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_1_chunk (never executed)
Bulk Decompression: false
-> Index Scan using compress_hyper_5_15_chunk_device_id_device_id_peer__ts_meta_idx on _timescaledb_internal.compress_hyper_5_15_chunk (actual rows=1 loops=1)
Output: compress_hyper_5_15_chunk._ts_meta_count, compress_hyper_5_15_chunk._ts_meta_sequence_num, compress_hyper_5_15_chunk.device_id, compress_hyper_5_15_chunk.device_id_peer, compress_hyper_5_15_chunk._ts_meta_min_3, compress_hyper_5_15_chunk._ts_meta_max_3, compress_hyper_5_15_chunk."time", compress_hyper_5_15_chunk._ts_meta_min_1, compress_hyper_5_15_chunk._ts_meta_max_1, compress_hyper_5_15_chunk.v0, compress_hyper_5_15_chunk._ts_meta_min_2, compress_hyper_5_15_chunk._ts_meta_max_2, compress_hyper_5_15_chunk.v1, compress_hyper_5_15_chunk.v2, compress_hyper_5_15_chunk.v3
Expand All @@ -2027,9 +2027,9 @@ WHERE device_id = 1;
-> Seq Scan on _timescaledb_internal._hyper_1_2_chunk (actual rows=504 loops=1)
Filter: (_hyper_1_2_chunk.device_id = 1)
Rows Removed by Filter: 2016
-> Partial Aggregate (actual rows=1 loops=1)
Output: PARTIAL count(*)
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_3_chunk (actual rows=504 loops=1)
-> Custom Scan (VectorAgg) (actual rows=1 loops=1)
Output: (PARTIAL count(*))
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_3_chunk (never executed)
Bulk Decompression: false
-> Index Scan using compress_hyper_5_16_chunk_device_id_device_id_peer__ts_meta_idx on _timescaledb_internal.compress_hyper_5_16_chunk (actual rows=1 loops=1)
Output: compress_hyper_5_16_chunk._ts_meta_count, compress_hyper_5_16_chunk._ts_meta_sequence_num, compress_hyper_5_16_chunk.device_id, compress_hyper_5_16_chunk.device_id_peer, compress_hyper_5_16_chunk._ts_meta_min_3, compress_hyper_5_16_chunk._ts_meta_max_3, compress_hyper_5_16_chunk."time", compress_hyper_5_16_chunk._ts_meta_min_1, compress_hyper_5_16_chunk._ts_meta_max_1, compress_hyper_5_16_chunk.v0, compress_hyper_5_16_chunk._ts_meta_min_2, compress_hyper_5_16_chunk._ts_meta_max_2, compress_hyper_5_16_chunk.v1, compress_hyper_5_16_chunk.v2, compress_hyper_5_16_chunk.v3
Expand Down
12 changes: 6 additions & 6 deletions tsl/test/expected/transparent_decompression-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -2015,9 +2015,9 @@ WHERE device_id = 1;
Finalize Aggregate (actual rows=1 loops=1)
Output: count(*)
-> Append (actual rows=3 loops=1)
-> Partial Aggregate (actual rows=1 loops=1)
Output: PARTIAL count(*)
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_1_chunk (actual rows=360 loops=1)
-> Custom Scan (VectorAgg) (actual rows=1 loops=1)
Output: (PARTIAL count(*))
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_1_chunk (never executed)
Bulk Decompression: false
-> Index Scan using compress_hyper_5_15_chunk_device_id_device_id_peer__ts_meta_idx on _timescaledb_internal.compress_hyper_5_15_chunk (actual rows=1 loops=1)
Output: compress_hyper_5_15_chunk._ts_meta_count, compress_hyper_5_15_chunk._ts_meta_sequence_num, compress_hyper_5_15_chunk.device_id, compress_hyper_5_15_chunk.device_id_peer, compress_hyper_5_15_chunk._ts_meta_min_3, compress_hyper_5_15_chunk._ts_meta_max_3, compress_hyper_5_15_chunk."time", compress_hyper_5_15_chunk._ts_meta_min_1, compress_hyper_5_15_chunk._ts_meta_max_1, compress_hyper_5_15_chunk.v0, compress_hyper_5_15_chunk._ts_meta_min_2, compress_hyper_5_15_chunk._ts_meta_max_2, compress_hyper_5_15_chunk.v1, compress_hyper_5_15_chunk.v2, compress_hyper_5_15_chunk.v3
Expand All @@ -2027,9 +2027,9 @@ WHERE device_id = 1;
-> Seq Scan on _timescaledb_internal._hyper_1_2_chunk (actual rows=504 loops=1)
Filter: (_hyper_1_2_chunk.device_id = 1)
Rows Removed by Filter: 2016
-> Partial Aggregate (actual rows=1 loops=1)
Output: PARTIAL count(*)
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_3_chunk (actual rows=504 loops=1)
-> Custom Scan (VectorAgg) (actual rows=1 loops=1)
Output: (PARTIAL count(*))
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_3_chunk (never executed)
Bulk Decompression: false
-> Index Scan using compress_hyper_5_16_chunk_device_id_device_id_peer__ts_meta_idx on _timescaledb_internal.compress_hyper_5_16_chunk (actual rows=1 loops=1)
Output: compress_hyper_5_16_chunk._ts_meta_count, compress_hyper_5_16_chunk._ts_meta_sequence_num, compress_hyper_5_16_chunk.device_id, compress_hyper_5_16_chunk.device_id_peer, compress_hyper_5_16_chunk._ts_meta_min_3, compress_hyper_5_16_chunk._ts_meta_max_3, compress_hyper_5_16_chunk."time", compress_hyper_5_16_chunk._ts_meta_min_1, compress_hyper_5_16_chunk._ts_meta_max_1, compress_hyper_5_16_chunk.v0, compress_hyper_5_16_chunk._ts_meta_min_2, compress_hyper_5_16_chunk._ts_meta_max_2, compress_hyper_5_16_chunk.v1, compress_hyper_5_16_chunk.v2, compress_hyper_5_16_chunk.v3
Expand Down
12 changes: 6 additions & 6 deletions tsl/test/expected/transparent_decompression-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -2016,9 +2016,9 @@ WHERE device_id = 1;
Finalize Aggregate (actual rows=1 loops=1)
Output: count(*)
-> Append (actual rows=3 loops=1)
-> Partial Aggregate (actual rows=1 loops=1)
Output: PARTIAL count(*)
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_1_chunk (actual rows=360 loops=1)
-> Custom Scan (VectorAgg) (actual rows=1 loops=1)
Output: (PARTIAL count(*))
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_1_chunk (never executed)
Bulk Decompression: false
-> Index Scan using compress_hyper_5_15_chunk_device_id_device_id_peer__ts_meta_idx on _timescaledb_internal.compress_hyper_5_15_chunk (actual rows=1 loops=1)
Output: compress_hyper_5_15_chunk._ts_meta_count, compress_hyper_5_15_chunk._ts_meta_sequence_num, compress_hyper_5_15_chunk.device_id, compress_hyper_5_15_chunk.device_id_peer, compress_hyper_5_15_chunk._ts_meta_min_3, compress_hyper_5_15_chunk._ts_meta_max_3, compress_hyper_5_15_chunk."time", compress_hyper_5_15_chunk._ts_meta_min_1, compress_hyper_5_15_chunk._ts_meta_max_1, compress_hyper_5_15_chunk.v0, compress_hyper_5_15_chunk._ts_meta_min_2, compress_hyper_5_15_chunk._ts_meta_max_2, compress_hyper_5_15_chunk.v1, compress_hyper_5_15_chunk.v2, compress_hyper_5_15_chunk.v3
Expand All @@ -2028,9 +2028,9 @@ WHERE device_id = 1;
-> Seq Scan on _timescaledb_internal._hyper_1_2_chunk (actual rows=504 loops=1)
Filter: (_hyper_1_2_chunk.device_id = 1)
Rows Removed by Filter: 2016
-> Partial Aggregate (actual rows=1 loops=1)
Output: PARTIAL count(*)
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_3_chunk (actual rows=504 loops=1)
-> Custom Scan (VectorAgg) (actual rows=1 loops=1)
Output: (PARTIAL count(*))
-> Custom Scan (DecompressChunk) on _timescaledb_internal._hyper_1_3_chunk (never executed)
Bulk Decompression: false
-> Index Scan using compress_hyper_5_16_chunk_device_id_device_id_peer__ts_meta_idx on _timescaledb_internal.compress_hyper_5_16_chunk (actual rows=1 loops=1)
Output: compress_hyper_5_16_chunk._ts_meta_count, compress_hyper_5_16_chunk._ts_meta_sequence_num, compress_hyper_5_16_chunk.device_id, compress_hyper_5_16_chunk.device_id_peer, compress_hyper_5_16_chunk._ts_meta_min_3, compress_hyper_5_16_chunk._ts_meta_max_3, compress_hyper_5_16_chunk."time", compress_hyper_5_16_chunk._ts_meta_min_1, compress_hyper_5_16_chunk._ts_meta_max_1, compress_hyper_5_16_chunk.v0, compress_hyper_5_16_chunk._ts_meta_min_2, compress_hyper_5_16_chunk._ts_meta_max_2, compress_hyper_5_16_chunk.v1, compress_hyper_5_16_chunk.v2, compress_hyper_5_16_chunk.v3
Expand Down

0 comments on commit f37fa93

Please sign in to comment.