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 7246FD1B518 for ; Mon, 20 Oct 2003 17:29:02 +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 70355-06 for ; Mon, 20 Oct 2003 14:28:32 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 7A583D1B55C for ; Mon, 20 Oct 2003 14:28:31 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3795441; Mon, 20 Oct 2003 10:29:11 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: "Harry Broomhall" , pgsql-performance@postgresql.org Subject: Re: Performance weirdness with/without vacuum analyze Date: Mon, 20 Oct 2003 10:28:00 -0700 User-Agent: KMail/1.4.3 References: <200310201650.RAA12431@haeb.noc.uk.easynet.net> In-Reply-To: <200310201650.RAA12431@haeb.noc.uk.easynet.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310201028.00146.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/512 X-Sequence-Number: 4260 Harry, > It has been suggested to me that I resubmit this question to this list, > rather than the GENERAL list it was originaly sent to. > > I asked earlier about ways of doing an UPDATE involving a left outer > join and got some very useful feedback. The query you posted will always be somewhat slow due to the forced join order, which is unavodable with a left outer join. However, regarding your peculiar behaviour, please post: 1) Your random_page_cost and effective_cache_size settings 2) The EXPLAIN ANALYZE of each query instead of just the EXPLAIN Thanks! -- Josh Berkus Aglio Database Solutions San Francisco