pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Zhihong Yu <zyu@yugabyte.com>
Cc: 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, 3 Jun 2021 22:57:38 +0200
Message-ID: <a4725936-8e2c-91e7-8b81-e27c961a763e@enterprisedb.com> (raw)
In-Reply-To: <CALNJ-vTqZtm4zu1tLqnFvhKSrs8uV1yJTOgRQyB80Qs4e3sAhg@mail.gmail.com>
References: <e8f9ec90-546d-e948-acce-0525f3e92773@enterprisedb.com>
	<1946b902b91a480ba0d29f1c86016d7a@index.de>
	<477344d5f17c4a8e95d3a5bb6642718a@index.de>
	<3f6666b0-f513-8cd7-1e69-952c799012ee@enterprisedb.com>
	<CALNJ-vTRB1TeqpVfxZ9+c9wcCyoHxCZ3o=oYFzykTqF7LFQgTg@mail.gmail.com>
	<CALNJ-vTqZtm4zu1tLqnFvhKSrs8uV1yJTOgRQyB80Qs4e3sAhg@mail.gmail.com>

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





view thread (19+ messages)  latest in thread

Message-ID: <a4725936-8e2c-91e7-8b81-e27c961a763e@enterprisedb.com>
Permalink:  ../a4725936-8e2c-91e7-8b81-e27c961a763e@enterprisedb.com/
Also on:    postgresql.org/message-id/a4725936-8e2c-91e7-8b81-e27c961a763e@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, zyu@yugabyte.com, A.Roland@index.de
  Subject: Re: PATCH: generate fractional cheapest paths in generate_orderedappend_path
  In-Reply-To: <a4725936-8e2c-91e7-8b81-e27c961a763e@enterprisedb.com>
  References: <e8f9ec90-546d-e948-acce-0525f3e92773@enterprisedb.com> <1946b902b91a480ba0d29f1c86016d7a@index.de> <477344d5f17c4a8e95d3a5bb6642718a@index.de> <3f6666b0-f513-8cd7-1e69-952c799012ee@enterprisedb.com> <CALNJ-vTRB1TeqpVfxZ9+c9wcCyoHxCZ3o=oYFzykTqF7LFQgTg@mail.gmail.com> <CALNJ-vTqZtm4zu1tLqnFvhKSrs8uV1yJTOgRQyB80Qs4e3sAhg@mail.gmail.com> <a4725936-8e2c-91e7-8b81-e27c961a763e@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