4 Commits

Author SHA1 Message Date
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 #3241
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 #2864
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 #1650
2020-02-14 23:30:12 -05:00