Re: slow update

From: Patrick Hatcher <PHatcher(at)macys(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: slow update
Date: 2005-10-13 18:37:09
Message-ID: OFD4D36CA2.A21FD871-ON88257099.006613A9-88257099.006647D8@FDS.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Thanks. No foreign keys and I've been bitten by the mismatch datatypes and
checked that before sending out the message :)

Patrick Hatcher
Development Manager Analytics/MIO
Macys.com


Tom Lane
<tgl(at)sss(dot)pgh(dot)pa(dot)u
s> To
Patrick Hatcher
10/13/2005 11:34 <PHatcher(at)macys(dot)com>
AM cc
postgres performance list
<pgsql-performance(at)postgresql(dot)org>
Subject
Re: [PERFORM] slow update





Patrick Hatcher <PHatcher(at)macys(dot)com> writes:
> Pg 7.4.5

> Trying to do a update of fields on 23M row database.
> Is it normal for this process to take 16hrs and still clocking?

Are there foreign keys pointing at the table being updated? If so,
failure to index the referencing columns could create this sort of
performance problem. Also, in 7.4 you'd better be sure the referencing
columns are the same datatype as the referenced column.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Andy 2005-10-14 07:23:18 Re: Server misconfiguration???
Previous Message Tom Lane 2005-10-13 18:34:05 Re: slow update