Re: truncate_useless_pathkeys() doesn't account for window function queries
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2025-10-08T23:41:01Z
Lists: pgsql-hackers
On Mon, 6 Oct 2025 at 16:42, David Rowley <dgrowleyml@gmail.com> 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 orders. I suspect there are not going to be many arguments against fixing this, so I've gone ahead and pushed it to master. David
Commits
-
Make truncate_useless_pathkeys() consider WindowFuncs
- a5a68dd6d515 19 (unreleased) landed