Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s40n2-00HNvq-US for pgsql-hackers@arkaria.postgresql.org; Mon, 06 May 2024 16:02:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s40n0-00EGK1-7F for pgsql-hackers@arkaria.postgresql.org; Mon, 06 May 2024 16:02:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s40mz-00EGJt-On for pgsql-hackers@lists.postgresql.org; Mon, 06 May 2024 16:02:06 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s40mu-001k7J-65 for pgsql-hackers@lists.postgresql.org; Mon, 06 May 2024 16:02:05 +0000 Received: from [192.168.1.35] (cm-171-100-240-249.revip10.asianet.co.th [171.100.240.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: a.lepikhov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 53DFDE20EAE; Mon, 6 May 2024 19:01:50 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1715011316; bh=sO9Uw4mKnfFt6ckPiILkuBD8VJ1DoJRhh/kinzR73gM=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=H32rFaVvo28csXdtANHlASx5MYHuYk9Glvtu6YwO+8MipfKTBjo08h27fLI0+ZXd6 TPPEh6ca4pqy5n/RjTuydKxg9AhRhKZf2b4qB67N693VJQYpyBxekl2GmqFR3P0xoS 5RHnw3GXYmie8zQxvD4e19HYLQDWBya5Z1ftK70NSBQTKvsnBwMaY9rjjN72adFgD6 BeWa990GG6HdQl1pCnY+nNFZ5IcOM9SksjcuJ8p3K5rdqykCziOnE1biyDsyh8lHCv 4QWBCc/idK0f54W+nARrop4r8SX9MwBpzBb0D84K5wecNY3LXTi+a6BiJUUc6HjwwU FE8sEAynIyO8Q== Message-ID: Date: Mon, 6 May 2024 23:01:39 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Removing unneeded self joins To: Robert Haas Cc: Alexander Korotkov , Tom Lane , Richard Guo , Alexander Lakhin , "Gregory Stark (as CFM)" , =?UTF-8?Q?Micha=C5=82_K=C5=82eczek?= , PostgreSQL Hackers References: <64486b0b-0404-e39e-322d-0801154901f3@postgrespro.ru> <922623af-872e-4cdc-9238-129b18bee42d@postgrespro.ru> <0ed2cf02-e655-6ec7-a4fe-52fd8d572f65@gmail.com> <735b5cd4-568d-fbf7-ad8c-dcfb4c3af86e@gmail.com> <2422119.1714691974@sss.pgh.pa.us> <24e93efd-eeac-43a6-a75a-ad68eacb32ee@postgrespro.ru> Content-Language: en-US From: Andrei Lepikhov Organization: Postgres Professional In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-KSMG-AntiPhishing: NotDetected X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2024/05/06 12:01:00 #25108659 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/5/2024 21:44, Robert Haas wrote: > On Sat, May 4, 2024 at 10:46 PM Andrei Lepikhov > wrote: >> Having no objective negative feedback, we have no reason to change >> anything in the design or any part of the code. It looks regrettable and >> unusual. > > To me, this sounds like you think it's someone else's job to tell you > what is wrong with the patch, or how to fix it, and if they don't, > then you should get to have the patch as part of PostgreSQL. But that > is not how we do things, nor should we. I agree that it sucks when you > need feedback and don't get it, and I've written about that elsewhere > and recently. But if you don't get feedback and as a result you can't > get the patch to an acceptable level, I'm really sorry that the level of my language caused a misunderstanding. The main purpose of this work is to form a more or less certain view of the direction of the planner's development. Right now, it evolves extensively - new structures, variables, alternative copies of the same node trees with slightly changed properties ... This way allows us to quickly introduce some planning features (a lot of changes in planner logic since PG16 is evidence of that) and with still growing computing resources it allows postgres to fit RAM and proper planning time. But maybe we want to be more modest? The Ashutosh's work he has been doing this year shows how sometimes expensive the planner is. Perhaps we want machinery that will check the integrity of planning data except the setrefs, which fail to detect that occasionally? If an extensive approach is the only viable option, then it's clear that this and many other features are simply not suitable for Postgres Planner. It's disheartening that this patch didn't elicit such high-level feedback. -- regards, Andrei Lepikhov