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 1oeAwq-0004Sl-0T for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Sep 2022 08:00: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 1oeAwo-0003a4-Rm for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Sep 2022 08:00:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeAwo-0003Zp-GR for pgsql-hackers@lists.postgresql.org; Fri, 30 Sep 2022 08:00:38 +0000 Received: from mx.zeyos.com ([88.99.153.70]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeAwn-0004uc-0Q for pgsql-hackers@lists.postgresql.org; Fri, 30 Sep 2022 08:00:38 +0000 Received: from mx.zeyos.com (localhost [127.0.0.1]) by mx.zeyos.com (Postfix) with ESMTP id F362F619FB for ; Fri, 30 Sep 2022 10:00:35 +0200 (CEST) Authentication-Results: mx.zeyos.com (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=zeyos.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zeyos.com; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:message-id:to:from:from:subject:subject :date:date; s=dkim; t=1664524835; x=1665388836; bh=YduakUJ4enDCm F4a18rWjSTHL7nvHrAdcJX3ZXC0rg4=; b=fC/tG2S1ZuaEicMs4QPJXayo7rYjn V+0A50CqSgJYliuCDyQ/ZVZ4c+yIO3iwhv9lGX9SHewtnjDUT0iVfLKG3KpT9wuC gtA3hb5Q9q3b5c5ni46NVth14IftOujWDYv9L/v/1KMo28FYWRMr8zLh32sorBgw q/ucPRW/a06Sr0= X-Virus-Scanned: Debian amavisd-new at mx.zeyos.com Received: from mx.zeyos.com ([127.0.0.1]) by mx.zeyos.com (mx.zeyos.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qjP88q0_ou-Y for ; Fri, 30 Sep 2022 10:00:35 +0200 (CEST) Received: from cloud.zeyos.com (static.182.82.88.23.clients.your-server.de [23.88.82.182]) by mx.zeyos.com (Postfix) with ESMTPSA id 67402619E0; Fri, 30 Sep 2022 10:00:35 +0200 (CEST) Date: Fri, 30 Sep 2022 10:00:31 +0200 Subject: Re: disfavoring unparameterized nested loops From: Benjamin Coutu To: Bruce Momjian , Tom Lane Cc: Peter Geoghegan , PostgreSQL Hackers , Robert Haas , David Rowley Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Actually, if we wanted to improve things in this area, we should have a > set of queries that don't chose optimal plans we can test with. We used > to see them a lot before we had extended statistics, but I don't > remember seeing many recently, let alone a collection of them. I guess > that is good.=0A=0AIn the VLDB paper they actually created their own "Joi= n Order Benchmark", which is publicly available under https://github.com/gr= egrahn/join-order-benchmark=0AIt would probably be more suited for this kin= d of testing than, e.g. the TPC benchmarks.=0A=0AIf there is interest, I co= uld also compile a set of relevant cases based on the message history of th= e performance mailing list.