mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 22:11:29 +08:00
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.
13 lines
377 B
SQL
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
|