Re: Mass updates on a large table

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Mark Steben" <msteben(at)autorevenue(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Mass updates on a large table
Date: 2007-08-10 19:41:16
Message-ID: dcc563d10708101241q16bf96et6b4dc2347555f70e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 8/10/07, Mark Steben <msteben(at)autorevenue(dot)com> wrote:
>
>
>
>
> Hi Scott, thanks for the response.

> 4. The business reason for the update: we are replacing within a
> query a
> COALESCE function that gave us the most recent date between 3 dates. We
> Are instead doing the COALESCE as part of a new update trigger, populating
> the New date fields with the most recent dates and referencing the new dates

So this is a one time data migration. OK, then I'm no as worried
about the business case being a bit crazy.

> 5. We are planning an upgrade to 8.2.4 in the near future – hopefully
> in a couple months.

Cool. Start testing now. You'd be surprised how many test cases
you'll find where your laptop running 8.2 will outrun your server
running 7.x...

Nothing too out of the ordinary in your schema, but those
multi-dimensional arrays might be a bit expensive, especially for
updates.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Julio Cesar Sánchez González 2007-08-11 02:22:20 Re: Joining tables in two different databases?
Previous Message Tom Lane 2007-08-10 18:20:51 Re: Mass updates on a large table