From: | "Phoenix Kiula" <phoenix(dot)kiula(at)gmail(dot)com> |
---|---|
To: | depesz(at)depesz(dot)com |
Cc: | "Postgres General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Some frustrations with admin tasks on PGSQL database |
Date: | 2007-08-17 14:32:07 |
Message-ID: | e373d31e0708170732i53b789ecgd81a698cc615db3@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 17/08/07, hubert depesz lubaczewski <depesz(at)depesz(dot)com> wrote:
> On Fri, Aug 17, 2007 at 10:22:55PM +0800, Phoenix Kiula wrote:
> > Wow, smartest advice of the day! Yes, a lot of our data in that column
> > has dots and numbers (800,000 compared to 6 million), so I wanted to
> > get only to the stuff that was pure alphabets, but just didn't think
> > of how.
>
> what i really meant was: check how many record will actually be modified
> - i.e. contain upper-case letters.
>
> the fact that some records contain only dots and digits is nice, but i
> suspect that you also have a lot of record with only lower-case letters
> in the field. or am i wrong?
>
You guessed it right. The query makes perfect sense. Only update those
records that have uppercase, and therefore require updating! Many
thanks.
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2007-08-17 14:45:39 | Re: PostgreSQL clustering (shared disk) |
Previous Message | hubert depesz lubaczewski | 2007-08-17 14:24:39 | Re: Some frustrations with admin tasks on PGSQL database |