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 1louQ2-0004Tw-OP for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 20:58:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1louQ1-0001dO-Nw for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 20:58:21 +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 1louPR-0006ZI-2c for pgsql-hackers@lists.postgresql.org; Thu, 03 Jun 2021 20:57:45 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1louPO-0007KQ-HR for pgsql-hackers@postgresql.org; Thu, 03 Jun 2021 20:57:44 +0000 Received: by mail-ej1-x636.google.com with SMTP id h24so11273644ejy.2 for ; Thu, 03 Jun 2021 13:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=o/XBZUWZ8CCyuaeEhwaX06Q1EYT7yMRc5n0n3dJCb20=; b=aPZlG/EyvCvSVqguc9JjToTD9r286OCp9HGiCT7lthT+zhLPQv2ZmWBBO3yZXFnbbd +hvsJpP6yXmpkT+51tT35X30EpQ22KUpLI+oU/NfFBgub5AbQq+I2J7jFGBiy7wpgO/3 ZJiny2sof9E/bBEf/ZMdwTynmeWm7BFJHzGXD254UbLNUXY3IesJeBmr/LAKnht2M6I3 8NYlhUhUDCPWerhPbsmYzFv2iUSkbHJDhEZxv/LGa2Sx2tCzJNNN5oU0H/BQwJJs2PTv UAoDiUXsFBaVT3TvhtcuR/bcCwJFBLktoqjHlobskalwO0fY2VmU21TfF63X3O2miT67 x2DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=o/XBZUWZ8CCyuaeEhwaX06Q1EYT7yMRc5n0n3dJCb20=; b=Q9J5PavEULLJlR8i33O3F3yIId4BIaT5Q9k0qInZ02ESAOa/aF6rWWapQ6Wsxo+3sq ng1aLcEHv90X/7DBiQdbpDRWFsRUoj9Sc/CUcWT9HRBktA8ND37iLwqT8lnXomusJpO7 ht+62F0Pf5UxHIQJKMcJZqNa2Sb8k6d8nRpKMN7uCeJ2nVJQsEnwlC30mfn3YJ0BUECy jch5F4YsHsGHnEgguapY3dwVH5Nf0EeNxbRz3sKxVjVGVxed/29E06Wm5Vdaav8xOTzI dEkzP80jgaYjZGkpFsPmKsxQcKevdmRhqbd8GV1sVoKrKxrR9QB1+cSp0WPu0EzS/3NU 3e0w== X-Gm-Message-State: AOAM532lTHYpeDT0HUkXTCrAcVZy7dQ8X2Ps84f76D4h55lrs95hkSPz vIlQl2+242aNxvx3v26FZKMCq6gAar3kU8GkLn8hQf4BLgq5S7FDyiWRDNLLpMfDWg27dVsrgS3 t+3fnFTfvpjSjnvIBTQe6aJHwcDxSezwjQGypnMJ1km9wyhhFg+n5EbCRbbjcMt+dDUR/qBqabo UbpFR4NcwQTo3pYD1d3acRL9DWOCw3PdBzZurafe4mDWA6wQTopkhMfRsbU/84pW0HftreveQ0v ShKlt6Ws1lUzFyjliXeSv3TvTrNUxPl6+OJ0n87 X-Google-Smtp-Source: ABdhPJzMTbRimAMa8w6UK2zkKvSegEzEQVWm9kA7ham+CbgQVMPTaVb+ZZlzJzPuVti5z64mC23j9Q== X-Received: by 2002:a17:906:3845:: with SMTP id w5mr1088616ejc.518.1622753860713; Thu, 03 Jun 2021 13:57:40 -0700 (PDT) Received: from [10.137.0.19] (ip-86-49-254-183.net.upcbroadband.cz. [86.49.254.183]) by smtp.gmail.com with ESMTPSA id c18sm2239694edt.97.2021.06.03.13.57.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Jun 2021 13:57:40 -0700 (PDT) Subject: Re: PATCH: generate fractional cheapest paths in generate_orderedappend_path To: Zhihong Yu Cc: Arne Roland , pgsql-hackers References: <1946b902b91a480ba0d29f1c86016d7a@index.de> <477344d5f17c4a8e95d3a5bb6642718a@index.de> <3f6666b0-f513-8cd7-1e69-952c799012ee@enterprisedb.com> From: Tomas Vondra Message-ID: Date: Thu, 3 Jun 2021 22:57:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US 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 On 6/3/21 10:52 PM, Zhihong Yu wrote: > ... > > Sent a bit too soon. > > The above function still exists. > But startup_new_fractional was nowhere to be found. Actually, there are two comments /* XXX maybe we should have startup_new_fractional? */ in the patch I posted - I completely forgot about that. But I think that's a typo, I think - it should be /* XXX maybe we should have startup_neq_fractional? */ and the new flag would work similarly to startup_neq_total, i.e. it's pointless to add paths where startup == fractional cost. At least I think that was the idea when I wrote the patch, it way too long ago. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company