agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: John Naylor <john.naylor@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify SortSupport for the macaddr data type
Date: Tue, 07 Apr 2026 06:33:53 +0000
Message-ID: <E1wA00W-003Lky-37@gemulon.postgresql.org> (raw)
Simplify SortSupport for the macaddr data type
As of commit 6aebedc38 Datums are 64-bit values. Since MAC addresses
have only 6 bytes, the abbreviated key always contains the entire
MAC address and is thus authoritative (for practical purposes -- the
tuple sort machinery has no way of knowing that). Abbreviating this
datatype is cheap, and aborting abbreviation prevents optimizations
like radix sort, so remove cardinality estimation.
Author: Aleksander Alekseev <aleksander@tigerdata.com>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Suggested-by: John Naylor <johncnaylorls@gmail.com>
Discussion: https://postgr.es/m/CAJ7c6TMk10rF_LiMz6j9rRy1rqk-5s+wBPuBefLix4cY+-4s1w@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/30229be755e703cf23fd73e95c5a515f9011cb5a
Modified Files
--------------
src/backend/utils/adt/mac.c | 101 +++-----------------------------------------
1 file changed, 6 insertions(+), 95 deletions(-)
Message-ID: <E1wA00W-003Lky-37@gemulon.postgresql.org>
Permalink: ../E1wA00W-003Lky-37@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wA00W-003Lky-37@gemulon.postgresql.org
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: pgsql-committers@postgresql.org
Cc: john.naylor@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Simplify SortSupport for the macaddr data type
In-Reply-To: <E1wA00W-003Lky-37@gemulon.postgresql.org>
* 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