Re: truncate_useless_pathkeys() doesn't account for window function queries

2025-10-18 Thread David Rowley
On Mon, 6 Oct 2025 at 16:42, David Rowley wrote: > Looking at truncate_useless_pathkeys(), it tries to be fairly liberal > and not truncate anything that might be useful for various operations > that require sorted Paths. However, it's not quite liberal enough to > consider WindowClause sort order

truncate_useless_pathkeys() doesn't account for window function queries

2025-10-18 Thread David Rowley
Looking at truncate_useless_pathkeys(), it tries to be fairly liberal and not truncate anything that might be useful for various operations that require sorted Paths. However, it's not quite liberal enough to consider WindowClause sort orders. There are a couple of things truncate_useless_pathkeys