Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 677CDEEA159 for ; Wed, 14 Dec 2011 10:00:42 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RapNr-0002dj-Rw for pgsql-bugs@postgresql.org; Wed, 14 Dec 2011 14:00:41 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id C311D307; Wed, 14 Dec 2011 06:00:27 -0800 (PST) Received: from perhan.alvh.no-ip.org ([200.85.212.189] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 14 Dec 2011 06:00:25 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DAAEB6E5D2; Wed, 14 Dec 2011 11:00:16 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #6335: Weird planner decision with exists (a join b) condition From: Alvaro Herrera To: maxim.boguk In-reply-to: References: Date: Wed, 14 Dec 2011 11:00:16 -0300 Message-Id: <1323871093-sup-479@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11278) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-71227-12689 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: maxim.boguk@gmail.com X-Assp-Original-Subject: Re: [BUGS] BUG #6335: Weird planner decision with exists (a join b) condition Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/99 X-Sequence-Number: 31910 Excerpts from maxim.boguk's message of mi=C3=A9 dic 14 08:09:38 -0300 201= 1: > But once I add second value into IN list plan become completely screwed= : See here: http://archives.postgresql.org/message-id/1309918036-sup-4092@alvh.no-ip.= org Perhaps it's a similar problem. Maybe you'd get enthused enough to try to fix the problem? --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support