Re: texteq/byteaeq: avoid detoast

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: texteq/byteaeq: avoid detoast
Date: 2011-01-18 19:13:15
Message-ID: 690.1295377995@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Noah Misch <noah(at)leadboat(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-01-18 19:16:02 Re: limiting hint bit I/O
Previous Message Josh Berkus 2011-01-18 19:12:53 Re: Spread checkpoint sync