How to trim Bytea fields

From: Howard Cole <howardnews(at)selestial(dot)com>
To: 'PgSql General' <pgsql-general(at)postgresql(dot)org>
Subject: How to trim Bytea fields
Date: 2005-11-22 15:01:22
Message-ID: 438332C2.6070301@selestial.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have an bytea field that contains data with a lot of trailing blank
space composed of multiple '\000' zero bytes. Does anyone know of a
quick SQL fix to trim these bytes from the data?

Thanks

Howard Cole
http://www.selestial.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2005-11-22 15:04:16 Re: Best way to represent values.
Previous Message Jacek Balcerski 2005-11-22 14:39:51 problem with GRANT postgres 8.0.4