Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEzTw-0006Cj-NV for pgsql-sql@arkaria.postgresql.org; Mon, 20 Jun 2016 13:43:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bEzTw-0006O2-AW for pgsql-sql@arkaria.postgresql.org; Mon, 20 Jun 2016 13:43:16 +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 1bEzSz-0004c8-E0 for pgsql-sql@postgresql.org; Mon, 20 Jun 2016 13:42:17 +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 1bEzSw-0004vG-JQ for pgsql-sql@postgresql.org; Mon, 20 Jun 2016 13:42:16 +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 u5KDgCfL011581; Mon, 20 Jun 2016 09:42:12 -0400 From: Tom Lane To: Herwig Goemans cc: pgsql-sql@postgresql.org Subject: Re: ANSI JOINS versus , like JOINS In-reply-to: References: Comments: In-reply-to Herwig Goemans message dated "Mon, 20 Jun 2016 12:06:26 +0200" Date: Mon, 20 Jun 2016 09:42:12 -0400 Message-ID: <11580.1466430132@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Herwig Goemans writes: > Is there anyone who can help so that the mixed query has the same or > equivalent execution plan (performance) as the ansi query ? I think you need to raise join_collapse_limit and/or from_collapse_limit. regards, tom lane -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql