Re: PG_FREE_IF_COPY extraneous in numeric_cmp?

Поиск
Список
Период
Сортировка
От CK Tan
Тема Re: PG_FREE_IF_COPY extraneous in numeric_cmp?
Дата
Msg-id CAJNt7=aMV=3rmF1V_JGNyeWsoKNOiy5jrkDDzQx1Md7NEXA+fg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PG_FREE_IF_COPY extraneous in numeric_cmp?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thanks!

On Fri, Feb 24, 2023 at 2:16 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> CK Tan <cktan@vitessedata.com> writes:
> > Isn't it true that pfree() will never be called by PG_FREE_IF_COPY?
>
> No.  You're forgetting the possibility that PG_GETARG_NUMERIC will
> have to de-toast a toasted input.  Granted, numerics are seldom
> going to be long enough to get compressed or pushed out-of-line;
> but that's possible, and what's very possible is that they'll have
> a short header.
>
>                         regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: BRIN indexes vs. SK_SEARCHARRAY (and preprocessing scan keys)
Следующее
От: Pavel Stehule
Дата:
Сообщение: broken formatting?