Re: type cast from bytea to varchar or whatever

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Michael Monnerie" <michael(dot)monnerie(at)is(dot)it-management(dot)at>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: type cast from bytea to varchar or whatever
Date: 2009-09-15 16:52:56
Message-ID: 4AAF8018020000250002AFD6@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Monnerie <michael(dot)monnerie(at)is(dot)it-management(dot)at> wrote:
> On Sonntag 13 September 2009 Michael Monnerie wrote:

>> I currently have no idea how to cast bytea to text. For this
>> purpose of searching through mails, it would be enough for
>> postgres to treat the bytea as text, and just search through it.
>> You can only find ascii chars then, but that's a limitation one
>> can live with.

> Ping?

Nothing here works for you?:

http://www.postgresql.org/docs/8.4/interactive/functions-string.html

I would have thought convert_from, possibly combined with convert,
would do it.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kasia Tuszynska 2009-09-15 19:40:54 switching on libxml
Previous Message Michael Monnerie 2009-09-15 11:20:59 Re: type cast from bytea to varchar or whatever