Re: [SQL] update query taking 24+ hours

2007-01-14 Thread Ken
Thanks Tom! explain output: Merge Join (cost=60454519.54..70701005.93 rows=682951183 width=22) Merge Cond: (("outer".y = "inner".y) AND ("outer".x = "inner".x)) -> Sort (cost=41812068.08..42304601.78 rows=197013479 width=20) Sort Key: Master.y, Master.x -> Seq Scan on Maste

Re: [SQL] update query taking 24+ hours

2007-01-14 Thread Tom Lane
Ken <[EMAIL PROTECTED]> writes: > I have postgres 8.1 on a linux box: 2.6Ghz P4, 1.5GB ram, 320GB hard > drive. I'm performing an update between two large tables and so far > it's been running for 24+ hours. > UPDATE Master SET val2=Import.val WHERE Master.x=Import.x AND > Master.y=Import.y; W

[SQL] update query taking 24+ hours

2007-01-13 Thread Ken
Hello, I have postgres 8.1 on a linux box: 2.6Ghz P4, 1.5GB ram, 320GB hard drive. I'm performing an update between two large tables and so far it's been running for 24+ hours. I have two tables: Master: x int4 y int4 val1 int2 val2 int2 Import: x int4 y int4 val int2 Each table has about 1