Re: bytea operator bugs (was Re: [GENERAL] BYTEA, indexes

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvar Freude <alvar(at)a-blast(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: bytea operator bugs (was Re: [GENERAL] BYTEA, indexes
Date: 2002-08-19 03:18:01
Message-ID: 3D606369.6090806@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)com> writes:
>
>>OK. I'll look at both options and make another diff -c proposal ;-) Once
>>that's resolved I'll go back to original issue Alvar raised.
>
> Okay. When you get back to the original issue, the gold is hidden in
> src/backend/optimizer/path/indxpath.c; see the "special indexable
> operators" stuff near the bottom of that file. (It's a bit of a crock
> that this code is hardwired there, and not somehow accessed through a
> system catalog, but it's what we've got at the moment.)

Thanks.

Back on the pattern selectivity issue. With some more study I can
clearly see what you were referring to. Dragging string length through
the maze of function calls that would need it would be a mess.

In the longer term (i.e. not for 7.3) it might make sense to create a
set of pattern selectivity functions, just for bytea, that are careful
to avoid the null-terminated string assumption. But, for now, I'm
leaning toward restricting the right-hand argument of bytealike to TEXT,
as you suggested.

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-08-19 04:01:22 Nice article on open-source databases
Previous Message Tom Lane 2002-08-19 03:04:06 Re: bytea operator bugs (was Re: [GENERAL] BYTEA, indexes and "like")

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2002-08-19 03:28:43 Brief note about dependencies during upgrade to 7.3 or later
Previous Message Tom Lane 2002-08-19 03:04:06 Re: bytea operator bugs (was Re: [GENERAL] BYTEA, indexes and "like")