public inbox for [email protected]
help / color / mirror / Atom feedFrom: Rudolph Froger <[email protected]>
To: [email protected]
Subject: Min and max aggregates for UUIDs
Date: Wed, 8 Apr 2026 08:57:28 +0200
Message-ID: <[email protected]> (raw)
Hi,
With the support for UUIDv7 in PostgreSQL 18 it also makes sense to
support aggregates like `min` and `max` for UUIDs.
For example for queries like these:
SELECT bookshop_id, uuid_extract_timestamp(max(id)) AS
latest_book_created FROM books GROUP BY bookshop_id;
In the meantime I use custom aggregates but it would be great to have
these builtin.
BTW many thanks for the great UUIDv7 support and all the fantastic work
on PostgreSQL!
Cheers, Rudolph
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Min and max aggregates for UUIDs
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox