Re: Some frustrations with admin tasks on PGSQL database - Mailing list pgsql-general

From Phoenix Kiula
Subject Re: Some frustrations with admin tasks on PGSQL database
Date
Msg-id e373d31e0708170732i53b789ecgd81a698cc615db3@mail.gmail.com
Whole thread Raw
In response to Re: Some frustrations with admin tasks on PGSQL database  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
On 17/08/07, hubert depesz lubaczewski <depesz@depesz.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.

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Some frustrations with admin tasks on PGSQL database
Next
From: Magnus Hagander
Date:
Subject: Re: PostgreSQL clustering (shared disk)