Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnYDb-0005wu-In for pgsql-general@arkaria.postgresql.org; Thu, 31 Aug 2017 22:45:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dnYDa-0006Yx-VM for pgsql-general@arkaria.postgresql.org; Thu, 31 Aug 2017 22:45:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dnYBB-0002DM-W3 for pgsql-general@postgresql.org; Thu, 31 Aug 2017 22:43:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dnYB8-00010G-HV for pgsql-general@postgresql.org; Thu, 31 Aug 2017 22:43:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7VMgjXs011848; Thu, 31 Aug 2017 18:42:45 -0400 From: Tom Lane To: "benj.dev" cc: pgsql-general@postgresql.org Subject: Re: Problem with Lateral ? In-reply-to: <3a161163-8dcc-19ee-3fc2-24306e6ea833@laposte.net> References: <3a161163-8dcc-19ee-3fc2-24306e6ea833@laposte.net> Comments: In-reply-to "benj.dev" message dated "Thu, 31 Aug 2017 23:15:08 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11846.1504219365.1@sss.pgh.pa.us> Date: Thu, 31 Aug 2017 18:42:45 -0400 Message-ID: <11847.1504219365@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org "benj.dev" writes: > I Have a request that produce a bad result. I'm able to rewrite this > request in a form that always produce a good result. It's not at all clear from the amount of info provided whether you've hit a Postgres bug or are just misunderstanding the semantics of your query. However ... > The version of Postgres is "PostgreSQL 9.3.6 on x86 > 64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.2-19Ubuntu1) 4.8.2, > 64-bit" ... that's a rather old version of Postgres; we released 9.3.19 yesterday. And a quick perusal of the 9.3-branch commit log finds quite a few LATERAL-related bug fixes that went in since 9.3.6. You might consider updating to 9.3.something-recent and see if anything changes. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general