pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: db1981 <damiano.bolzoni@securitymatters.eu>
To: pgsql-sql@postgresql.org
Subject: Searching for byte values within a bytea field
Date: Sun, 30 Aug 2009 12:15:48 -0700 (PDT)
Message-ID: <25214694.post@talk.nabble.com> (raw)


Hi all,
I got stuck with a problem. I have a table that stores binary content into a
bytea field. Now, I would like to be able to search for specific byte
sequences, such as '48545450' ('HTTP'). I can execute a "SELECT myfield FROM
mytable WHERE myfield LIKE '%HTTP%' ", but I cannot do the same when looking
for byte values...

Thanks for helping! 
-- 
View this message in context: http://www.nabble.com/Searching-for-byte-values-within-a-bytea-field-tp25214694p25214694.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.




Message-ID: <25214694.post@talk.nabble.com>
Permalink:  ../25214694.post@talk.nabble.com/
Also on:    postgresql.org/message-id/25214694.post@talk.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: damiano.bolzoni@securitymatters.eu
  Subject: Re: Searching for byte values within a bytea field
  In-Reply-To: <25214694.post@talk.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox