Re: plsql question

From: Bill Thoen <bthoen(at)gisnet(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: plsql question
Date: 2011-02-11 19:43:52
Message-ID: 4D559178.3080305@gisnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/10/2011 6:40 PM, Geoffrey Myers wrote:
> I am trying to write a plsql routine that will delete a range of
> characters based on their octal or hexadecimal values. Something like
> the 'tr' shell command will do:
>
> cat file| tr -d ['\177'-'\377']
>
> Can't seem to figure this one out.
>
> Pointers would be appreciated.
>
Would the string functions to_hex(), translate(), replace() and friends
work for you?
(see http://www.postgresql.org/docs/9.0/static/functions-string.html)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Kerr 2011-02-11 19:52:48 Re: pg_dump: schema with OID 58698 does not exist
Previous Message Bill Moran 2011-02-11 15:11:29 Re: Schema version control