CedarDB Cloud is live! Get started for free →
releases November 26, 2026 • 7 minutes

CedarDB 2026: Release Rewind 

Part 1 covering zstd compression, time-series helpers and range types.

This post kicks off an end-of-year recap of the most impactful features we have shipped in CedarDB across our 2026 releases. Whether you have been following along closely or are just catching up, here are the additions we are most excited about.

zstd Compression

v2026-05-13, v2026-06-23, v2026-07-22

CedarDB has always stored cold data in a compact, analytics-optimized format. Every column gets a lightweight encoding, such as dictionary or frame-of-reference encoding, that shrinks the data and that queries can work on directly. Earlier this year we added ALP for floats and FSST for text to that toolbox. Now, CedarDB adds a second layer on top: cold data on disk is compressed with zstd by default.

While encoding and compression achieve the same thing, a reduction in on-disk size, they are two different tools. Encodings target a specific pattern in the and can allow efficient queries on the encoded data. General-purpose compression like zstd, on the other hand, finds redundancy that encodings leave on the table at the cost of needing to fully decompress the entire data for querying. We covered the trade-offs in detail in Encoding or Compression: Why not both?. The short version of that post is that CedarDB still keeps data encoded for processing and now additionally uses zstd to further reduce the size on disk.

On ClickBench’s hits table, zstd shrinks the encoded data from 21.4 GiB to 7.8 GiB, an additional almost 3x reduction on top of encoding. Best of all, zstd has no impact on the hot path. Once data is loaded into memory, it has the same encoded representation as without zstd, so queries on buffered data run exactly as fast as before. Decompression only happens when cold data is read from disk, and CedarDB applies zstd only where it actually pays off to do so on a fine-grained block level.

zstd is enabled by default for new tables. If you prefer to skip it, you can still turn it off per table:

CREATE TABLE events (id INT, kind TEXT, created_at TIMESTAMP) WITH (compression = none);

-- Switch an existing table back to zstd for newly written blocks
ALTER TABLE events SET (compression = zstd);

Changing the setting takes effect the next time data of that table is written to disk, so existing blocks stay as they are until they are rewritten.

To see how well your own tables compress, query the cedardb_compression_infos system view:

SELECT attributename, encoding, generalcompression,
       encoding_ratio, compression_ratio, total_ratio
FROM cedardb_compression_infos
WHERE tablename = 'hits';

Time-Series Helpers

v2026-05-13, v2026-09-16, v2026-10-08, v2026-10-22

CedarDB now supports three PostgreSQL functions for working with time series and messy imported data:

  • generate_series over numerics and timestamps, not just integers
  • make_interval(), which builds an interval from named parts
  • to_timestamp() / to_date() with format strings, which parse dates in any layout

Together they cover two common tasks: making a regular time grid so gaps in your data show up, and turning dates that aren’t ISO formatted into real date and timestamp values.

generate_series over numerics and timestamps

generate_series(start, stop, step) returns one row per step. Besides integers, it now accepts numeric bounds with a fractional step:

select * from generate_series(0.0, 1.0, 0.25);
-- 0.00, 0.25, 0.50, 0.75, 1.00

select * from generate_series(10.5, 9, -0.5);
-- 10.5, 10.0, 9.5, 9.0

It also accepts timestamps with an interval step:

select * from generate_series(timestamp '2026-11-01 00:00',
                              timestamp '2026-11-01 03:00',
                              interval '1 hour');
-- 2026-11-01 00:00:00, 01:00:00, 02:00:00, 03:00:00

Gotcha: Each step is added to the previous value, so month steps that start on the 31st get clamped and stay clamped: 2026-01-31, 02-28, 03-28, 04-28, …. PostgreSQL does the same. To get month ends, start on the 1st and subtract a day.

make_interval()

make_interval(years, months, weeks, days, hours, mins, secs) builds an interval from its parts. Every argument defaults to 0, so named arguments are the easiest way to call it:

select make_interval(hours => 36, mins => 15);
-- 36:15:00

select make_interval(years => 1, months => 2, weeks => 1); 
-- 1 year 2 mons 7 days

select make_interval(secs => 1.5);                        
-- 00:00:01.5

select timestamp '2026-11-13 09:00' + make_interval(days => 3);
-- 2026-11-16 09:00:00

Its main advantage over interval string literals is with parameters. make_interval(mins => $1) takes a number straight from your application, so you don’t need to build '15 minutes' with string concatenation.

to_timestamp() / to_date() with format strings

to_date(text, format) and to_timestamp(text, format) parse a string using the same template patterns as to_char: DD, MM, YYYY, Mon, HH12, HH24, MI, SS, AM, TZH, and so on.

select to_date('13.11.2026', 'DD.MM.YYYY');                    -- 2026-11-13
select to_date('Nov 13, 2026', 'Mon DD, YYYY');                -- 2026-11-13
select to_date('13-NOV-26', 'DD-MON-YY');                      -- 2026-11-13
select to_timestamp('11/13/2026 4:05 PM', 'MM/DD/YYYY HH12:MI AM');
select to_timestamp('20261113-160512', 'YYYYMMDD-HH24MISS');
select to_timestamp('2026-11-13 16:05 +05', 'YYYY-MM-DD HH24:MI TZH');

to_timestamp returns a timestamptz. If the input has a zone offset (TZH, TZM), it is applied; otherwise the input is read in the session time zone. The parser follows PostgreSQL’s rules, including the less obvious ones. For example, two-digit years resolve to the year closest to 2020, and whitespace between numeric fields is tolerated.

Example: Filling gaps in an hourly series

Sensors don’t report every hour, and a plain GROUP BY date_trunc('hour', …) leaves out the hours with no readings. That’s misleading on a chart. To fix it, generate the full hourly grid and left-join the measurements onto it:

create table measurements (sensor_id int, measured_at timestamp, temperature numeric(5,2));
insert into measurements values
  (1, '2026-11-13 00:12', 4.10), (1, '2026-11-13 00:47', 4.30),
  (1, '2026-11-13 01:05', 3.90),
  (1, '2026-11-13 04:31', 2.80), (1, '2026-11-13 04:55', 2.60);

with hours as (
  select h
  from generate_series(timestamp '2026-11-13 00:00',
                       timestamp '2026-11-13 05:00',
                       make_interval(hours => 1)) as g(h)
)
select h as hour,
       count(m.temperature)         as readings,
       round(avg(m.temperature), 2) as avg_temp
from hours
left join measurements m
  on m.measured_at >= h and m.measured_at < h + make_interval(hours => 1)
group by h
order by h;
hourreadingsavg_temp
2026-11-13 00:00:0024.20
2026-11-13 01:00:0013.90
2026-11-13 02:00:000NULL
2026-11-13 03:00:000NULL
2026-11-13 04:00:0022.70
2026-11-13 05:00:000NULL

The quiet hours now appear with readings = 0. To change the resolution, pass a different step, such as make_interval(mins => 15), or pass it as a query parameter.

Example: Parsing non-ISO dates from imported data

CSV exports from spreadsheets and ERP systems seldom use ISO dates. A common approach is to load the raw columns as text and convert them in SQL:

create table raw_orders (order_id int, order_date text, shipped text);
insert into raw_orders values
  (1001, '03.11.2026', '11/05/2026 2:30 PM'),   -- German order date, US ship time
  (1002, '14.11.2026', '11/17/2026 9:05 AM'),
  (1003, '1.12.2026',  '12/02/2026 11:45 AM');

select order_id,
       to_date(order_date, 'DD.MM.YYYY')                as ordered,
       to_timestamp(shipped, 'MM/DD/YYYY HH12:MI AM')  as shipped_at,
       to_timestamp(shipped, 'MM/DD/YYYY HH12:MI AM')::date
         - to_date(order_date, 'DD.MM.YYYY')            as days_to_ship
from raw_orders
order by order_id;
order_idorderedshipped_atdays_to_ship
10012026-11-032026-11-05 14:30:00+012
10022026-11-142026-11-17 09:05:00+013
10032026-12-012026-12-02 11:45:00+011

The format string removes the ambiguity: 03.11.2026 is March 11th to an American and November 3rd to a German, but DD.MM.YYYY reads it one way only. Unpadded values such as 1.12.2026 also parse. To keep the typed data, finish with create table orders as select …, or use the same expressions in an insert … select.

Range Types

v2026-05-18

Range types are a convenient way to define a range of values between two bounds. Instead of manually creating two columns and having to worry about NULL values, inclusiveness of bounds or getting queries on them right, CedarDB handles the whole interval in a single value with built-in operators.

Take a room booking system. Each booking is a single tstzrange:

CREATE TABLE bookings (
room   INT,
guest  TEXT,
stay   TSTZRANGE
);

INSERT INTO bookings VALUES
(101, 'Ada',   '[2026-12-20 15:00, 2026-12-23 11:00)'),
(101, 'Grace', '[2026-12-27 15:00, 2027-01-02 11:00)');

Two operators answer the common questions. Containment (@>) tells you who is in a room at a given moment. Overlap (&&) tells you whether a new request clashes with an existing booking:

  • Who is in room 101 on New Year’s Eve at midnight?
SELECT guest FROM bookings
WHERE room = 101 AND stay @> '2026-12-31 23:59:59+00'::timestamptz;
  • Is room 101 free from Dec 22 to Dec 28?
SELECT count(*) = 0 AS available FROM bookings
WHERE room = 101 AND stay && '[2026-12-22 15:00, 2026-12-28 11:00)';

See the range type documentation for more features, such as open-ended ranges or other operators and functions.


That’s it for now!

See you soon in the next edition of the release rewind. It’s going to cover improvements for DDL statements and configuration management.

Want to try out the new features right away? Head to CedarDB Cloud and run the queries on the shared demo project or your own trial instance, free of charge for 30 days.

Prefer working locally? Have a look at our installation guide.

Questions or feedback? Join us on Slack or reach out directly.