Re: FETCH FIRST clause WITH TIES option
Surafel Temsgen <surafel3000@gmail.com>
From: Surafel Temesgen <surafel3000@gmail.com>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>, andrew@tao11.riddles.org.uk, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-01-02T10:51:40Z
Lists: pgsql-hackers
Attachments
- fetch_first_with_ties_v4.patch (text/x-patch) patch v4
On Tue, Jan 1, 2019 at 8:38 PM Tomas Vondra <tomas.vondra@2ndquadrant.com> wrote: > > > > The attached patch include all the comment given by Tomas and i > > check sql standard about LIMIT and this feature > > > > Unfortunately, it seems the "limit" regression tests fail for some > reason - the output mismatches the expected results for some reason. It > seems as if the WITH TIES code affects ordering of the results within > the group. See the attached file. > > Yes the reason is the order of returned row is not always the same. I remove other columns from the result set to get constant result Regards Surafel
Commits
-
Support FETCH FIRST WITH TIES
- 357889eb17bb 13.0 landed