mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-24 15:05:03 +08:00
This commit pushes down quals or order_by columns to make use of the SegmentMetaMinMax objects. Namely =,<,<=,>,>= quals can now be pushed down. We also remove filters from decompress node for quals that have been pushed down and don't need a recheck. This commit also changes tests to add more segment by and order-by columns. Finally, we rename segment meta accessor functions to be smaller
19 lines
817 B
SQL
19 lines
817 B
SQL
-- This file and its contents are licensed under the Apache License 2.0.
|
|
-- Please see the included NOTICE for copyright information and
|
|
-- LICENSE-APACHE for a copy of the license.
|
|
|
|
CREATE FUNCTION _timescaledb_internal.segment_meta_get_min(_timescaledb_internal.segment_meta_min_max, ANYELEMENT)
|
|
RETURNS ANYELEMENT
|
|
AS '@MODULE_PATHNAME@', 'ts_segment_meta_get_min'
|
|
LANGUAGE C IMMUTABLE;
|
|
|
|
CREATE FUNCTION _timescaledb_internal.segment_meta_get_max(_timescaledb_internal.segment_meta_min_max, ANYELEMENT)
|
|
RETURNS ANYELEMENT
|
|
AS '@MODULE_PATHNAME@', 'ts_segment_meta_get_max'
|
|
LANGUAGE C IMMUTABLE;
|
|
|
|
CREATE FUNCTION _timescaledb_internal.segment_meta_has_null(_timescaledb_internal.segment_meta_min_max)
|
|
RETURNS boolean
|
|
AS '@MODULE_PATHNAME@', 'ts_segment_meta_has_null'
|
|
LANGUAGE C IMMUTABLE;
|