Re: BUG #5126: convert_to preventing index scan - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #5126: convert_to preventing index scan
Date
Msg-id 1256150086.13960.1.camel@vanquo.pezone.net
Whole thread Raw
In response to BUG #5126: convert_to preventing index scan  ("Roman Kapusta" <roman.kapusta@gmail.com>)
Responses Re: BUG #5126: convert_to preventing index scan
List pgsql-bugs
On Mon, 2009-10-19 at 11:05 +0000, Roman Kapusta wrote:
> I have table with bytea column, which is indexed (1)
> I want to use index during pattern matching (eg. dir like
> someDirectoryName
> || '/%'), but concatenation of two strings cause error (2)
> So I have to use function convert_to (converting text to bytea), but
> this
> has awful explain plan (3)

You haven't told us how the convert_to function is defined.

pgsql-bugs by date:

Previous
From: ""
Date:
Subject: BUG #5130: Failed to run initdb:1
Next
From: "aihongwei"
Date:
Subject: BUG #5131: The pgsql will lost