Re: texteq/byteaeq: avoid detoast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: texteq/byteaeq: avoid detoast
Дата
Msg-id 690.1295377995@sss.pgh.pa.us
обсуждение исходный текст
Ответ на texteq/byteaeq: avoid detoast  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> texteq, textne, byteaeq and byteane detoast their arguments, then check for
> equality of length.  Unequal lengths imply the answer trivially; given equal
> lengths, the functions proceed to compare the actual bytes.  We can skip
> detoasting entirely when the lengths are unequal.  The attached patch implements
> this.

Applied with stylistic changes.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Spread checkpoint sync
Следующее
От: Robert Haas
Дата:
Сообщение: Re: limiting hint bit I/O