Re: Is there an easy way to normalize-space with given string functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Janning Vygen <vygen(at)gmx(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Is there an easy way to normalize-space with given string functions
Date: 2004-04-23 02:34:16
Message-ID: 14819.1082687656@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Janning Vygen <vygen(at)gmx(dot)de> writes:
> i searched the function list and tried to combine to or more
> functions, but i miss a replace function which uses regular
> expressions.

There isn't one in the SQL standard. Most people who need one write a
one-liner function in plperl or pltcl.

(Mind you, I don't know why we don't offer a built-in one --- the needed
regex engine is in there anyway. I guess no one has gotten around to
getting agreement on a syntax.)

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Greg Stark 2004-04-23 04:37:59 Re: staggered query?
Previous Message Tom Lane 2004-04-23 02:16:01 Re: lifetime of temp schema versus compiled image of plpgsql proc