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 4843BD1B560 for ; Wed, 17 Mar 2004 09:11:46 +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 21312-02 for ; Wed, 17 Mar 2004 05:11:44 -0400 (AST) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id BA9AFD1B55E for ; Wed, 17 Mar 2004 05:11:41 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 1B3X5S-000HN3-0X; Wed, 17 Mar 2004 09:11:42 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id EC32E179D5; Wed, 17 Mar 2004 09:11:40 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 1C37C165CD; Wed, 17 Mar 2004 09:11:38 +0000 (GMT) From: Richard Huxton To: Tom Lane , "Rosser Schwarz" Subject: Re: atrocious update performance Date: Wed, 17 Mar 2004 09:11:37 +0000 User-Agent: KMail/1.5 Cc: pgsql-performance@postgresql.org References: <001a01c40ae4$1cdd4160$2500fa0a@CardServices.TCI.com> <8912.1079395699@sss.pgh.pa.us> In-Reply-To: <8912.1079395699@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403170911.37462.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/236 X-Sequence-Number: 6092 On Tuesday 16 March 2004 00:08, Tom Lane wrote: > > I'm inclined to suspect an issue with foreign-key checking. You didn't > give us any details about foreign key relationships your "cust" table is > involved in --- could we see those? And the schemas of the other tables > involved? Two questions Tom: 1. Do the stats tables record FK checks, or just explicit table accesses? 2. If not, should they? If the only real activity is this update then simple before/after views of the stats might be revealing. -- Richard Huxton Archonet Ltd