timescaledb/tsl/test/sql/include/compression_test_segment_meta.sql
Matvey Arye 0f3e74215a Split segment meta min_max into two columns
This simplifies the code and the access to the min/max
metadata. Before we used a custom type, but now the min/max
are just the same type as the underlying column and stored as two
columns.

This also removes the custom type that was used before.
2019-10-29 19:02:58 -04:00

13 lines
377 B
SQL

-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\set ECHO errors
SELECT
_timescaledb_internal.segment_meta_min_max_agg_max(i) = max(i),
_timescaledb_internal.segment_meta_min_max_agg_min(i) = min(i)
FROM :"TABLE";
\set ECHO all