Re: Querying a BYTEA datatype

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
Cc: "PostgreSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Querying a BYTEA datatype
Date: 2006-04-14 22:16:37
Message-ID: b42b73150604141516p5270a0c6x469a2f1c8eb28676@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/14/06, Shoaib Mir <shoaibmir(at)gmail(dot)com> wrote:
> Hi All,
>
> Need an urgent help on the following:
>
> How can in PostgreSQL we handle quries on the content of bytea data type?
>
> Like if we want to do some search on the basis of bytea content, is there a
> way?
>

you have two options that i know of:
1. convert to text and do text processing
2. make a c function that processes binary and link it to the server.
this will probably give you the best performance

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Thukral 2006-04-15 01:41:06 Fetch in select statement
Previous Message Shoaib Mir 2006-04-14 19:17:49 Querying a BYTEA datatype