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 1loqyt-00055l-1j for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 17:18:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1loqyr-0008BB-Re for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 17:18:05 +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 1loqyr-0008B3-HI for pgsql-hackers@lists.postgresql.org; Thu, 03 Jun 2021 17:18:05 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loqyn-0005Hw-FK for pgsql-hackers@postgresql.org; Thu, 03 Jun 2021 17:18:04 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 8675B5FC7C; Thu, 3 Jun 2021 17:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1622740676; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0RBLaEhNyHIXNPfUW0GQ5sJZyswuCb4KDXQ9aKTWVEQ=; b=auykhTx/8PBjS6BGgXs491zP5aQ03AcKTNmjntn1YPHpOap7V8Pn8aQ8Ht3DAf31cGxRtf 1s9KHmX8uWoaWhJX5n4p5wDPVeQV3pvlrw/CPtZwDHUqPDLqWfEl6nwtpR1Oq8N5C7MHV6 vM0BE6tfJBd6e7CBuiVFoDFZOIoF5V4= Received: from remote.index.de (business-90-187-114-221.pool2.vodafone-ip.de [90.187.114.221]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 5625A360360; Thu, 3 Jun 2021 17:17:56 +0000 (UTC) Received: from invidia.index-gruppe.local (192.168.3.140) by acedia.index-gruppe.local (192.168.3.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 3 Jun 2021 19:17:55 +0200 Received: from invidia.index-gruppe.local (192.168.3.140) by invidia.index-gruppe.local (192.168.3.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 3 Jun 2021 19:17:55 +0200 Received: from invidia.index-gruppe.local ([fe80::50c:3e08:f8e2:5a62]) by invidia.index-gruppe.local ([fe80::50c:3e08:f8e2:5a62%16]) with mapi id 15.01.2176.014; Thu, 3 Jun 2021 19:17:55 +0200 From: Arne Roland To: Tomas Vondra , pgsql-hackers Subject: Re: PATCH: generate fractional cheapest paths in generate_orderedappend_path Thread-Topic: PATCH: generate fractional cheapest paths in generate_orderedappend_path Thread-Index: AQHXMxwFBSWPrfL6EUqWBkKfzekca6rGmsgBgDwx81k= Date: Thu, 3 Jun 2021 17:17:55 +0000 Message-ID: <477344d5f17c4a8e95d3a5bb6642718a@index.de> References: ,<1946b902b91a480ba0d29f1c86016d7a@index.de> In-Reply-To: <1946b902b91a480ba0d29f1c86016d7a@index.de> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.255.1.33] Content-Type: multipart/mixed; boundary="_004_477344d5f17c4a8e95d3a5bb6642718aindexde_" MIME-Version: 1.0 X-Mail-ID: ea14a382-97fa-4836-9623-35b915b9f236 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_004_477344d5f17c4a8e95d3a5bb6642718aindexde_ Content-Type: multipart/alternative; boundary="_000_477344d5f17c4a8e95d3a5bb6642718aindexde_" --_000_477344d5f17c4a8e95d3a5bb6642718aindexde_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I haven't tested the parallel case, but I think we should sort out (3) get_= cheapest_fractional_path_for_pathkeys as mentioned above. I am lost about the comment regarding startup_new_fractional. Could you ela= borate what you mean by that? Apart from that, I'd argue for a small test case. I attached a slimmed down= case of what we were trying to fix. It might be worth to integrate that wi= th an existing test, since more than a third of the time seems to be consum= ed by the creation and attachment of partitions. Regards Arne --_000_477344d5f17c4a8e95d3a5bb6642718aindexde_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,


I haven't tested the parallel case, but I think we should sort out (3) <= font style=3D"font-family:Calibri,Helvetica,sans-serif,serif,"EmojiFon= t"" size=3D"3" face=3D"Calibri,Helvetica,sans-serif" color=3D"black"> get_cheapest_f= ractional_path_for_pathkeys as mentioned above.


I am lost about the comment regarding startup_new_fractional. Coul= d you elaborate what you mean by that?


Apart from that, I'd argue for a small test case. I attached a slimmed d= own case of what we were trying to fix. It might be worth to integrate that= with an existing test, since more than a third of the time seems to be con= sumed by the creation and attachment of partitions.


Regards
Arne


--_000_477344d5f17c4a8e95d3a5bb6642718aindexde_-- --_004_477344d5f17c4a8e95d3a5bb6642718aindexde_ Content-Type: application/sql; name="merge-fraction-cheapest_example.sql" Content-Description: merge-fraction-cheapest_example.sql Content-Disposition: attachment; filename="merge-fraction-cheapest_example.sql"; size=890; creation-date="Thu, 03 Jun 2021 17:08:07 GMT"; modification-date="Thu, 03 Jun 2021 17:08:07 GMT" Content-Transfer-Encoding: base64 LS0gY3JlYXRlIHR3byBpZGVudGljYWwgcGFydGl0aW9uZWQgdGFibGVzIHdpdGggMTAwIHBhcnRp dGlvbnMgZWFjaApjcmVhdGUgdGFibGUgYSAoaWQgYmlnaW50LCBwcmltYXJ5IGtleSAoaWQpKSBw YXJ0aXRp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