Re: PG_FREE_IF_COPY extraneous in numeric_cmp?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PG_FREE_IF_COPY extraneous in numeric_cmp?
Дата
Msg-id 1060531.1677276976@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PG_FREE_IF_COPY extraneous in numeric_cmp?  (CK Tan <cktan@vitessedata.com>)
Ответы Re: PG_FREE_IF_COPY extraneous in numeric_cmp?  (CK Tan <cktan@vitessedata.com>)
Список pgsql-hackers
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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BRIN indexes vs. SK_SEARCHARRAY (and preprocessing scan keys)
Следующее
От: Corey Huinker
Дата:
Сообщение: Re: verbose mode for pg_input_error_message?