X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 10FD8D1D28E for ; Wed, 17 Mar 2004 03:25:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 44453-05 for ; Tue, 16 Mar 2004 23:25:17 -0400 (AST) Received: from hotmail.com (law10-oe28.law10.hotmail.com [64.4.14.85]) by svr1.postgresql.org (Postfix) with ESMTP id AFB51D1D2A0 for ; Tue, 16 Mar 2004 23:25:12 -0400 (AST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 16 Mar 2004 19:25:13 -0800 Received: from 67.81.102.201 by law10-oe28.law10.hotmail.com with DAV; Wed, 17 Mar 2004 03:25:12 +0000 X-Originating-IP: [67.81.102.201] X-Originating-Email: [awerman2@hotmail.com] X-Sender: awerman2@hotmail.com From: "Aaron Werman" To: "Rosser Schwarz" Cc: References: <002301c40bb5$ad50db40$2500fa0a@CardServices.TCI.com> Subject: Re: atrocious update performance Date: Tue, 16 Mar 2004 22:25:16 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: X-OriginalArrivalTime: 17 Mar 2004 03:25:13.0099 (UTC) FILETIME=[7584CDB0:01C40BCF] X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/229 X-Sequence-Number: 6085 Quick observations: 1. We have an explanation for what's going on, based on the message being exactly 666 lines long :-) 2. I'm clueless on the output, but perhaps Tom can see something. A quick glance shows that the strace seemed to run 27 seconds, during which it did: count| call -------|--------- 84 | _llseek 40 | brk 54 | close 88 | open 63 | read in other words, nothing much (though it did *a lot* of opens and closes of db files to do nothing ). Can you do another strace for a few minutes against the actual update query adding the -c/-t options and control-c out? ----- Original Message ----- From: "Rosser Schwarz" To: "'Tom Lane'" Cc: Sent: Tuesday, March 16, 2004 7:20 PM Subject: Re: [PERFORM] atrocious update performance while you weren't looking, Tom Lane wrote: [trace] `strace -p 21882` run behind the below query and plan ... below that. # explain update account.cust set prodid = tempprod.prodid, subprodid = tempprod.subprodid where origid = tempprod.debtid;