postgresql/src/include/optimizer
Alvaro Herrera 357889eb17
Support FETCH FIRST WITH TIES
WITH TIES is an option to the FETCH FIRST N ROWS clause (the SQL
standard's spelling of LIMIT), where you additionally get rows that
compare equal to the last of those N rows by the columns in the
mandatory ORDER BY clause.

There was a proposal by Andrew Gierth to implement this functionality in
a more powerful way that would yield more features, but the other patch
had not been finished at this time, so we decided to use this one for
now in the spirit of incremental development.

Author: Surafel Temesgen <surafel3000@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Discussion: https://postgr.es/m/CALAY4q9ky7rD_A4vf=FVQvCGngm3LOes-ky0J6euMrg=_Se+ag@mail.gmail.com
Discussion: https://postgr.es/m/87o8wvz253.fsf@news-spur.riddles.org.uk
2020-04-07 16:22:13 -04:00
..
appendinfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
clauses.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
cost.h Implement Incremental Sort 2020-04-06 21:35:10 +02:00
geqo_copy.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_gene.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_misc.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_mutation.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_pool.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_random.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_recombination.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_selection.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
inherit.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
joininfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
optimizer.h Allow the planner-related functions and hook to accept the query string. 2020-03-30 13:51:05 +09:00
orclauses.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
paramassign.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pathnode.h Support FETCH FIRST WITH TIES 2020-04-07 16:22:13 -04:00
paths.h Consider Incremental Sort paths at additional places 2020-04-07 16:43:22 +02:00
placeholder.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
plancat.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
planmain.h Support FETCH FIRST WITH TIES 2020-04-07 16:22:13 -04:00
planner.h Allow the planner-related functions and hook to accept the query string. 2020-03-30 13:51:05 +09:00
prep.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
restrictinfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
subselect.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tlist.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00