Re:What's new in the Postgres 16 query planner (a.k.a. optim...
by codeflo on Friday February 09, 2024 @08:17AM
(#39314528)
If the sort order isn't fully determined by a query, can the query plan influence the result order? If so, what you're suggesting might be nearly impossible. The new query wouldn't be able to just skip the first N results, it would have to match each individual row against a dictionary of previously sent ones.
[ Parent
| on HN ]
Re:What's new in the Postgres 16 query planner (a.k.a. optim...
by davidrowley on Friday February 09, 2024 @07:40PM
(#39322278)
> If the sort order isn't fully determined by a query, can the query plan influence the result order?
Yes. When running a query, PostgreSQL won't make any effort to provide a stable order of rows beyond what's specified in the ORDER BY.