1
0
mirror of https://github.com/timescale/timescaledb.git synced 2025-05-23 22:41:34 +08:00

7 Commits

Author SHA1 Message Date
Jan Nidzwetzki
2a808cabad Fix use of freed path in decompression sort logic
In the function add_chunk_sorted_paths, we create sorted versions of the
decompress paths. We construct a sort node and place it on top of the
decompressed chunk to do this. However, the decompress chunk path will
be also added to the relation via add_path. This function can recycle
the provided path if better paths are already known. Therefore, we need
our own private copy for the sorted paths.
2023-12-23 22:39:07 +01:00
Sven Klemm
393cc68057 Simplify compress_chunk calls in tests
Dont construct chunk names from internal catalog tables in
tests but instead use show_chunks and the informational views.
2023-11-04 20:08:28 +01:00
Fabrízio de Royes Mello
a4356f342f Remove trailing whitespaces from test code 2022-11-18 16:31:47 -03:00
Sven Klemm
4f72ab0377 Fix assertion failure in decompress_chunk_plan_create
decompress_chunk_plan_create used get_actual_clauses to extract
RestrictInfo clauses and adds them as quals. This function is only
supposed to be used when none of the RestrictInfos are pseudoconstant
leading to an assertion failure when the query has pseudoconstant
quals.

Fixes 
2021-05-19 19:02:28 +02:00
gayyappan
5e73ff52b7 Apply volatile function quals at decompresschunk
Volatile functions that are in chunk's baserestrictinfo
list were not correctly handled when we inserted a
DecompressChunk node. This PR adds these quals as a filter
to the DecompressChunk node.

Fixes 
2021-01-27 10:42:14 -05:00
Sven Klemm
a19be04d7b Handle Sort nodes in ConstraintAwareAppend
When a MergeAppendPath has children that do not produce sorted
output a Sort node will be injected during plan creation, those
plans would trigger an error about invalid child nodes in
ConstraintAwareAppend. This PR makes ConstraintAwareAppend handle
those plans correctly.
2020-03-10 14:19:57 +01:00
gayyappan
8864239187 Fix segment_by var for decompress chunk node
Fix order by queries on compressed hypertables that
have char segment by column.
The segment by var column for decompressed chunks should be
created after setting the typmod and collation ids. Otherwise, we
get failures with char datatypes while decompressing.

Fixes 
2020-02-14 23:30:12 -05:00