Re: Add MIN/MAX aggregate support for uuid - Mailing list pgsql-hackers

From Tristan Partin
Subject Re: Add MIN/MAX aggregate support for uuid
Date
Msg-id DJHIOZ0SRKX3.3BHWQQ9JL7YWO@partin.io
Whole thread
In response to Re: Add MIN/MAX aggregate support for uuid  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: Add MIN/MAX aggregate support for uuid
List pgsql-hackers
On Wed Jun 24, 2026 at 6:13 PM UTC, Masahiko Sawada wrote:
> On Wed, Jun 24, 2026 at 10:50 AM Tristan Partin <tristan@partin.io> wrote:
>> Attached is a v2.
>
> The patch mostly looks good to me. One minor comment is:
>
> +{ oid => '6519', proname => 'uuid_larger', proleakproof => 't',
> +  prorettype => 'uuid', proargtypes => 'uuid uuid', prosrc => 'uuid_larger' },
> +{ oid => '6520', proname => 'uuid_smaller', proleakproof => 't',
> +  prorettype => 'uuid', proargtypes => 'uuid uuid', prosrc => 'uuid_smaller' },
>
> I think we should add the 'decr' to both functions.

Any opinions on what the descriptions should be? Here are the equivalent
functions for OID:

    { oid => '1965', descr => 'larger of two',
      proname => 'oidlarger', prorettype => 'oid', proargtypes => 'oid oid',
      prosrc => 'oidlarger' },
    { oid => '1966', descr => 'smaller of two',
      proname => 'oidsmaller', prorettype => 'oid', proargtypes => 'oid oid',
      prosrc => 'oidsmaller' },

--
Tristan Partin
PostgreSQL Contributors Team
AWS (https://aws.amazon.com)



pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: autovacuum launcher crash: assert in pgstat_count_io_op (IOOP_EXTEND on pg_database's VM)
Next
From: Zsolt Parragi
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication