pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Arne Roland <A.Roland@index.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: PATCH: generate fractional cheapest paths in generate_orderedappend_path
Date: Thu, 2 Dec 2021 20:58:44 +0100
Message-ID: <c63df478-a3e7-234d-ea49-b3154fa53409@enterprisedb.com> (raw)
In-Reply-To: <bed8acdc24a74f6285b0d209a28b64f6@index.de>
References: <e8f9ec90-546d-e948-acce-0525f3e92773@enterprisedb.com>
	<a4725936-8e2c-91e7-8b81-e27c961a763e@enterprisedb.com>
	<920f0b3b5761410ab6833787211af250@index.de>
	<6be31b4511c8424db3deeff5c5b8855e@index.de>
	<bed8acdc24a74f6285b0d209a28b64f6@index.de>

Hi,

On 12/2/21 15:58, Arne Roland wrote:
> Afaiac we should add a simple testcase here, like I suggested in 
> 477344d5f17c4a8e95d3a5bb6642718a 
> <https://www.postgresql.org/message-id/477344d5f17c4a8e95d3a5bb6642718a%40index.de;. 
> 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





view thread (19+ messages)  latest in thread

Message-ID: <c63df478-a3e7-234d-ea49-b3154fa53409@enterprisedb.com>
Permalink:  ../c63df478-a3e7-234d-ea49-b3154fa53409@enterprisedb.com/
Also on:    postgresql.org/message-id/c63df478-a3e7-234d-ea49-b3154fa53409@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@enterprisedb.com, A.Roland@index.de
  Subject: Re: PATCH: generate fractional cheapest paths in generate_orderedappend_path
  In-Reply-To: <c63df478-a3e7-234d-ea49-b3154fa53409@enterprisedb.com>
  References: <e8f9ec90-546d-e948-acce-0525f3e92773@enterprisedb.com> <a4725936-8e2c-91e7-8b81-e27c961a763e@enterprisedb.com> <920f0b3b5761410ab6833787211af250@index.de> <6be31b4511c8424db3deeff5c5b8855e@index.de> <bed8acdc24a74f6285b0d209a28b64f6@index.de> <c63df478-a3e7-234d-ea49-b3154fa53409@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox