On Mon, Oct 29, 2018 at 12:48 PM Andrew Gierth <and...@tao11.riddles.org.uk> wrote: > Then FETCH FIRST N WITH TIES becomes "stop when the expression > rank() over (order by ...) <= N > is no longer true" (where the ... is the existing top level order by)
Wouldn't that be wicked expensive compared to something hard-coded that does the same thing? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company