pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Surafel Temesgen <surafel3000@gmail.com>
Cc: David Steele <david@pgmasters.net>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: andrew@tao11.riddles.org.uk, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: FETCH FIRST clause WITH TIES option
Date: Wed, 03 Apr 2019 15:08:05 -0400
Message-ID: <32413.1554318485@sss.pgh.pa.us> (raw)
In-Reply-To: <20190403190257.44fxttkpo4yopp3l@development>
References: <CALAY4q9Zd24E8OEBxOHfqQbp6u+xePXrFsnvM5xoy1pq1APUgw@mail.gmail.com>
	<c1430163-a5b0-2adb-c81c-29d1029cb8cf@2ndquadrant.com>
	<CALAY4q-+CKiFkgCL5VSK-9P8i5Z9uoQQh6ZEZLkjzsUT2mySsw@mail.gmail.com>
	<20190204052857.GP29064@paquier.xyz>
	<CALAY4q8vDyK4_jhFkXyWnJRcuWGgkwOzJTw-j2Dw0ddyTiZM4g@mail.gmail.com>
	<cd96a537-a302-48ef-b41b-2e247e156745@pgmasters.net>
	<CALAY4q8X-17+AFaAKZ+YX781b+pqjdU4S=z=ZUGi3QjyHpZ6hQ@mail.gmail.com>
	<20190329005648.GA1136@development>
	<20190331001446.GA10804@development>
	<CALAY4q86X1rCKyNE040tx1nXgH5BGeH4nxdtVbEdUuvVxEBdRw@mail.gmail.com>
	<20190403190257.44fxttkpo4yopp3l@development>

Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> I've tried to fix the merge conflict (essentially by moving some of the
> code to adjust_limit_rows_costs(), but I'm wondering if the code added to
> create_limit_path is actually correct
> ...
> Firstly, this seriously needs some comment explaining why we do this.

I've not looked at this patch, but TBH I wonder why it is touching
planner rowcount estimation at all.  I find it doubtful either that
a correction for WITH TIES would be significant in most use-cases,
or that we could estimate it accurately if it was significant.
It certainly doesn't seem like something that needs to be messed
with in v1 of the feature.

			regards, tom lane





view thread (61+ messages)  latest in thread

Message-ID: <32413.1554318485@sss.pgh.pa.us>
Permalink:  ../32413.1554318485@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32413.1554318485@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tomas.vondra@2ndquadrant.com, surafel3000@gmail.com, david@pgmasters.net, michael@paquier.xyz, robertmhaas@gmail.com
  Subject: Re: FETCH FIRST clause WITH TIES option
  In-Reply-To: <32413.1554318485@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