Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJQ5M-00043h-08 for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Aug 2022 01:55:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJQ5K-0003l2-Ow for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Aug 2022 01:55:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJQ5K-0003kt-H4 for pgsql-bugs@lists.postgresql.org; Thu, 04 Aug 2022 01:55:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJQ5I-0006xQ-Bw for pgsql-bugs@lists.postgresql.org; Thu, 04 Aug 2022 01:55:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2741tYAt3297012; Wed, 3 Aug 2022 21:55:34 -0400 From: Tom Lane To: Richard Guo cc: Martijn van Oosterhout , PostgreSQL mailing lists Subject: Re: BUG #17564: Planner bug in combination of generate_series(), unnest() and ORDER BY In-reply-to: References: <17564-c7472c2f90ef2da3@postgresql.org> <2184335.1659392231@sss.pgh.pa.us> <3002973.1659538573@sss.pgh.pa.us> Comments: In-reply-to Richard Guo message dated "Thu, 04 Aug 2022 09:05:13 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3297010.1659578134.1@sss.pgh.pa.us> Date: Wed, 03 Aug 2022 21:55:34 -0400 Message-ID: <3297011.1659578134@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > I'm reproducing this bug in HEAD with the repro given by Martijn, but > with some additional GUC sets: > set enable_hashjoin to off; > set enable_mergejoin to off; > set enable_indexscan to off; > set enable_bitmapscan to off; Hm, does not work for me ... although I assume you mean bc76f5ac4 or before? It should definitely not happen after 1aa8dad41, unless there's an additional bug ... regards, tom lane