Re: texteq/byteaeq: avoid detoast
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org
Date: 2011-01-18T19:13:15Z
Lists: 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