Re: Define DatumGetInt8 function. - Mailing list pgsql-hackers

From Kirill Reshke
Subject Re: Define DatumGetInt8 function.
Date
Msg-id CALdSSPjmukA1WGyYVqJMPD8080Rm9oXPVLn5T64xFCj6wKAenQ@mail.gmail.com
Whole thread Raw
In response to Re: Define DatumGetInt8 function.  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Define DatumGetInt8 function.
List pgsql-hackers
On Tue, 6 Jan 2026 at 16:50, David Rowley <dgrowleyml@gmail.com> wrote:
>
> On Tue, 30 Dec 2025 at 05:01, Kirill Reshke <reshkekirill@gmail.com> wrote:
> > Well, OK. Removal is also fine for me, because it is at least consistent.
>

> Kirill, are you working on this patch?


Hi!
Yes, PFA.

 > I've not studied in detail,
> but looks like it would require making
> char_decrement()/char_increment() and btcharskipsupport() all use
> CharGetDatum()/DatumGetChar() and switch to using SCHAR_MIN/SCHAR_MAX
> rather than 0/UCHAR_MAX.

This is also a possible change, and can be a separate patch. I will
try to also work on this this week.



-- 
Best regards,
Kirill Reshke

Attachment

pgsql-hackers by date:

Previous
From: Ramakrishna Reddy Nandyala
Date:
Subject: Page verification failed, calculated Checksum 1065 but expected 42487
Next
From: Corey Huinker
Date:
Subject: Re: Import Statistics in postgres_fdw before resorting to sampling.