pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexey Ermakov <alexey.ermakov@postgresql-consulting.com>
Cc: maxim.boguk@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14469: Wrong cost estimates for merge append plan with partitions.
Date: Sat, 17 Dec 2016 12:48:22 -0500
Message-ID: <26142.1481996902@sss.pgh.pa.us> (raw)
In-Reply-To: <585522b7.4391190a.fcd8e.a4ed@mx.google.com>
References: <20161217105346.13336.97087@wrigleys.postgresql.org>
	<585522b7.4391190a.fcd8e.a4ed@mx.google.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alexey Ermakov <alexey.ermakov@postgresql-consulting.com> writes:
> I think we should change that estimation and in case when child node 
> expected to return only one row (and really 0 rows) we should use it's 
> total_cost as base for estimation of startup_cost.

This would make sense as part of the overall rethinking of startup_cost
discussed in
https://www.postgresql.org/message-id/flat/31065.1481742760%40sss.pgh.pa.us
but I'm disinclined to do it in isolation.  Redefining startup_cost for
just one path type seems likely to create more problems than it solves.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <26142.1481996902@sss.pgh.pa.us>
Permalink:  ../26142.1481996902@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26142.1481996902@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alexey.ermakov@postgresql-consulting.com, maxim.boguk@gmail.com
  Subject: Re: BUG #14469: Wrong cost estimates for merge append plan with partitions.
  In-Reply-To: <26142.1481996902@sss.pgh.pa.us>
  References: <20161217105346.13336.97087@wrigleys.postgresql.org> <585522b7.4391190a.fcd8e.a4ed@mx.google.com> <26142.1481996902@sss.pgh.pa.us>

* 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