| From: | John Naylor <johncnaylorls(at)gmail(dot)com> |
|---|---|
| To: | Michael Paquier <michael(at)paquier(dot)xyz> |
| Cc: | Aleksander Alekseev <aleksander(at)tigerdata(dot)com>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Subject: | Re: [PATCH] Simplify SortSupport implementation for macaddr |
| Date: | 2026-04-07 06:51:35 |
| Message-ID: | CANWCAZaBx0vD5uj8rX6C2n=CV_mFV_uK+spkV5G9Ak_-AhY9oQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Mar 25, 2026 at 3:01 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Mon, Mar 09, 2026 at 04:08:06PM +0300, Aleksander Alekseev wrote:
> >> 1. The assignment ssup->ssup_extra = NULL can be removed. The
> >> SortSupport struct is zeroed before the callback is called (see
> >> sortsupport.h). There are about 22 similar assignments elsewhere;
> >> it does not seem to be established practice, many other places have
> >> no such assignment.
> >
> > Agree. I removed this assignment in 0001 and added 0002 that removes
> > if for the rest of *_sortsupport() functions.
>
> Sounds sensible to get rid of the estimation with the Datum size
> requirement and never give up with the abbreviated key sort, as done
> in 0001. I'd leave the code touched by 0002 remain as-is.
I've committed v2-0001, thanks Aleksander! Without 0002, 0001 made
this code inconsistent with the tree by removing the assignment, so I
left it as in master.
--
John Naylor
Amazon Web Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2026-04-07 07:02:23 | Logical Replication - revisit `is_table_publication` function implementation |
| Previous Message | Lukas Fittl | 2026-04-07 06:51:08 | Re: Refactor query normalization into core query jumbling |