Re: FETCH FIRST clause WITH TIES option
От
Tomas Vondra
Тема
Re: FETCH FIRST clause WITH TIES option
Дата
Msg-id
20190403194059.yqtuuwtsipq2vknh@development
Ответ на
Re: FETCH FIRST clause WITH TIES option (Tom Lane)
Список
Дерево обсуждения
FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Andres Freund <andres@anarazel.de>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Robert Haas <robertmhaas@gmail.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Michael Paquier <michael@paquier.xyz>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: Re: FETCH FIRST clause WITH TIES option David Steele <david@pgmasters.net>
Re: Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Tom Lane <tgl@sss.pgh.pa.us>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Thomas Munro <thomas.munro@gmail.com>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Erik Rijkers <er@xs4all.nl>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>
Re: FETCH FIRST clause WITH TIES option Surafel Temesgen <surafel3000@gmail.com>
Re: FETCH FIRST clause WITH TIES option Alvaro Herrera <alvherre@2ndquadrant.com>
Re: FETCH FIRST clause WITH TIES option Tom Lane <tgl@sss.pgh.pa.us>
On Wed, Apr 03, 2019 at 03:08:05PM -0400, Tom Lane wrote: >Tomas Vondra 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. > FWIW it was me who suggested to tweak the cardinality estimation this way, but if we want to leave it out from v1, I'm OK with that. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления