From: | "Phoenix Kiula" <phoenix(dot)kiula(at)gmail(dot)com> |
---|---|
To: | "Michael Glaesemann" <grzm(at)seespotcode(dot)net> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: FInding "corrupt" values in UTF-8 tables (regexp question, I think) |
Date: | 2007-08-17 18:54:15 |
Message-ID: | e373d31e0708171154n27d81e13n9ece8113a8edb018@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 18/08/07, Michael Glaesemann <grzm(at)seespotcode(dot)net> wrote:
> [Please reply to the list so that others may benefit from and
> participate in the discussion.]
>
> >> If you're including - in a range as a character, doesn't it have to
> >> go first?
> >> Try this:
> >>
> >> WHERE t_code ~ $re$[^-A-Za-z1-9_]$re$
> >>
> >>
> >
> >
> >
> > Thanks, yes, this is sweet!
> >
> > If I include this into a check constraint on the table, would that be
> > very resource intensive for INSERTs and UPDATEs?
> >
>
> Maybe. I don't know. What's very? Measure, change, and measure again.
> Premature optimization and all that. :) First I make it correct.
Yes, I meant to reply all. Thanks much for your help. I'll play around
with the check constraint.
From | Date | Subject | |
---|---|---|---|
Next Message | Douglas McNaught | 2007-08-17 19:19:46 | Re: Enterprise Wide Deployment |
Previous Message | RAJARAM JAYARAMAN | 2007-08-17 18:21:09 | Re: I get a error msg when i try to connect to the DB |