| From: | John Naylor <johncnaylorls(at)gmail(dot)com> |
|---|---|
| To: | cca5507 <cca5507(at)qq(dot)com> |
| Cc: | zengman <zengman(at)halodbtech(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: tuple radix sort |
| Date: | 2026-04-29 09:24:50 |
| Message-ID: | CANWCAZaaGcp6OQyK9WuB3V9Lp5xctNB3WNWiqo+TopUKvJDbLQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Apr 8, 2026 at 3:20 PM cca5507 <cca5507(at)qq(dot)com> wrote:
>
> > I also thought we should change this cast:
> >
> > if (ssup->comparator == ssup_datum_signed_cmp)
> > {
> > - norm_datum1 = orig + ((uint64) PG_INT64_MAX) + 1;
> > + norm_datum1 = orig + (Int64GetDatum(PG_INT64_MAX)) + 1;
> > }
> >
> > Upthread you mention something else about treating Datum as an
> > integer, but I'm not sure if this is what you meant since you didn't
> > say. If you have concrete suggestions, feel free to share them.
>
> I think we can keep it as is now.
It's harmless, but see commit ff89e182d.
I included the assert along with the above and some small cosmetic
fixes I've been saving.
--
John Naylor
Amazon Web Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | JoongHyuk Shin | 2026-04-29 09:29:59 | Re: [PATCH] Don't call ereport(ERROR) from recovery target GUC assign hooks |
| Previous Message | cca5507 | 2026-04-29 08:46:05 | Re: Why is_admin_of_role() use ROLERECURSE_MEMBERS rather than ROLERECURSE_PRIVS? |