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 D4866D1B503 for ; Tue, 28 Oct 2003 17:37:09 +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 32830-06 for ; Tue, 28 Oct 2003 13:36:38 -0400 (AST) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 7C4B6D1B559 for ; Tue, 28 Oct 2003 13:36:37 -0400 (AST) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3834932; Tue, 28 Oct 2003 09:36:54 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Manfred Koizar Subject: Re: Guesses on what this NestLoop is for? Date: Tue, 28 Oct 2003 09:36:02 -0800 User-Agent: KMail/1.4.3 Cc: PostgreSQL Performance References: <200310271532.41974.josh@agliodbs.com> <3nhspvkbsarcieub1neodds7pr9h6hbtna@email.aon.at> In-Reply-To: <3nhspvkbsarcieub1neodds7pr9h6hbtna@email.aon.at> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310280936.02167.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/705 X-Sequence-Number: 4453 Manfred, > Sorry, I have no answer to your question, but may I ask whether you > really want to get presumably 106 output rows for each event with > status 1? > > Or did you mean > WHERE (events.status = 1 OR events.status = 11) AND ... Thanks! I spent so much time tinkering around with the exists clauses, I completely missed that. Hopefully I'll get this client to upgrade to 7.4 so that the explains will be more readable .... -- Josh Berkus Aglio Database Solutions San Francisco