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 1pMQX6-0001wF-EV for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2023 09:33:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pMQX4-0002Yl-Ib for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2023 09:32:58 +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 1pMQX4-0002YU-6o for pgsql-hackers@lists.postgresql.org; Mon, 30 Jan 2023 09:32:58 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pMQWs-00084w-FB for pgsql-hackers@lists.postgresql.org; Mon, 30 Jan 2023 09:32:57 +0000 Received: by mail-pl1-x635.google.com with SMTP id b5so3720479plz.5 for ; Mon, 30 Jan 2023 01:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+f636+WELo/YlE0Jee71fY3Ah850WJHpB8fJBNYXzt4=; b=lbxgjVKTY6R85kW7JvCeTbkbO8WUBwbeFObrn8yciK91ALlzKajh6N1nE3kqlBSm4a iWKHiY7E7TqOhUiIJT/RVrHGHwGM98WOg2Qa6gUYHu5jun5916UmuxL/wSiSJsaHSpvP M95oOxuayYlUb5YI7bxPumcHjKXaHPnOx+gQFLIVhDJcA1r17ueVEGXC53A+8FhYGIcV l3mpjfHrdAIvhGzpIfyFh+g65+E2Zuz6QVHP/p12klgruttqj0IDIjlBxUm2JRRRlRB2 Y5N8ZelEYkGUKNgCT4Gj3oO2V7yc41z16bjMRWk0vreaX+rZR9coTYyuyM35W4+MB5Sy zZnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+f636+WELo/YlE0Jee71fY3Ah850WJHpB8fJBNYXzt4=; b=pkmGMk2TmKvMLAncsIS+jpgI60FgGzvldHZld8YlvF7G+Ohy0Go5eWh1ughvFaFFZ/ 66Aw6hONuuMrZvX8/S70Ds4yqa6DS54kufW3hb3JcQnXCjg4fT+QlRf96qhoEZmQxaFw 6CNDr4aZ72B9WaB8+WmMbWHkxLIWccT/D7CI+m4WBU3oz8h6IJYmPIdumRZuSa/UF6sn +Jv71KqJZwkZJxdzBSnGC0Zk/H/Y7+qxTTU1HMT3NmKmFH9HdbXo4EFJaLfxIJzjAvOM ARRUxFrir9jsfBys5046+8pJ6uGscdKFGfVUzpLtcCrWZRC1vmc2ryCwgnZO1dHrl2Vm /1Vg== X-Gm-Message-State: AO0yUKV8+gbTAabrp0TVTL/Ku8zbe12Q91nVHmE+ivi9E2Vf15gEXipB mlhCF1e9mtq7RPlygvHi56U= X-Google-Smtp-Source: AK7set85mIOoO0PGHN930tMYDuSJrAOPG9cwBpOhil1lzXJngRQItD7vScJzrlFmIkxaK6vA4l3Ecg== X-Received: by 2002:a17:902:da91:b0:196:7664:39c with SMTP id j17-20020a170902da9100b001967664039cmr7048998plx.31.1675071165306; Mon, 30 Jan 2023 01:32:45 -0800 (PST) Received: from [192.168.1.148] ([106.51.128.64]) by smtp.gmail.com with ESMTPSA id b19-20020a170902ed1300b001944b1285easm7288317pld.198.2023.01.30.01.32.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 01:32:44 -0800 (PST) Message-ID: <1ab1c1cb-05c0-f524-2deb-8670b1c139ce@gmail.com> Date: Mon, 30 Jan 2023 15:02:37 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Todo: Teach planner to evaluate multiple windows in the optimal order To: John Naylor Cc: David Rowley , pghackers , Vik Fearing References: <83d80853-a45c-d85c-68eb-59acfe7fb5fb@gmail.com> <2040c902-32b1-46c8-0b26-d3f43a16b9bb@gmail.com> <12f6ef19-e06e-8ea9-ad98-3fd92afb7f0b@gmail.com> <8d0b24ce-f8ba-cd63-82ae-be853b4067e8@gmail.com> <4ef7f947-526b-c4ec-f7a0-8b4586e693e4@gmail.com> <8599211e-1ea9-8827-4b9b-adeb865656bd@gmail.com> <5314d2fc-76b6-c4ea-c083-1ef11411e5be@gmail.com> <47f5b0ff-f947-f4ea-3f22-2ad0317a5214@gmail.com> Content-Language: en-US From: Ankit Kumar Pandey In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 30/01/23 11:01, John Naylor wrote: > Since David referred to L3 size as the starting point of a possible configuration parameter, that's actually cache-conscious. Okay, makes sense. I am correcting error on my part. > I'm not close enough to this thread to guess at the right direction (although I hope related work will help), but I have a couple general remarks: > 1. In my experience, academic papers like to test sorting with register-sized numbers or strings. Our sorttuples are bigger, have complex comparators, and can fall back to fields in the full tuple. > 2. That paper is over 20 years old. If it demonstrated something genuinely useful, some of those concepts would likely be implemented in the real-world somewhere. Looking for evidence of that might be a good exercise. > 3. 20 year-old results may not carry over to modern hardware. > 4. Open source software is more widespread in the academic world now than 20 years ago, so papers with code (maybe even the author's github) are much more useful to us in my view. > 5. It's actually not terribly hard to make sorting faster for some specific cases -- the hard part is keeping other inputs of interest from regressing. > 6. The bigger the change, the bigger the risk of regressing somewhere. Thanks John, these inputs are actually what I was looking for. I will do more research based on these inputs and build up my understanding. Regards, Ankit