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 1mssEJ-0003RB-Um for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Dec 2021 19:58:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mssEI-0000Dz-Ma for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Dec 2021 19:58:54 +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 1mssEI-0000Dm-2S for pgsql-hackers@lists.postgresql.org; Thu, 02 Dec 2021 19:58:54 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mssED-0008Hm-As for pgsql-hackers@postgresql.org; Thu, 02 Dec 2021 19:58:53 +0000 Received: by mail-qt1-x82d.google.com with SMTP id 8so960813qtx.5 for ; Thu, 02 Dec 2021 11:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=KOWPSnpMy6fYR7Wc/6TtAbU40vvS0lE4hcpALuZW16A=; b=ku+zTRlJSG6DuVJEayH9tKS22wUvSOSaftxwPMhquz9mzy1iHv0o3ePbN5L7A+2Dmr mwiu8n7tYvZr+xtBLHsf+zD/vW6vsTRzuv+BfAyJH+CLdmgQYcUloUNXdhtD9aY7vYc0 KJEKOdbfwn+gxjn+35wMVYhSzedMJYThCPU/ICrrAyIR3xTi2rZkUeGponD/1NDWzKC9 JA+8kv7qbS0Efy7oeFKIoL/1XVLBSDTFl4AYZo3jyJKULxunICnMO4qy9qxR2yx8E0Ia Daj/aGmxTBX3ohNg9FH2yxPaTkrZSGaniLI2RM7pjFWfpqqSwBRICR5J1Bu9OZ/5tjyH SXsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=KOWPSnpMy6fYR7Wc/6TtAbU40vvS0lE4hcpALuZW16A=; b=bR6Pzl30ZVUIVmt531tfxCek9PVIRyM2GTclo/OXaxvuYM1BuYDJ3JcgI/rGoEF7NU oJG6PBcGX8rfHnSmkB+8zDIzbRWLvHedMtIyrs2fktbLsPZnLdFgJbrXprtXlzUYNMKE q93SO19fLW6SdrX7BkYCADToEb6sPfYmMqe4OJQkfNmWVkU0F3ONDk5C5unzJmcu+Uku PynXlqQbZK6Ml5YsWYB9BxHPZj8Lna6sD+jAp8pKEbgzSqSAxOXnd+87NEryJVjh9vRk Kv/F13du8qA8ff+fn3R22bARhZdpPGnNBuGqiq4V+kiHJFURLPB+KGwCZaNaJzEiXn7W WdAg== X-Gm-Message-State: AOAM5304P9hNGvgyi7Hd02F1FzOFyAEOtXr7VknP0OmC7OHLNmAQKjcH dOuIj1XmfaMdvwqABWCC5Esw5+Fxn0fsd/NraHMfsvTLykxm/PEG/W9eZ6yh1jxAtyrMqJHNbJ5 2qYPuKlwet6KY47AiRluXGsg0UomMJFZza9UFQ14y/yFFsQe/h/VsUVt9Yeo2BPh2Ia7T2gIooU JHZHty4DvELb2zElt03NYMQelByIFht+CZ9MmAARnHJiNqIls= X-Google-Smtp-Source: ABdhPJxVmOb3liqBEvsvCb0sn0D6wgaGXVFDqhZ08uthLTScinN1o1WAKG+8vnyEYumzGxCXt2Mm1w== X-Received: by 2002:a05:622a:43:: with SMTP id y3mr16001542qtw.192.1638475127256; Thu, 02 Dec 2021 11:58:47 -0800 (PST) Received: from [10.137.0.18] (ccmhfincenter08.c.subnet.rcn.com. [207.237.191.167]) by smtp.gmail.com with ESMTPSA id r20sm683139qkp.21.2021.12.02.11.58.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Dec 2021 11:58:46 -0800 (PST) Message-ID: Date: Thu, 2 Dec 2021 20:58:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: PATCH: generate fractional cheapest paths in generate_orderedappend_path Content-Language: en-US To: Arne Roland Cc: pgsql-hackers References: <920f0b3b5761410ab6833787211af250@index.de> <6be31b4511c8424db3deeff5c5b8855e@index.de> From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 12/2/21 15:58, Arne Roland wrote: > Afaiac we should add a simple testcase here, like I suggested in > 477344d5f17c4a8e95d3a5bb6642718a > . > Apart from that I am not sure there is work to be done here. > Well, I mentioned three open questions in my first message, and I don't think we've really addressed them yet. We've agreed we don't need to add the incremental sort here, but that leaves 1) If get_cheapest_fractional_path_for_pathkeys returns NULL, should we default to cheapest_startup or cheapest_total? 2) Should get_cheapest_fractional_path_for_pathkeys worry about require_parallel_safe? I think yes, but we need to update the patch. I'll take a closer look next week, once I get home from NYC, and I'll submit an improved version for the January CF. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company