[PERFORM] Slow update statement

2005-08-06 Thread Patrick Hatcher
[Reposted from General section with updated information] Pg 7.4.5 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 both keyfields are indexed, all other keys in table_A we

Re: [PERFORM] Slow update statement

2005-08-06 Thread John A Meinel
Patrick Hatcher wrote: > [Reposted from General section with updated information] > Pg 7.4.5 > > 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 > > both keyfield

Re: [PERFORM] Slow update statement

2005-08-06 Thread Tom Lane
Patrick Hatcher <[EMAIL PROTECTED]> 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 refere