Re: Slow update statement - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow update statement
Date
Msg-id 17916.1123337563@sss.pgh.pa.us
Whole thread Raw
In response to Slow update statement  (Patrick Hatcher <pathat@comcast.net>)
Responses Re: Slow update statement
List pgsql-performance
Patrick Hatcher <pathat@comcast.net> writes:
> I'm running an update statement on about 12 million records using the
> following query:

> Update table_A
> set F1 = b.new_data
> from table_B b
> where b.keyfield = table_A.keyfield

What does EXPLAIN show for this?

Do you have any foreign key references to table_A from elsewhere?

            regards, tom lane

pgsql-performance by date:

Previous
From: John A Meinel
Date:
Subject: Re: Slow update statement
Next
From: Patrick Hatcher
Date:
Subject: Re: Slow update statement