Re: texteq/byteaeq: avoid detoast - Mailing list pgsql-hackers

From Tom Lane
Subject Re: texteq/byteaeq: avoid detoast
Date
Msg-id 690.1295377995@sss.pgh.pa.us
Whole thread Raw
In response to texteq/byteaeq: avoid detoast  (Noah Misch <noah@leadboat.com>)
List 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 by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Spread checkpoint sync
Next
From: Robert Haas
Date:
Subject: Re: limiting hint bit I/O