Re: Recommend wrappers of PG_DETOAST_DATUM_PACKED()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Recommend wrappers of PG_DETOAST_DATUM_PACKED()
Дата
Msg-id 13059.1477407793@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Recommend wrappers of PG_DETOAST_DATUM_PACKED()  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> When commit 3e23b68dac006e8deb0afa327e855258df8de064 introduced single-byte
> varlena headers, its fmgr.h changes presented PG_GETARG_TEXT_PP() and
> PG_GETARG_TEXT_P() as equals.  Its postgres.h changes presented
> PG_DETOAST_DATUM_PACKED() and VARDATA_ANY() as the exceptional case.  Let's
> firmly recommend PG_GETARG_TEXT_PP() over PG_GETARG_TEXT_P(); likewise for
> other ...PP() macros.  This shaves cycles and brings consistency of style.

+1
        regards, tom lane



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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Recommend wrappers of PG_DETOAST_DATUM_PACKED()
Следующее
От: Bruce Momjian
Дата:
Сообщение: Wraparound warning